diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto index c3c8643ba22..0c7f5afa210 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto @@ -140,6 +140,16 @@ message CustomJobSpec { type: "compute.googleapis.com/Network" }]; + // Optional. A list of names for the reserved ip ranges under the VPC network + // that can be used for this job. + // + // If set, we will deploy the job within the provided ip ranges. Otherwise, + // the job will be deployed to any ip ranges under the provided VPC + // network. + // + // Example: ['vertex-ai-ip-range']. + repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL]; + // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of @@ -204,6 +214,9 @@ message WorkerPoolSpec { // Optional. The number of worker replicas to use for this worker pool. int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of NFS mount spec. + repeated NfsMount nfs_mounts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Disk spec. DiskSpec disk_spec = 5; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto index 3ff9d693a37..453cc89a935 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto @@ -109,7 +109,7 @@ message Endpoint { type: "compute.googleapis.com/Network" }]; - // If true, expose the Endpoint via private service connect. + // Deprecated: If true, expose the Endpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], @@ -243,7 +243,7 @@ message PredictRequestResponseLoggingConfig { double sampling_rate = 2; // BigQuery table for logging. - // If only given project, a new dataset will be created with name + // If only given a project, a new dataset will be created with name // `logging__` where // will be made BigQuery-dataset-name compatible (e.g. // most special characters will become underscores). If no table name is diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto index 524c8e694d8..073b5339827 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto @@ -74,15 +74,13 @@ message EntityType { // "overwrite" update happens. string etag = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The default monitoring configuration for all Features with value - // type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, - // STRING, DOUBLE or INT64 under this EntityType. + // Optional. The default monitoring configuration for all Features with value type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this + // EntityType. // // If this is populated with // [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is // disabled. - FeaturestoreMonitoringConfig monitoring_config = 8 - [(google.api.field_behavior) = OPTIONAL]; + FeaturestoreMonitoringConfig monitoring_config = 8 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto index 47b1bc807a9..690bb364110 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto @@ -41,9 +41,7 @@ message Feature { // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - // requested by user, sorted by - // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] - // descending. + // requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] descending. message MonitoringStatsAnomaly { // If the objective in the request is both // Import Feature Analysis and Snapshot Analysis, this objective could be @@ -64,8 +62,7 @@ message Feature { Objective objective = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The stats and anomalies generated at specific timestamp. - FeatureStatsAnomaly feature_stats_anomaly = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureStatsAnomaly feature_stats_anomaly = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // An enum representing the value type of a feature. @@ -143,17 +140,15 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, - // STRING, DOUBLE or INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or + // INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. bool disable_monitoring = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The list of historical stats and anomalies with specified - // objectives. - repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The list of historical stats and anomalies with specified objectives. + repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto index 7ff841d8181..535ca6b9404 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto @@ -41,32 +41,33 @@ message Featurestore { // OnlineServingConfig specifies the details for provisioning online serving // resources. message OnlineServingConfig { - // The number of nodes for each cluster. The number of nodes will not - // scale automatically but can be scaled manually by providing different - // values when updating. - // Only one of `fixed_node_count` and `scaling` can be set. Setting one will - // reset the other. + // The number of nodes for the online store. The number of nodes doesn't + // scale automatically, but you can manually update the number of + // nodes. If set to 0, the featurestore will not have an + // online store and cannot be used for online serving. int32 fixed_node_count = 2; } - // Possible states a Featurestore can have. + // Possible states a featurestore can have. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; - // State when the Featurestore configuration is not being updated and the - // fields reflect the current configuration of the Featurestore. The - // Featurestore is usable in this state. + // State when the featurestore configuration is not being updated and the + // fields reflect the current configuration of the featurestore. The + // featurestore is usable in this state. STABLE = 1; - // State when the Featurestore configuration is being updated and the fields - // reflect the updated configuration of the Featurestore, not the current - // one. For example, `online_serving_config.fixed_node_count` can take - // minutes to update. While the update is in progress, the Featurestore - // will be in the UPDATING state and the value of `fixed_node_count` will be - // the updated value. Until the update completes, the actual number of nodes - // can still be the original value of `fixed_node_count`. The Featurestore - // is still usable in this state. + // The state of the featurestore configuration when it is being updated. + // During an update, the fields reflect either the original configuration + // or the updated configuration of the featurestore. For example, + // `online_serving_config.fixed_node_count` can take minutes to update. + // While the update is in progress, the featurestore is in the UPDATING + // state, and the value of `fixed_node_count` can be the original value or + // the updated value, depending on the progress of the operation. Until the + // update completes, the actual number of nodes can still be the original + // value of `fixed_node_count`. The featurestore is still usable in this + // state. UPDATING = 2; } @@ -97,8 +98,9 @@ message Featurestore { // and are immutable. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Config for online serving resources. - OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. Config for online storage resources. If unset, the featurestore will + // not have an online store and cannot be used for online serving. + OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. State of the featurestore. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto index 071f6a24656..7233658b077 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto @@ -139,15 +139,11 @@ message FeaturestoreMonitoringConfig { // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE - // or INT64). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64). ThresholdConfig numerical_threshold_config = 3; // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or - // STRING). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING). ThresholdConfig categorical_threshold_config = 4; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index a90066066d2..9f1e9941bde 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -80,9 +80,9 @@ message IndexEndpoint { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or - // [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], - // can be set. + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. // // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): // projects/{project}/global/networks/{network}. @@ -90,12 +90,15 @@ message IndexEndpoint { // network name. string network = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 10 [(google.api.field_behavior) = OPTIONAL]; + bool enable_private_service_connect = 10 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto index 57c37e01cd3..45b101c017f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto @@ -56,4 +56,11 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; + + // The job is being updated. The job is only able to be updated at RUNNING + // state; if the update operation succeeds, job goes back to RUNNING state; if + // the update operation fails, the job goes back to RUNNING state with error + // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field + // if it is a ModelDeploymentMonitoringJob. + JOB_STATE_UPDATING = 10; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto index 3850cf4cfd0..9bcf37c1613 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto @@ -78,6 +78,11 @@ message DedicatedResources { // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the // default value. + // + // The value of this field impacts the charge against Vertex CPU and GPU + // quotas. Specifically, you will be charged for (max_replica_count * + // number of cores in the selected machine type) and (max_replica_count * + // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. The metric specifications that overrides a resource @@ -164,6 +169,21 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents a mount configuration for Network File System (NFS) to mount. +message NfsMount { + // Required. IP address of the NFS server. + string server = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Source path exported from NFS server. + // Has to start with '/', and combined with the ip address, it indicates + // the source mount path in the form of `server:path` + string path = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination mount path. The NFS will be mounted for the user under + // /mnt/nfs/ + string mount_point = 3 [(google.api.field_behavior) = REQUIRED]; +} + // The metric specification that defines the target resource utilization // (CPU utilization, accelerator's duty cycle, and so on) for calculating the // desired replica count. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto index 6d081e93fc4..c601d46af9a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto @@ -571,9 +571,9 @@ message UpdateArtifactRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Artifact][google.cloud.aiplatform.v1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1.Artifact] is // created. @@ -757,9 +757,9 @@ message UpdateContextRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context context = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is not found, a new [Context][google.cloud.aiplatform.v1.Context] is // created. @@ -1021,9 +1021,9 @@ message UpdateExecutionRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution execution = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Execution][google.cloud.aiplatform.v1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1.Execution] // is created. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index e5c5a3217e3..822e5926371 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -67,6 +67,16 @@ message ModelDeploymentMonitoringJob { pattern: "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" }; + // All metadata of most recent monitoring pipelines. + message LatestMonitoringPipelineMetadata { + // The time that most recent monitoring pipelines that is related to this + // run. + google.protobuf.Timestamp run_time = 1; + + // The status of the most recent monitoring pipeline. + google.rpc.Status status = 2; + } + // The state to Specify the monitoring pipeline. enum MonitoringScheduleState { // Unspecified state. @@ -110,6 +120,9 @@ message ModelDeploymentMonitoringJob { // Output only. Schedule state when the monitoring job is in Running state. MonitoringScheduleState schedule_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Latest triggered monitoring pipeline metadata. + LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The config for monitoring objectives. This is a per DeployedModel config. // Each DeployedModel needs to be configured separately. repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto index 1b9a2b90642..0daff79d706 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto @@ -27,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; -// Next ID: 7 +// Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto index 4799a22e92c..726d3ec2ed6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto @@ -258,6 +258,23 @@ message ListModelsResponse { // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. + // When Model Versioning is enabled, the model.name will be used to determine + // whether to update the model or model version. + // 1. model.name with the @ value, e.g. models/123@1, refers to a version + // specific update. + // 2. model.name without the @ value, e.g. models/123, refers to a model + // update. + // 3. model.name with @-, e.g. models/123@-, refers to a model update. + // 4. Supported model fields: display_name, description; supported + // version-specific fields: version_description. Labels are supported in both + // scenarios. Both the model labels and the version labels are merged when a + // model is returned. When updating labels, if the request is for + // model-specific update, model label gets updated. Otherwise, version labels + // get updated. + // 5. A model name or model version name fields update mismatch will cause a + // precondition error. + // 6. One request cannot update both the model and the version fields. You + // must update them separately. Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto index 9325436cdf8..21f9292641a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -94,8 +94,8 @@ message PipelineJob { // Output only. Timestamp when this PipelineJob was most recently updated. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The spec of the pipeline. - google.protobuf.Struct pipeline_spec = 7 [(google.api.field_behavior) = REQUIRED]; + // The spec of the pipeline. + google.protobuf.Struct pipeline_spec = 7; // Output only. The detailed state of the job. PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto index fa79813c25c..d749ecc8adf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto @@ -322,6 +322,9 @@ message ListPipelineJobsRequest { // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. + // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto index 7d336dc10ac..96b3c8ff2e8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto @@ -398,6 +398,54 @@ message StudySpec { bool use_elapsed_duration = 1; } + // Configuration for ConvexAutomatedStoppingSpec. + // When there are enough completed trials (configured by + // min_measurement_count), for pending trials with enough measurements and + // steps, the policy first computes an overestimate of the objective value at + // max_num_steps according to the slope of the incomplete objective value + // curve. No prediction can be made if the curve is completely flat. If the + // overestimation is worse than the best objective value of the completed + // trials, this pending trial will be early-stopped, but a last measurement + // will be added to the pending trial with max_num_steps and predicted + // objective value from the autoregression model. + message ConvexAutomatedStoppingSpec { + // Steps used in predicting the final objective for early stopped trials. In + // general, it's set to be the same as the defined steps in training / + // tuning. If not defined, it will learn it from the completed trials. When + // use_steps is false, this field is set to the maximum elapsed seconds. + int64 max_step_count = 1; + + // Minimum number of steps for a trial to complete. Trials which do not have + // a measurement with step_count > min_step_count won't be considered for + // early stopping. It's ok to set it to 0, and a trial can be early stopped + // at any stage. By default, min_step_count is set to be one-tenth of the + // max_step_count. + // When use_elapsed_duration is true, this field is set to the minimum + // elapsed seconds. + int64 min_step_count = 2; + + // The minimal number of measurements in a Trial. Early-stopping checks + // will not trigger if less than min_measurement_count+1 completed trials or + // pending trials with less than min_measurement_count measurements. If not + // defined, the default value is 5. + int64 min_measurement_count = 3; + + // The hyper-parameter name used in the tuning job that stands for learning + // rate. Leave it blank if learning rate is not in a parameter in tuning. + // The learning_rate is used to estimate the objective value of the ongoing + // trial. + string learning_rate_parameter_name = 4; + + // This bool determines whether or not the rule is applied based on + // elapsed_secs or steps. If use_elapsed_duration==false, the early stopping + // decision is made according to the predicted objective values according to + // the target steps. If use_elapsed_duration==true, elapsed_secs is used + // instead of steps. Also, in this case, the parameters max_num_steps and + // min_num_steps are overloaded to contain max_elapsed_seconds and + // min_elapsed_seconds. + bool use_elapsed_duration = 5; + } + // The available search algorithms for the Study. enum Algorithm { // The default algorithm used by Vertex AI for [hyperparameter @@ -461,6 +509,9 @@ message StudySpec { // The automated early stopping spec using median rule. MedianAutomatedStoppingSpec median_automated_stopping_spec = 5; + + // The automated early stopping spec using convex stopping rule. + ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; } // Required. Metric specs for the Study. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto index 989153257b2..e57ab445a7d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; - import "google/cloud/aiplatform/v1beta1/user_action_reference.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto index cac7f7612fe..5d4c5664ec7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto index bc314f1a5ad..378afb3f79b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 487497c753c..b50a8febaf5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/completion_stats.proto"; @@ -26,7 +25,6 @@ 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"; @@ -165,6 +163,9 @@ message BatchPredictionJob { 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/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto index 268a541ea9e..7d539d82d24 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto index 13e5a5760a5..7f81ce4c0e8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index a8ae99eea8a..d2f1464de71 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; 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"; @@ -141,6 +139,16 @@ message CustomJobSpec { type: "compute.googleapis.com/Network" }]; + // Optional. A list of names for the reserved ip ranges under the VPC network + // that can be used for this job. + // + // If set, we will deploy the job within the provided ip ranges. Otherwise, + // the job will be deployed to any ip ranges under the provided VPC + // network. + // + // Example: ['vertex-ai-ip-range']. + repeated string reserved_ip_ranges = 13 [(google.api.field_behavior) = OPTIONAL]; + // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of @@ -205,6 +213,9 @@ message WorkerPoolSpec { // Optional. The number of worker replicas to use for this worker pool. int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of NFS mount spec. + repeated NfsMount nfs_mounts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Disk spec. DiskSpec disk_spec = 5; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto index 016dd1a0b34..5c3e443bfdb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto index 8479899db00..3a7160a5644 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto @@ -16,13 +16,10 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; -import "google/cloud/aiplatform/v1beta1/specialist_pool.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto index 920311500df..5d1f197f451 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index 285c27402d2..92bb46287b8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -25,7 +25,6 @@ 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/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto index 64c54023379..fd20f4d6329 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto index 68f234a28f9..337ba55e82e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto index 9a514ea6ee5..27e2bade03b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto index 176a2423193..b2d12694b26 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -16,15 +16,12 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; -import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; -import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -112,12 +109,12 @@ message Endpoint { type: "compute.googleapis.com/Network" }]; - // If true, expose the Endpoint via private service connect. + // Deprecated: If true, expose the Endpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 17; + bool enable_private_service_connect = 17 [deprecated = true]; // Output only. Resource name of the Model Monitoring job associated with this Endpoint // if monitoring is enabled by [CreateModelDeploymentMonitoringJob][]. @@ -129,6 +126,9 @@ message Endpoint { type: "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } ]; + + // Configures the request-response logging for online prediction. + PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; } // A deployment of a Model. Endpoints contain one or more DeployedModels. @@ -163,6 +163,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; @@ -229,3 +232,21 @@ message PrivateEndpoints { // connect is enabled. string service_attachment = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Configuration for logging request-response to a BigQuery table. +message PredictRequestResponseLoggingConfig { + // If logging is enabled or not. + bool enabled = 1; + + // Percentage of requests to be logged, expressed as a fraction in + // range(0,1]. + double sampling_rate = 2; + + // BigQuery table for logging. + // If only given a project, a new dataset will be created with name + // `logging__` where + // will be made BigQuery-dataset-name compatible (e.g. + // most special characters will become underscores). If no table name is + // given, a new table will be created with name `request_response_logging` + BigQueryDestination bigquery_destination = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto index e1fd6cfcdc1..14f762bacd0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/feature.proto"; import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto index 6970f614db2..5e1d677b998 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto index edc38932382..5cbb25c8cfe 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto index ebb57f818c1..74395db99d0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto index e7d0d3d5354..1f3b25124ce 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/explanation_metadata.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; @@ -198,9 +197,9 @@ message ExplanationParameters { // x-rays or quality-control cameras, use Integrated Gradients instead. XraiAttribution xrai_attribution = 3; - // Similarity explainability that returns the nearest neighbors from the + // Example-based explanations that returns the nearest neighbors from the // provided dataset. - Similarity similarity = 7; + Examples examples = 7; } // If populated, returns attributions for top K indices of outputs @@ -371,15 +370,18 @@ message BlurBaselineConfig { float max_blur_sigma = 1; } -// Similarity explainability that returns the nearest neighbors from the +// Example-based explainability that returns the nearest neighbors from the // provided dataset. -message Similarity { +message Examples { // The Cloud Storage location for the input instances. GcsSource gcs_source = 1; // The configuration for the generated index, the semantics are the same as // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig. google.protobuf.Value nearest_neighbor_search_config = 2; + + // The number of neighbors to return. + int32 neighbor_count = 3; } // The [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] entries that can be overridden at diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto index 6b024023fe7..8d59f0886e3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto index 16a7558eaba..cf67cf3e9fd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; @@ -43,9 +42,7 @@ message Feature { // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats - // requested by user, sorted by - // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] - // descending. + // requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] descending. message MonitoringStatsAnomaly { // If the objective in the request is both // Import Feature Analysis and Snapshot Analysis, this objective could be @@ -66,8 +63,7 @@ message Feature { Objective objective = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The stats and anomalies generated at specific timestamp. - FeatureStatsAnomaly feature_stats_anomaly = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureStatsAnomaly feature_stats_anomaly = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // An enum representing the value type of a feature. @@ -145,8 +141,9 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. The custom monitoring configuration for this Feature, if not set, use the - // monitoring_config defined for the EntityType this Feature belongs to. + // Optional. Deprecated: The custom monitoring configuration for this Feature, if not + // set, use the monitoring_config defined for the EntityType this Feature + // belongs to. // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or // INT64 can enable monitoring. // @@ -156,12 +153,15 @@ message Feature { // [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring // config is same as the EntityType's this Feature belongs to. - FeaturestoreMonitoringConfig monitoring_config = 9 [(google.api.field_behavior) = OPTIONAL]; + FeaturestoreMonitoringConfig monitoring_config = 9 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // BOOL, STRING, DOUBLE or INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or + // INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. @@ -173,8 +173,6 @@ message Feature { // descending. repeated FeatureStatsAnomaly monitoring_stats = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The list of historical stats and anomalies with specified - // objectives. - repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The list of historical stats and anomalies with specified objectives. + repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto index f468e95af6a..30ffbd951a1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto index 65b851d0d5d..907f14e23ef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto index 1240acdceb4..f5ece8f20f6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; @@ -50,16 +49,15 @@ message Featurestore { // equal to 1. int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of nodes to scale up to. Must be greater or equal to - // min_node_count. + // The maximum number of nodes to scale up to. Must be greater than + // min_node_count, and less than or equal to 10 times of 'min_node_count'. int32 max_node_count = 2; } - // The number of nodes for each cluster. The number of nodes will not - // scale automatically but can be scaled manually by providing different - // values when updating. - // Only one of `fixed_node_count` and `scaling` can be set. Setting one will - // reset the other. + // The number of nodes for the online store. The number of nodes doesn't + // scale automatically, but you can manually update the number of + // nodes. If set to 0, the featurestore will not have an + // online store and cannot be used for online serving. int32 fixed_node_count = 2; // Online serving scaling configuration. @@ -68,24 +66,26 @@ message Featurestore { Scaling scaling = 4; } - // Possible states a Featurestore can have. + // Possible states a featurestore can have. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; - // State when the Featurestore configuration is not being updated and the - // fields reflect the current configuration of the Featurestore. The - // Featurestore is usable in this state. + // State when the featurestore configuration is not being updated and the + // fields reflect the current configuration of the featurestore. The + // featurestore is usable in this state. STABLE = 1; - // State when the Featurestore configuration is being updated and the fields - // reflect the updated configuration of the Featurestore, not the current - // one. For example, `online_serving_config.fixed_node_count` can take - // minutes to update. While the update is in progress, the Featurestore - // will be in the UPDATING state and the value of `fixed_node_count` will be - // the updated value. Until the update completes, the actual number of nodes - // can still be the original value of `fixed_node_count`. The Featurestore - // is still usable in this state. + // The state of the featurestore configuration when it is being updated. + // During an update, the fields reflect either the original configuration + // or the updated configuration of the featurestore. For example, + // `online_serving_config.fixed_node_count` can take minutes to update. + // While the update is in progress, the featurestore is in the UPDATING + // state, and the value of `fixed_node_count` can be the original value or + // the updated value, depending on the progress of the operation. Until the + // update completes, the actual number of nodes can still be the original + // value of `fixed_node_count`. The featurestore is still usable in this + // state. UPDATING = 2; } @@ -116,8 +116,9 @@ message Featurestore { // and are immutable. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Config for online serving resources. - OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. Config for online storage resources. If unset, the featurestore will + // not have an online store and cannot be used for online serving. + OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. State of the featurestore. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto index 9ef9b1f6b96..fefe9e7729c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -55,8 +54,7 @@ message FeaturestoreMonitoringConfig { // running interval. The value indicates number of days. // If both // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // and - // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + // and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] // are set when creating/updating EntityTypes/Features, // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] // will be used. @@ -147,15 +145,11 @@ message FeaturestoreMonitoringConfig { // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // DOUBLE or INT64). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64). ThresholdConfig numerical_threshold_config = 3; // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) - // BOOL or STRING). + // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING). ThresholdConfig categorical_threshold_config = 4; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index efaa15055f3..0ea0241b592 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -22,10 +22,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/entity_type.proto"; import "google/cloud/aiplatform/v1beta1/feature.proto"; -import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; import "google/cloud/aiplatform/v1beta1/featurestore.proto"; -import "google/cloud/aiplatform/v1beta1/featurestore_online_service.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto index 52bfade99c6..4e994e1e726 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/custom_job.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto index e7bffd97677..ea9bc6d1603 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/deployed_index_ref.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 97df3f781cb..3f8fa62b2d3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -16,10 +16,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/index.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; @@ -82,9 +80,9 @@ message IndexEndpoint { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or - // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], - // can be set. + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. // // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): // projects/{project}/global/networks/{network}. @@ -92,12 +90,15 @@ message IndexEndpoint { // network name. string network = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. // // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], // can be set. - bool enable_private_service_connect = 10 [(google.api.field_behavior) = OPTIONAL]; + bool enable_private_service_connect = 10 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto index ce1fddf13f8..f571bb62f74 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto index 174e6b5fd0d..14458e2ee68 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.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; @@ -58,4 +56,11 @@ enum JobState { // The job has expired. JOB_STATE_EXPIRED = 9; + + // The job is being updated. The job is only able to be updated at RUNNING + // state; if the update operation succeeds, job goes back to RUNNING state; if + // the update operation fails, the job goes back to RUNNING state with error + // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field + // if it is a ModelDeploymentMonitoringJob. + JOB_STATE_UPDATING = 10; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto index ec045f7ce87..ce279717962 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/cloud/aiplatform/v1beta1/artifact.proto"; import "google/cloud/aiplatform/v1beta1/event.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto index c15ff89ff0c..fa1d1faaf53 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; @@ -79,6 +78,11 @@ message DedicatedResources { // replicas at maximum may handle, a portion of the traffic will be dropped. // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the // default value. + // + // The value of this field impacts the charge against Vertex CPU and GPU + // quotas. Specifically, you will be charged for (max_replica_count * + // number of cores in the selected machine type) and (max_replica_count * + // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. The metric specifications that overrides a resource @@ -165,6 +169,21 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents a mount configuration for Network File System (NFS) to mount. +message NfsMount { + // Required. IP address of the NFS server. + string server = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Source path exported from NFS server. + // Has to start with '/', and combined with the ip address, it indicates + // the source mount path in the form of `server:path` + string path = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination mount path. The NFS will be mounted for the user under + // /mnt/nfs/ + string mount_point = 3 [(google.api.field_behavior) = REQUIRED]; +} + // The metric specification that defines the target resource utilization // (CPU utilization, accelerator's duty cycle, and so on) for calculating the // desired replica count. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto index 7068a8b8e99..f8f75fdcbeb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto index 1491d52d797..0623a3ee975 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto index ce26547f480..afcf68d0be4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -571,9 +571,9 @@ message UpdateArtifactRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is // created. @@ -757,9 +757,9 @@ message UpdateContextRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context context = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] is // created. @@ -1021,9 +1021,9 @@ message UpdateExecutionRequest { // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution execution = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A FieldMask indicating which fields should be updated. + // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution] // is created. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto index 4b93aac9bc1..2d8a19d3a1b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto index 37d179cdd1a..bd8aa73013a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto index 05bf7e5d3c5..f08ad889c6b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto @@ -20,9 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/migratable_resource.proto"; -import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index ebbbaf9ff78..d17275bb84f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -16,15 +16,12 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/deployed_model_ref.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -106,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. @@ -114,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.v1beta1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index fde72be97fa..014f42f56b2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; @@ -29,7 +28,6 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.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; @@ -69,6 +67,16 @@ message ModelDeploymentMonitoringJob { pattern: "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" }; + // All metadata of most recent monitoring pipelines. + message LatestMonitoringPipelineMetadata { + // The time that most recent monitoring pipelines that is related to this + // run. + google.protobuf.Timestamp run_time = 1; + + // The status of the most recent monitoring pipeline. + google.rpc.Status status = 2; + } + // The state to Specify the monitoring pipeline. enum MonitoringScheduleState { // Unspecified state. @@ -112,6 +120,9 @@ message ModelDeploymentMonitoringJob { // Output only. Schedule state when the monitoring job is in Running state. MonitoringScheduleState schedule_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Latest triggered monitoring pipeline metadata. + LatestMonitoringPipelineMetadata latest_monitoring_pipeline_metadata = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The config for monitoring objectives. This is a per DeployedModel config. // Each DeployedModel needs to be configured separately. repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto index 3f7b9234e1e..f64c4d3fff5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto index b2a2b8b9e61..aa39f11186c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 08974f942a3..49676251e60 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; @@ -28,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -// Next ID: 6 +// Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. message TrainingDataset { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto index 239dc8c6c63..4bc803b0c5b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -20,15 +20,12 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; -import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; - import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -73,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: "/v1beta1/{name=projects/*/locations/*/models/*}:listVersions" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -98,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.v1beta1.ModelService.DeleteModel] for deleting the Model instead. + rpc DeleteModelVersion(DeleteModelVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{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: "/v1beta1/{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.v1beta1.Model.supported_export_formats]. @@ -166,6 +196,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]; } @@ -183,6 +224,9 @@ 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.v1beta1.ModelService.GetModel]. @@ -248,9 +292,73 @@ message ListModelsResponse { string next_page_token = 2; } +// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListModelVersionsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1beta1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. + // When Model Versioning is enabled, the model.name will be used to determine + // whether to update the model or model version. + // 1. model.name with the @ value, e.g. models/123@1, refers to a version + // specific update. + // 2. model.name without the @ value, e.g. models/123, refers to a model + // update. + // 3. model.name with @-, e.g. models/123@-, refers to a model update. + // 4. Supported model fields: display_name, description; supported + // version-specific fields: version_description. Labels are supported in both + // scenarios. Both the model labels and the version labels are merged when a + // model is returned. When updating labels, if the request is for + // model-specific update, model label gets updated. Otherwise, version labels + // get updated. + // 5. A model name or model version name fields update mismatch will cause a + // precondition error. + // 6. One request cannot update both the model and the version fields. You + // must update them separately. Model model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. @@ -270,6 +378,48 @@ message DeleteModelRequest { ]; } +// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.ModelService.ExportModel]. message ExportModelRequest { // Output configuration for the Model export. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto index b441d6f2be9..04e04b20108 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index fccdc743b02..abb6fc8f0b2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/artifact.proto"; @@ -95,8 +94,8 @@ message PipelineJob { // Output only. Timestamp when this PipelineJob was most recently updated. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The spec of the pipeline. - google.protobuf.Struct pipeline_spec = 7 [(google.api.field_behavior) = REQUIRED]; + // The spec of the pipeline. + google.protobuf.Struct pipeline_spec = 7; // Output only. The detailed state of the job. PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 87f92ff1deb..56123e65193 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -322,6 +322,9 @@ message ListPipelineJobsRequest { // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. + // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto index 7544acc9dad..41f2fb6ae0c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.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; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto index bc5e12ac813..e2452420516 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/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.v1beta1.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/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto index 42536fcba6a..49be7b793f2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index a315bf44e72..d0642d1802d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; @@ -399,6 +398,54 @@ message StudySpec { bool use_elapsed_duration = 1; } + // Configuration for ConvexAutomatedStoppingSpec. + // When there are enough completed trials (configured by + // min_measurement_count), for pending trials with enough measurements and + // steps, the policy first computes an overestimate of the objective value at + // max_num_steps according to the slope of the incomplete objective value + // curve. No prediction can be made if the curve is completely flat. If the + // overestimation is worse than the best objective value of the completed + // trials, this pending trial will be early-stopped, but a last measurement + // will be added to the pending trial with max_num_steps and predicted + // objective value from the autoregression model. + message ConvexAutomatedStoppingSpec { + // Steps used in predicting the final objective for early stopped trials. In + // general, it's set to be the same as the defined steps in training / + // tuning. If not defined, it will learn it from the completed trials. When + // use_steps is false, this field is set to the maximum elapsed seconds. + int64 max_step_count = 1; + + // Minimum number of steps for a trial to complete. Trials which do not have + // a measurement with step_count > min_step_count won't be considered for + // early stopping. It's ok to set it to 0, and a trial can be early stopped + // at any stage. By default, min_step_count is set to be one-tenth of the + // max_step_count. + // When use_elapsed_duration is true, this field is set to the minimum + // elapsed seconds. + int64 min_step_count = 2; + + // The minimal number of measurements in a Trial. Early-stopping checks + // will not trigger if less than min_measurement_count+1 completed trials or + // pending trials with less than min_measurement_count measurements. If not + // defined, the default value is 5. + int64 min_measurement_count = 3; + + // The hyper-parameter name used in the tuning job that stands for learning + // rate. Leave it blank if learning rate is not in a parameter in tuning. + // The learning_rate is used to estimate the objective value of the ongoing + // trial. + string learning_rate_parameter_name = 4; + + // This bool determines whether or not the rule is applied based on + // elapsed_secs or steps. If use_elapsed_duration==false, the early stopping + // decision is made according to the predicted objective values according to + // the target steps. If use_elapsed_duration==true, elapsed_secs is used + // instead of steps. Also, in this case, the parameters max_num_steps and + // min_num_steps are overloaded to contain max_elapsed_seconds and + // min_elapsed_seconds. + bool use_elapsed_duration = 5; + } + // Configuration for ConvexStopPolicy. message ConvexStopConfig { option deprecated = true; @@ -505,6 +552,9 @@ message StudySpec { // Deprecated. // The automated early stopping using convex stopping rule. ConvexStopConfig convex_stop_config = 8 [deprecated = true]; + + // The automated early stopping spec using convex stopping rule. + ConvexAutomatedStoppingSpec convex_automated_stopping_spec = 9; } // Required. Metric specs for the Study. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto index 3f49bf32253..640e636e5cf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto index 390483915c8..cfc36e3026a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto index b789d11b912..0258ef6d1fc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto index dd9809dd3d6..b5f570c875f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto index 0dc2e774838..6e202a6ef92 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto index a0b2fe5a0e3..c4c9225e2a4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -16,13 +16,10 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/io.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.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_state.proto"; import "google/protobuf/struct.proto"; @@ -99,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]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto index 1b4db9f268f..f4ed214f434 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.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; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto index 01a65e00313..7b0d6bdcdfa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto index 9f17635fe56..3d4633b5952 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.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; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto index 42dea90f182..9468f580a2a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; -import "google/api/annotations.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; diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index d35b088381c..f2083d90d40 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -4231,7 +4231,8 @@ export namespace google { JOB_STATE_CANCELLING = 6, JOB_STATE_CANCELLED = 7, JOB_STATE_PAUSED = 8, - JOB_STATE_EXPIRED = 9 + JOB_STATE_EXPIRED = 9, + JOB_STATE_UPDATING = 10 } /** Properties of a MachineSpec. */ @@ -4828,6 +4829,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a NfsMount. */ + interface INfsMount { + + /** NfsMount server */ + server?: (string|null); + + /** NfsMount path */ + path?: (string|null); + + /** NfsMount mountPoint */ + mountPoint?: (string|null); + } + + /** Represents a NfsMount. */ + class NfsMount implements INfsMount { + + /** + * Constructs a new NfsMount. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INfsMount); + + /** NfsMount server. */ + public server: string; + + /** NfsMount path. */ + public path: string; + + /** NfsMount mountPoint. */ + public mountPoint: string; + + /** + * Creates a new NfsMount instance using the specified properties. + * @param [properties] Properties to set + * @returns NfsMount instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INfsMount): google.cloud.aiplatform.v1.NfsMount; + + /** + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NfsMount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NfsMount + * @throws {Error} If the payload is not a reader 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.NfsMount; + + /** + * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NfsMount + * @throws {Error} If the payload is not 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.NfsMount; + + /** + * Verifies a NfsMount message. + * @param message 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 NfsMount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NfsMount + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NfsMount; + + /** + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @param message NfsMount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NfsMount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an AutoscalingMetricSpec. */ interface IAutoscalingMetricSpec { @@ -6267,6 +6370,9 @@ export namespace google { /** CustomJobSpec network */ network?: (string|null); + /** CustomJobSpec reservedIpRanges */ + reservedIpRanges?: (string[]|null); + /** CustomJobSpec baseOutputDirectory */ baseOutputDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); @@ -6298,6 +6404,9 @@ export namespace google { /** CustomJobSpec network. */ public network: string; + /** CustomJobSpec reservedIpRanges. */ + public reservedIpRanges: string[]; + /** CustomJobSpec baseOutputDirectory. */ public baseOutputDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); @@ -6393,6 +6502,9 @@ export namespace google { /** WorkerPoolSpec replicaCount */ replicaCount?: (number|Long|string|null); + /** WorkerPoolSpec nfsMounts */ + nfsMounts?: (google.cloud.aiplatform.v1.INfsMount[]|null); + /** WorkerPoolSpec diskSpec */ diskSpec?: (google.cloud.aiplatform.v1.IDiskSpec|null); } @@ -6418,6 +6530,9 @@ export namespace google { /** WorkerPoolSpec replicaCount. */ public replicaCount: (number|Long|string); + /** WorkerPoolSpec nfsMounts. */ + public nfsMounts: google.cloud.aiplatform.v1.INfsMount[]; + /** WorkerPoolSpec diskSpec. */ public diskSpec?: (google.cloud.aiplatform.v1.IDiskSpec|null); @@ -20417,6 +20532,9 @@ export namespace google { /** StudySpec medianAutomatedStoppingSpec */ medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** StudySpec metrics */ metrics?: (google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]|null); @@ -20448,6 +20566,9 @@ export namespace google { /** StudySpec medianAutomatedStoppingSpec. */ public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** StudySpec metrics. */ public metrics: google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]; @@ -20464,7 +20585,7 @@ export namespace google { public measurementSelectionType: (google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType); /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"); + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"); /** * Creates a new StudySpec instance using the specified properties. @@ -21757,6 +21878,120 @@ export namespace google { 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.v1.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.v1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Algorithm enum. */ enum Algorithm { ALGORITHM_UNSPECIFIED = 0, @@ -29774,6 +30009,9 @@ export namespace google { /** ModelDeploymentMonitoringJob scheduleState */ scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); @@ -29850,6 +30088,9 @@ export namespace google { /** ModelDeploymentMonitoringJob scheduleState. */ public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; @@ -29974,6 +30215,102 @@ export namespace google { namespace ModelDeploymentMonitoringJob { + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { + + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LatestMonitoringPipelineMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * 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 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LatestMonitoringPipelineMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** MonitoringScheduleState enum. */ enum MonitoringScheduleState { MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, @@ -61921,111 +62258,6 @@ export namespace google { } } - /** Properties of a Value. */ - interface IValue { - - /** Value intValue */ - intValue?: (number|Long|string|null); - - /** Value doubleValue */ - doubleValue?: (number|null); - - /** Value stringValue */ - stringValue?: (string|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IValue); - - /** Value intValue. */ - public intValue?: (number|Long|string|null); - - /** Value doubleValue. */ - public doubleValue?: (number|null); - - /** Value stringValue. */ - public stringValue?: (string|null); - - /** Value value. */ - public value?: ("intValue"|"doubleValue"|"stringValue"); - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IValue): google.cloud.aiplatform.v1beta1.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Value; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Value; - - /** - * Verifies a Value message. - * @param message 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 Value message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Value - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Value; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a BatchPredictionJob. */ interface IBatchPredictionJob { @@ -62038,6 +62270,9 @@ export namespace google { /** BatchPredictionJob model */ model?: (string|null); + /** BatchPredictionJob modelVersionId */ + modelVersionId?: (string|null); + /** BatchPredictionJob unmanagedContainerModel */ unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); @@ -62120,6 +62355,9 @@ export namespace google { /** BatchPredictionJob model. */ public model: string; + /** BatchPredictionJob modelVersionId. */ + public modelVersionId: string; + /** BatchPredictionJob unmanagedContainerModel. */ public unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); @@ -63178,8 +63416,8 @@ export namespace google { /** ExplanationParameters xraiAttribution */ xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - /** ExplanationParameters similarity */ - similarity?: (google.cloud.aiplatform.v1beta1.ISimilarity|null); + /** ExplanationParameters examples */ + examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); /** ExplanationParameters topK */ topK?: (number|null); @@ -63206,8 +63444,8 @@ export namespace google { /** ExplanationParameters xraiAttribution. */ public xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - /** ExplanationParameters similarity. */ - public similarity?: (google.cloud.aiplatform.v1beta1.ISimilarity|null); + /** ExplanationParameters examples. */ + public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); /** ExplanationParameters topK. */ public topK: number; @@ -63216,7 +63454,7 @@ export namespace google { public outputIndices?: (google.protobuf.IListValue|null); /** ExplanationParameters method. */ - public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"similarity"); + public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"); /** * Creates a new ExplanationParameters instance using the specified properties. @@ -63967,97 +64205,103 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a Similarity. */ - interface ISimilarity { + /** Properties of an Examples. */ + interface IExamples { - /** Similarity gcsSource */ + /** Examples gcsSource */ gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Similarity nearestNeighborSearchConfig */ + /** Examples nearestNeighborSearchConfig */ nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + + /** Examples neighborCount */ + neighborCount?: (number|null); } - /** Represents a Similarity. */ - class Similarity implements ISimilarity { + /** Represents an Examples. */ + class Examples implements IExamples { /** - * Constructs a new Similarity. + * Constructs a new Examples. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISimilarity); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamples); - /** Similarity gcsSource. */ + /** Examples gcsSource. */ public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Similarity nearestNeighborSearchConfig. */ + /** Examples nearestNeighborSearchConfig. */ public nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + /** Examples neighborCount. */ + public neighborCount: number; + /** - * Creates a new Similarity instance using the specified properties. + * Creates a new Examples instance using the specified properties. * @param [properties] Properties to set - * @returns Similarity instance + * @returns Examples instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISimilarity): google.cloud.aiplatform.v1beta1.Similarity; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamples): google.cloud.aiplatform.v1beta1.Examples; /** - * Encodes the specified Similarity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Similarity.verify|verify} messages. - * @param message Similarity message or plain object to encode + * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISimilarity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Similarity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Similarity.verify|verify} messages. - * @param message Similarity message or plain object to encode + * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISimilarity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Similarity message from the specified reader or buffer. + * Decodes an Examples message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Similarity + * @returns Examples * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Similarity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Examples; /** - * Decodes a Similarity message from the specified reader or buffer, length delimited. + * Decodes an Examples message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Similarity + * @returns Examples * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Similarity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Examples; /** - * Verifies a Similarity message. + * Verifies an Examples message. * @param message 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 Similarity message from a plain object. Also converts values to their respective internal types. + * Creates an Examples message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Similarity + * @returns Examples */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Similarity; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Examples; /** - * Creates a plain object from a Similarity message. Also converts values to other types if specified. - * @param message Similarity + * Creates a plain object from an Examples message. Also converts values to other types if specified. + * @param message Examples * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Similarity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Examples, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Similarity to JSON. + * Converts this Examples to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -65809,7 +66053,8 @@ export namespace google { JOB_STATE_CANCELLING = 6, JOB_STATE_CANCELLED = 7, JOB_STATE_PAUSED = 8, - JOB_STATE_EXPIRED = 9 + JOB_STATE_EXPIRED = 9, + JOB_STATE_UPDATING = 10 } /** Properties of a MachineSpec. */ @@ -66406,6 +66651,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a NfsMount. */ + interface INfsMount { + + /** NfsMount server */ + server?: (string|null); + + /** NfsMount path */ + path?: (string|null); + + /** NfsMount mountPoint */ + mountPoint?: (string|null); + } + + /** Represents a NfsMount. */ + class NfsMount implements INfsMount { + + /** + * Constructs a new NfsMount. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.INfsMount); + + /** NfsMount server. */ + public server: string; + + /** NfsMount path. */ + public path: string; + + /** NfsMount mountPoint. */ + public mountPoint: string; + + /** + * Creates a new NfsMount instance using the specified properties. + * @param [properties] Properties to set + * @returns NfsMount instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.INfsMount): google.cloud.aiplatform.v1beta1.NfsMount; + + /** + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NfsMount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NfsMount; + + /** + * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NfsMount; + + /** + * Verifies a NfsMount message. + * @param message 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 NfsMount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NfsMount + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NfsMount; + + /** + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @param message NfsMount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NfsMount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an AutoscalingMetricSpec. */ interface IAutoscalingMetricSpec { @@ -66592,8313 +66939,8155 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { - - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** Properties of an UnmanagedContainerModel. */ + interface IUnmanagedContainerModel { - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** UnmanagedContainerModel artifactUri */ + artifactUri?: (string|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** UnmanagedContainerModel predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** UnmanagedContainerModel containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents an UnmanagedContainerModel. */ + class UnmanagedContainerModel implements IUnmanagedContainerModel { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new UnmanagedContainerModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** UnmanagedContainerModel artifactUri. */ + public artifactUri: string; - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** UnmanagedContainerModel predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** UnmanagedContainerModel containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UnmanagedContainerModel instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns UnmanagedContainerModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * 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 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.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, 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 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.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig 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 ModelMonitoringObjectiveConfig + * @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.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Decodes a ModelMonitoringObjectiveConfig 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 ModelMonitoringObjectiveConfig + * @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.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Verifies a ModelMonitoringObjectiveConfig 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 ModelMonitoringObjectiveConfig 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 ModelMonitoringObjectiveConfig + * @returns UnmanagedContainerModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * 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 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.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this UnmanagedContainerModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringObjectiveConfig { + /** Properties of a Model. */ + interface IModel { - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { + /** Model name */ + name?: (string|null); - /** TrainingDataset dataset */ - dataset?: (string|null); + /** Model versionId */ + versionId?: (string|null); - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** Model versionAliases */ + versionAliases?: (string[]|null); - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** Model versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** Model versionUpdateTime */ + versionUpdateTime?: (google.protobuf.ITimestamp|null); - /** TrainingDataset targetField */ - targetField?: (string|null); + /** Model displayName */ + displayName?: (string|null); - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - } + /** Model description */ + description?: (string|null); - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** Model versionDescription */ + versionDescription?: (string|null); - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); + /** Model predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** TrainingDataset dataset. */ - public dataset?: (string|null); + /** Model metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** Model metadata */ + metadata?: (google.protobuf.IValue|null); - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** Model supportedExportFormats */ + supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); - /** TrainingDataset dataFormat. */ - public dataFormat: string; + /** Model trainingPipeline */ + trainingPipeline?: (string|null); - /** TrainingDataset targetField. */ - public targetField: string; + /** Model containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + /** Model artifactUri */ + artifactUri?: (string|null); - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** Model supportedDeploymentResourcesTypes */ + supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|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; + /** Model supportedInputStorageFormats */ + supportedInputStorageFormats?: (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; + /** Model supportedOutputStorageFormats */ + supportedOutputStorageFormats?: (string[]|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; + /** Model createTime */ + createTime?: (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; + /** Model updateTime */ + updateTime?: (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; + /** Model deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|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); + /** Model explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|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; + /** Model etag */ + etag?: (string|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 }; + /** Model labels */ + labels?: ({ [k: string]: string }|null); - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Model encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { + /** Represents a Model. */ + class Model implements IModel { - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + /** + * Constructs a new Model. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + /** 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[]; + + /** Model explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag. */ + public etag: string; + + /** Model labels. */ + public labels: { [k: string]: string }; + + /** Model encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** + * Creates a new Model instance using the specified properties. + * @param [properties] Properties to set + * @returns Model instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; + + /** + * 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.IModel, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Model; + + /** + * Decodes a Model message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Model; + + /** + * 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 Model message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Model + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; + + /** + * 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.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Model to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Model { + + /** Properties of an ExportFormat. */ + interface IExportFormat { + + /** ExportFormat id */ + id?: (string|null); + + /** ExportFormat exportableContents */ + exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); } - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** Represents an ExportFormat. */ + class ExportFormat implements IExportFormat { /** - * Constructs a new TrainingPredictionSkewDetectionConfig. + * Constructs a new ExportFormat. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ExportFormat id. */ + public id: string; - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ExportFormat exportableContents. */ + public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * Creates a new ExportFormat instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance + * @returns ExportFormat instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; /** - * 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 + * 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.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * 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 TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model.ExportFormat; /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model.ExportFormat; /** - * Verifies a TrainingPredictionSkewDetectionConfig message. + * 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); /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig + * @returns ExportFormat */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig + * 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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * Converts this ExportFormat to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { - - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - } - - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** - * 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 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 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 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 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 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 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 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 }; + namespace ExportFormat { - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ExportableContent enum. */ + enum ExportableContent { + EXPORTABLE_CONTENT_UNSPECIFIED = 0, + ARTIFACT = 1, + IMAGE = 2 + } } - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { - - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); - - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + /** DeploymentResourcesType enum. */ + enum DeploymentResourcesType { + DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, + DEDICATED_RESOURCES = 1, + AUTOMATIC_RESOURCES = 2 } + } - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { - - /** - * Constructs a new ExplanationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; - - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 }; - } + /** Properties of a PredictSchemata. */ + interface IPredictSchemata { - namespace ExplanationConfig { + /** PredictSchemata instanceSchemaUri */ + instanceSchemaUri?: (string|null); - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** PredictSchemata parametersSchemaUri */ + parametersSchemaUri?: (string|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** PredictSchemata predictionSchemaUri */ + predictionSchemaUri?: (string|null); + } - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Represents a PredictSchemata. */ + class PredictSchemata implements IPredictSchemata { - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** + * Constructs a new PredictSchemata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** PredictSchemata instanceSchemaUri. */ + public instanceSchemaUri: string; - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** PredictSchemata parametersSchemaUri. */ + public parametersSchemaUri: string; - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** PredictSchemata predictionSchemaUri. */ + public predictionSchemaUri: string; - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** + * 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; - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** + * 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; - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** + * 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 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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 }; - /** - * 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); + /** + * Converts this PredictSchemata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a ModelContainerSpec. */ + interface IModelContainerSpec { - /** - * 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 }; + /** ModelContainerSpec imageUri */ + imageUri?: (string|null); - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ModelContainerSpec command */ + command?: (string[]|null); - namespace ExplanationBaseline { + /** ModelContainerSpec args */ + args?: (string[]|null); - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } - } + /** ModelContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** ModelContainerSpec ports */ + ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelContainerSpec predictRoute */ + predictRoute?: (string|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); + /** ModelContainerSpec healthRoute */ + healthRoute?: (string|null); } - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** Represents a ModelContainerSpec. */ + class ModelContainerSpec implements IModelContainerSpec { /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ModelContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelContainerSpec imageUri. */ + public imageUri: string; - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + /** ModelContainerSpec command. */ + public command: string[]; - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** ModelContainerSpec args. */ + public args: string[]; + + /** ModelContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + + /** ModelContainerSpec ports. */ + public ports: google.cloud.aiplatform.v1beta1.IPort[]; + + /** ModelContainerSpec predictRoute. */ + public predictRoute: string; + + /** ModelContainerSpec healthRoute. */ + public healthRoute: string; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns ModelContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * 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 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.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, 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 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.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig 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 ModelMonitoringAlertConfig + * @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.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Decodes a ModelMonitoringAlertConfig 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 ModelMonitoringAlertConfig + * @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.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Verifies a ModelMonitoringAlertConfig 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 ModelMonitoringAlertConfig 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 ModelMonitoringAlertConfig + * @returns ModelContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * 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 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.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringAlertConfig { + /** Properties of a Port. */ + interface IPort { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** Port containerPort */ + containerPort?: (number|null); + } - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); - } + /** Represents a Port. */ + class Port implements IPort { - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** + * Constructs a new Port. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); - /** - * Constructs a new EmailAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + /** Port containerPort. */ + public containerPort: number; - /** 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; + /** + * Creates a new Port instance using the specified properties. + * @param [properties] Properties to set + * @returns Port instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; - /** - * 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 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.IPort, 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; + /** + * 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.IPort, 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 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 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.Port; - /** - * 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; + /** + * Decodes a Port message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Port; - /** - * 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); + /** + * 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 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 Port message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Port + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; - /** - * 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 }; + /** + * 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.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this EmailAlertConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this Port to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a DeployedModelRef. */ + interface IDeployedModelRef { - /** ThresholdConfig value */ - value?: (number|null); + /** DeployedModelRef endpoint */ + endpoint?: (string|null); + + /** DeployedModelRef deployedModelId */ + deployedModelId?: (string|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a DeployedModelRef. */ + class DeployedModelRef implements IDeployedModelRef { /** - * Constructs a new ThresholdConfig. + * Constructs a new DeployedModelRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - /** ThresholdConfig value. */ - public value?: (number|null); + /** DeployedModelRef endpoint. */ + public endpoint: string; - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** DeployedModelRef deployedModelId. */ + public deployedModelId: string; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns DeployedModelRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * 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 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.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, 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 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.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig 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 ThresholdConfig + * @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.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Decodes a ThresholdConfig 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 ThresholdConfig + * @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.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Verifies a ThresholdConfig 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 ThresholdConfig 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 ThresholdConfig + * @returns DeployedModelRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * 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 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.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this DeployedModelRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + /** Properties of an EnvVar. */ + interface IEnvVar { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** EnvVar name */ + name?: (string|null); + + /** EnvVar value */ + value?: (string|null); } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Represents an EnvVar. */ + class EnvVar implements IEnvVar { /** - * Constructs a new SamplingStrategy. + * Constructs a new EnvVar. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** EnvVar name. */ + public name: string; + + /** EnvVar value. */ + public value: string; /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new EnvVar instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns EnvVar instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; /** - * 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 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.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, 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 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.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy 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 SamplingStrategy + * @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.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Decodes a SamplingStrategy 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 SamplingStrategy + * @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.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Verifies a SamplingStrategy 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 SamplingStrategy 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 SamplingStrategy + * @returns EnvVar */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * 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.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this EnvVar to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SamplingStrategy { + /** Properties of a Context. */ + interface IContext { - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { + /** Context name */ + name?: (string|null); - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } + /** Context displayName */ + displayName?: (string|null); - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { + /** Context etag */ + etag?: (string|null); - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + /** Context labels */ + labels?: ({ [k: string]: string }|null); - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; + /** Context createTime */ + createTime?: (google.protobuf.ITimestamp|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 updateTime */ + updateTime?: (google.protobuf.ITimestamp|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 parentContexts */ + parentContexts?: (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 schemaTitle */ + schemaTitle?: (string|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 schemaVersion */ + schemaVersion?: (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; + /** Context metadata */ + metadata?: (google.protobuf.IStruct|null); - /** - * 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); + /** Context description */ + description?: (string|null); + } - /** - * 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; + /** Represents a Context. */ + class Context implements IContext { - /** - * 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 }; + /** + * Constructs a new Context. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Context name. */ + public name: string; - /** Properties of an UnmanagedContainerModel. */ - interface IUnmanagedContainerModel { + /** Context displayName. */ + public displayName: string; - /** UnmanagedContainerModel artifactUri */ - artifactUri?: (string|null); + /** Context etag. */ + public etag: string; - /** UnmanagedContainerModel predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Context labels. */ + public labels: { [k: string]: string }; - /** UnmanagedContainerModel containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - } + /** Context createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Represents an UnmanagedContainerModel. */ - class UnmanagedContainerModel implements IUnmanagedContainerModel { + /** Context updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new UnmanagedContainerModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); + /** Context parentContexts. */ + public parentContexts: string[]; - /** UnmanagedContainerModel artifactUri. */ - public artifactUri: string; + /** Context schemaTitle. */ + public schemaTitle: string; - /** UnmanagedContainerModel predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Context schemaVersion. */ + public schemaVersion: string; - /** UnmanagedContainerModel containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** Context metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Context description. */ + public description: string; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new Context instance using the specified properties. * @param [properties] Properties to set - * @returns UnmanagedContainerModel instance + * @returns Context instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; /** - * 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 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.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContext, 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 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.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnmanagedContainerModel 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 UnmanagedContainerModel + * @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.UnmanagedContainerModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Context; /** - * Decodes an UnmanagedContainerModel 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 UnmanagedContainerModel + * @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.UnmanagedContainerModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Context; /** - * Verifies an UnmanagedContainerModel 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 an UnmanagedContainerModel 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 UnmanagedContainerModel + * @returns Context */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; /** - * 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 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.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this Context to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Model. */ - interface IModel { + /** Properties of a CustomJob. */ + interface ICustomJob { - /** Model name */ + /** CustomJob name */ name?: (string|null); - /** Model displayName */ + /** CustomJob displayName */ displayName?: (string|null); - /** Model description */ - description?: (string|null); + /** CustomJob jobSpec */ + jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** Model predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** CustomJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** Model metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** CustomJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Model metadata */ - metadata?: (google.protobuf.IValue|null); + /** CustomJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Model supportedExportFormats */ - supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); + /** CustomJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** Model trainingPipeline */ - trainingPipeline?: (string|null); + /** CustomJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Model containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** CustomJob error */ + error?: (google.rpc.IStatus|null); - /** Model artifactUri */ - artifactUri?: (string|null); + /** CustomJob labels */ + labels?: ({ [k: string]: 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); - - /** Model explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** Model etag */ - etag?: (string|null); - - /** Model labels */ - labels?: ({ [k: string]: string }|null); - - /** Model encryptionSpec */ + /** CustomJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** CustomJob webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); } - /** Represents a Model. */ - class Model implements IModel { + /** Represents a CustomJob. */ + class CustomJob implements ICustomJob { /** - * Constructs a new Model. + * Constructs a new CustomJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - /** Model name. */ + /** CustomJob name. */ public name: string; - /** Model displayName. */ + /** CustomJob displayName. */ public displayName: string; - /** Model description. */ - public description: 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[]; + /** CustomJob jobSpec. */ + public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** Model supportedOutputStorageFormats. */ - public supportedOutputStorageFormats: string[]; + /** CustomJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** Model createTime. */ + /** CustomJob createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** Model updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CustomJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Model deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + /** CustomJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Model explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** CustomJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Model etag. */ - public etag: string; + /** CustomJob error. */ + public error?: (google.rpc.IStatus|null); - /** Model labels. */ + /** CustomJob labels. */ public labels: { [k: string]: string }; - /** Model encryptionSpec. */ + /** CustomJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** CustomJob webAccessUris. */ + public webAccessUris: { [k: string]: string }; + /** - * Creates a new Model instance using the specified properties. + * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set - * @returns Model instance + * @returns CustomJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; /** - * 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 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.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, 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 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.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Model 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 Model + * @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.Model; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Decodes a Model 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 Model + * @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.Model; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Verifies a Model 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 Model 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 Model + * @returns CustomJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; /** - * 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 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.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Model to JSON. + * Converts this CustomJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Model { - - /** Properties of an ExportFormat. */ - interface IExportFormat { - - /** ExportFormat id */ - id?: (string|null); - - /** ExportFormat exportableContents */ - exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); - } - - /** Represents an ExportFormat. */ - class ExportFormat implements IExportFormat { - - /** - * Constructs a new ExportFormat. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); - - /** ExportFormat id. */ - public id: string; - - /** ExportFormat exportableContents. */ - public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; + /** Properties of a CustomJobSpec. */ + interface ICustomJobSpec { - /** - * 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 workerPoolSpecs */ + workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - /** - * 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 scheduling */ + scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** - * 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 serviceAccount */ + serviceAccount?: (string|null); - /** - * 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 network */ + network?: (string|null); - /** - * Converts this ExportFormat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CustomJobSpec reservedIpRanges */ + reservedIpRanges?: (string[]|null); - namespace ExportFormat { + /** CustomJobSpec baseOutputDirectory */ + baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** ExportableContent enum. */ - enum ExportableContent { - EXPORTABLE_CONTENT_UNSPECIFIED = 0, - ARTIFACT = 1, - IMAGE = 2 - } - } + /** CustomJobSpec tensorboard */ + tensorboard?: (string|null); - /** DeploymentResourcesType enum. */ - enum DeploymentResourcesType { - DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, - DEDICATED_RESOURCES = 1, - AUTOMATIC_RESOURCES = 2 - } + /** CustomJobSpec enableWebAccess */ + enableWebAccess?: (boolean|null); } - /** Properties of a PredictSchemata. */ - interface IPredictSchemata { + /** Represents a CustomJobSpec. */ + class CustomJobSpec implements ICustomJobSpec { - /** PredictSchemata instanceSchemaUri */ - instanceSchemaUri?: (string|null); + /** + * Constructs a new CustomJobSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - /** PredictSchemata parametersSchemaUri */ - parametersSchemaUri?: (string|null); + /** CustomJobSpec workerPoolSpecs. */ + public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - /** PredictSchemata predictionSchemaUri */ - predictionSchemaUri?: (string|null); - } + /** CustomJobSpec scheduling. */ + public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** Represents a PredictSchemata. */ - class PredictSchemata implements IPredictSchemata { + /** CustomJobSpec serviceAccount. */ + public serviceAccount: string; - /** - * Constructs a new PredictSchemata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); + /** CustomJobSpec network. */ + public network: string; - /** PredictSchemata instanceSchemaUri. */ - public instanceSchemaUri: string; + /** CustomJobSpec reservedIpRanges. */ + public reservedIpRanges: string[]; - /** PredictSchemata parametersSchemaUri. */ - public parametersSchemaUri: string; + /** CustomJobSpec baseOutputDirectory. */ + public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** PredictSchemata predictionSchemaUri. */ - public predictionSchemaUri: string; + /** CustomJobSpec tensorboard. */ + public tensorboard: string; + + /** CustomJobSpec enableWebAccess. */ + public enableWebAccess: boolean; /** - * Creates a new PredictSchemata instance using the specified properties. + * Creates a new CustomJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns PredictSchemata instance + * @returns CustomJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * 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 + * 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.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictSchemata 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 PredictSchemata + * @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.PredictSchemata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Decodes a PredictSchemata 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 PredictSchemata + * @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.PredictSchemata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Verifies a PredictSchemata 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 a PredictSchemata 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 PredictSchemata + * @returns CustomJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. - * @param message PredictSchemata + * 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.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictSchemata to JSON. + * Converts this CustomJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModelContainerSpec. */ - interface IModelContainerSpec { - - /** ModelContainerSpec imageUri */ - imageUri?: (string|null); + /** Properties of a WorkerPoolSpec. */ + interface IWorkerPoolSpec { - /** ModelContainerSpec command */ - command?: (string[]|null); + /** WorkerPoolSpec containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** ModelContainerSpec args */ - args?: (string[]|null); + /** WorkerPoolSpec pythonPackageSpec */ + pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - /** ModelContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** WorkerPoolSpec machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** ModelContainerSpec ports */ - ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + /** WorkerPoolSpec replicaCount */ + replicaCount?: (number|Long|string|null); - /** ModelContainerSpec predictRoute */ - predictRoute?: (string|null); + /** WorkerPoolSpec nfsMounts */ + nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); - /** ModelContainerSpec healthRoute */ - healthRoute?: (string|null); + /** WorkerPoolSpec diskSpec */ + diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); } - /** Represents a ModelContainerSpec. */ - class ModelContainerSpec implements IModelContainerSpec { + /** Represents a WorkerPoolSpec. */ + class WorkerPoolSpec implements IWorkerPoolSpec { /** - * Constructs a new ModelContainerSpec. + * Constructs a new WorkerPoolSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - /** ModelContainerSpec imageUri. */ - public imageUri: string; + /** WorkerPoolSpec containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** ModelContainerSpec command. */ - public command: string[]; + /** WorkerPoolSpec pythonPackageSpec. */ + public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - /** ModelContainerSpec args. */ - public args: string[]; + /** WorkerPoolSpec machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** ModelContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** WorkerPoolSpec replicaCount. */ + public replicaCount: (number|Long|string); - /** ModelContainerSpec ports. */ - public ports: google.cloud.aiplatform.v1beta1.IPort[]; + /** WorkerPoolSpec nfsMounts. */ + public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; - /** ModelContainerSpec predictRoute. */ - public predictRoute: string; + /** WorkerPoolSpec diskSpec. */ + public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); - /** ModelContainerSpec healthRoute. */ - public healthRoute: string; + /** WorkerPoolSpec task. */ + public task?: ("containerSpec"|"pythonPackageSpec"); /** - * Creates a new ModelContainerSpec instance using the specified properties. + * Creates a new WorkerPoolSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelContainerSpec instance + * @returns WorkerPoolSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * 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 + * 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.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelContainerSpec 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 ModelContainerSpec + * @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.ModelContainerSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Decodes a ModelContainerSpec 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 ModelContainerSpec + * @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.ModelContainerSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Verifies a ModelContainerSpec 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 ModelContainerSpec 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 ModelContainerSpec + * @returns WorkerPoolSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. - * @param message ModelContainerSpec + * 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.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelContainerSpec to JSON. + * Converts this WorkerPoolSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Port. */ - interface IPort { + /** Properties of a ContainerSpec. */ + interface IContainerSpec { - /** Port containerPort */ - containerPort?: (number|null); + /** ContainerSpec imageUri */ + imageUri?: (string|null); + + /** ContainerSpec command */ + command?: (string[]|null); + + /** ContainerSpec args */ + args?: (string[]|null); } - /** Represents a Port. */ - class Port implements IPort { + /** Represents a ContainerSpec. */ + class ContainerSpec implements IContainerSpec { /** - * Constructs a new Port. + * Constructs a new ContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - /** Port containerPort. */ - public containerPort: number; + /** ContainerSpec imageUri. */ + public imageUri: string; + + /** ContainerSpec command. */ + public command: string[]; + + /** ContainerSpec args. */ + public args: string[]; /** - * Creates a new Port instance using the specified properties. + * Creates a new ContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Port instance + * @returns ContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * 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 + * 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.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, 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 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.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Port 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 Port + * @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.Port; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Decodes a Port 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 Port + * @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.Port; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Verifies a Port 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 Port 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 Port + * @returns ContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * 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 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.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Port 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); - - /** Dataset createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a PythonPackageSpec. */ + interface IPythonPackageSpec { - /** Dataset updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec executorImageUri */ + executorImageUri?: (string|null); - /** Dataset etag */ - etag?: (string|null); + /** PythonPackageSpec packageUris */ + packageUris?: (string[]|null); - /** Dataset labels */ - labels?: ({ [k: string]: string }|null); + /** PythonPackageSpec pythonModule */ + pythonModule?: (string|null); - /** Dataset encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** PythonPackageSpec args */ + args?: (string[]|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); - - /** Dataset createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - /** Dataset updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec executorImageUri. */ + public executorImageUri: string; - /** Dataset etag. */ - public etag: string; + /** PythonPackageSpec packageUris. */ + public packageUris: string[]; - /** Dataset labels. */ - public labels: { [k: string]: string }; + /** PythonPackageSpec pythonModule. */ + public pythonModule: string; - /** Dataset encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** PythonPackageSpec args. */ + public args: string[]; /** - * 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 }; } - /** Properties of a DeployedModelRef. */ - interface IDeployedModelRef { + /** Properties of a DataLabelingJob. */ + interface IDataLabelingJob { - /** DeployedModelRef endpoint */ - endpoint?: (string|null); + /** DataLabelingJob name */ + name?: (string|null); - /** DeployedModelRef deployedModelId */ - deployedModelId?: (string|null); + /** DataLabelingJob 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); + + /** DataLabelingJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** DataLabelingJob labelingProgress */ + labelingProgress?: (number|null); + + /** DataLabelingJob currentSpend */ + currentSpend?: (google.type.IMoney|null); + + /** DataLabelingJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DataLabelingJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** DataLabelingJob error */ + error?: (google.rpc.IStatus|null); + + /** DataLabelingJob labels */ + labels?: ({ [k: string]: string }|null); + + /** DataLabelingJob specialistPools */ + specialistPools?: (string[]|null); + + /** DataLabelingJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** DataLabelingJob activeLearningConfig */ + activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); } - /** Represents a DeployedModelRef. */ - class DeployedModelRef implements IDeployedModelRef { + /** Represents a DataLabelingJob. */ + class DataLabelingJob implements IDataLabelingJob { /** - * Constructs a new DeployedModelRef. + * Constructs a new DataLabelingJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - /** DeployedModelRef endpoint. */ - public endpoint: string; + /** DataLabelingJob name. */ + public name: string; - /** DeployedModelRef deployedModelId. */ - public deployedModelId: string; + /** DataLabelingJob 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); + + /** DataLabelingJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** DataLabelingJob labelingProgress. */ + public labelingProgress: number; + + /** DataLabelingJob currentSpend. */ + public currentSpend?: (google.type.IMoney|null); + + /** DataLabelingJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DataLabelingJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DataLabelingJob error. */ + public error?: (google.rpc.IStatus|null); + + /** DataLabelingJob labels. */ + public labels: { [k: string]: string }; + + /** DataLabelingJob specialistPools. */ + public specialistPools: string[]; + + /** DataLabelingJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** DataLabelingJob activeLearningConfig. */ + public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); /** - * Creates a new DeployedModelRef instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModelRef instance + * @returns DataLabelingJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * 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 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.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, 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 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.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModelRef 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 DeployedModelRef + * @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.DeployedModelRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Decodes a DeployedModelRef 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 DeployedModelRef + * @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.DeployedModelRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Verifies a DeployedModelRef 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 DeployedModelRef 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 DeployedModelRef + * @returns DataLabelingJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. - * @param message DeployedModelRef - * @param [options] Conversion options + * 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.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModelRef to JSON. + * Converts this DataLabelingJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnvVar. */ - interface IEnvVar { + /** Properties of an ActiveLearningConfig. */ + interface IActiveLearningConfig { - /** EnvVar name */ - name?: (string|null); + /** ActiveLearningConfig maxDataItemCount */ + maxDataItemCount?: (number|Long|string|null); - /** EnvVar value */ - value?: (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 an EnvVar. */ - class EnvVar implements IEnvVar { + /** Represents an ActiveLearningConfig. */ + class ActiveLearningConfig implements IActiveLearningConfig { /** - * Constructs a new EnvVar. + * Constructs a new ActiveLearningConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); + constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - /** EnvVar name. */ - public name: string; + /** ActiveLearningConfig maxDataItemCount. */ + public maxDataItemCount?: (number|Long|string|null); - /** EnvVar value. */ - public value: string; + /** 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 EnvVar instance using the specified properties. + * Creates a new ActiveLearningConfig instance using the specified properties. * @param [properties] Properties to set - * @returns EnvVar instance + * @returns ActiveLearningConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; + public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * 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 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.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, 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 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.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvVar 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 EnvVar + * @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.EnvVar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Decodes an EnvVar 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 EnvVar + * @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.EnvVar; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Verifies an EnvVar 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 an EnvVar 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 EnvVar + * @returns ActiveLearningConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Creates a plain object from an EnvVar message. Also converts values to other types if specified. - * @param message EnvVar + * 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.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvVar to JSON. + * Converts this ActiveLearningConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Context. */ - interface IContext { - - /** Context name */ - name?: (string|null); - - /** Context displayName */ - displayName?: (string|null); - - /** Context etag */ - etag?: (string|null); - - /** Context labels */ - labels?: ({ [k: string]: string }|null); - - /** Context createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Context updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Context parentContexts */ - parentContexts?: (string[]|null); - - /** Context schemaTitle */ - schemaTitle?: (string|null); + /** Properties of a SampleConfig. */ + interface ISampleConfig { - /** Context schemaVersion */ - schemaVersion?: (string|null); + /** SampleConfig initialBatchSamplePercentage */ + initialBatchSamplePercentage?: (number|null); - /** Context metadata */ - metadata?: (google.protobuf.IStruct|null); + /** SampleConfig followingBatchSamplePercentage */ + followingBatchSamplePercentage?: (number|null); - /** Context description */ - description?: (string|null); + /** SampleConfig sampleStrategy */ + sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); } - /** Represents a Context. */ - class Context implements IContext { + /** Represents a SampleConfig. */ + class SampleConfig implements ISampleConfig { /** - * Constructs a new Context. + * Constructs a new SampleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - - /** Context name. */ - public name: string; - - /** 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); - - /** Context updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); - /** Context parentContexts. */ - public parentContexts: string[]; + /** SampleConfig initialBatchSamplePercentage. */ + public initialBatchSamplePercentage?: (number|null); - /** Context schemaTitle. */ - public schemaTitle: string; + /** SampleConfig followingBatchSamplePercentage. */ + public followingBatchSamplePercentage?: (number|null); - /** Context schemaVersion. */ - public schemaVersion: string; + /** SampleConfig sampleStrategy. */ + public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); - /** Context metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** SampleConfig initialBatchSampleSize. */ + public initialBatchSampleSize?: "initialBatchSamplePercentage"; - /** Context description. */ - public description: string; + /** SampleConfig followingBatchSampleSize. */ + public followingBatchSampleSize?: "followingBatchSamplePercentage"; /** - * Creates a new Context instance using the specified properties. + * Creates a new SampleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Context instance + * @returns SampleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * 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 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.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, 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 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.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Context 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 Context + * @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.Context; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Decodes a Context 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 Context + * @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.Context; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Verifies a Context 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 Context 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 Context + * @returns SampleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Creates a plain object from a Context message. Also converts values to other types if specified. - * @param message Context + * 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.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Context to JSON. + * Converts this SampleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomJob. */ - interface ICustomJob { - - /** CustomJob name */ - name?: (string|null); - - /** CustomJob displayName */ - displayName?: (string|null); - - /** CustomJob jobSpec */ - jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** CustomJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob error */ - error?: (google.rpc.IStatus|null); + namespace SampleConfig { - /** CustomJob labels */ - labels?: ({ [k: string]: string }|null); + /** SampleStrategy enum. */ + enum SampleStrategy { + SAMPLE_STRATEGY_UNSPECIFIED = 0, + UNCERTAINTY = 1 + } + } - /** CustomJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Properties of a TrainingConfig. */ + interface ITrainingConfig { - /** CustomJob webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); + /** TrainingConfig timeoutTrainingMilliHours */ + timeoutTrainingMilliHours?: (number|Long|string|null); } - /** Represents a CustomJob. */ - class CustomJob implements ICustomJob { + /** Represents a TrainingConfig. */ + class TrainingConfig implements ITrainingConfig { /** - * Constructs a new CustomJob. + * Constructs a new TrainingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - - /** CustomJob name. */ - public name: string; - - /** CustomJob displayName. */ - public displayName: string; - - /** CustomJob jobSpec. */ - public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** CustomJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob error. */ - public error?: (google.rpc.IStatus|null); - - /** CustomJob labels. */ - public labels: { [k: string]: string }; - - /** CustomJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); - /** CustomJob webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** TrainingConfig timeoutTrainingMilliHours. */ + public timeoutTrainingMilliHours: (number|Long|string); /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJob instance + * @returns TrainingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * 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 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.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, 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 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.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJob 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 CustomJob + * @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.CustomJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Decodes a CustomJob 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 CustomJob + * @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.CustomJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Verifies a CustomJob 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 a CustomJob 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 CustomJob + * @returns TrainingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * 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 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.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJob to JSON. + * Converts this TrainingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomJobSpec. */ - interface ICustomJobSpec { + /** Properties of a Dataset. */ + interface IDataset { - /** CustomJobSpec workerPoolSpecs */ - workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); + /** Dataset name */ + name?: (string|null); - /** CustomJobSpec scheduling */ - scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + /** Dataset displayName */ + displayName?: (string|null); - /** CustomJobSpec serviceAccount */ - serviceAccount?: (string|null); + /** Dataset description */ + description?: (string|null); - /** CustomJobSpec network */ - network?: (string|null); + /** Dataset metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** CustomJobSpec baseOutputDirectory */ - baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Dataset metadata */ + metadata?: (google.protobuf.IValue|null); - /** CustomJobSpec tensorboard */ - tensorboard?: (string|null); + /** Dataset createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** CustomJobSpec enableWebAccess */ - enableWebAccess?: (boolean|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 CustomJobSpec. */ - class CustomJobSpec implements ICustomJobSpec { + /** Represents a Dataset. */ + class Dataset implements IDataset { /** - * Constructs a new CustomJobSpec. + * Constructs a new Dataset. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); - /** CustomJobSpec workerPoolSpecs. */ - public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; + /** Dataset name. */ + public name: string; - /** CustomJobSpec scheduling. */ - public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + /** Dataset displayName. */ + public displayName: string; - /** CustomJobSpec serviceAccount. */ - public serviceAccount: string; + /** Dataset description. */ + public description: string; - /** CustomJobSpec network. */ - public network: string; + /** Dataset metadataSchemaUri. */ + public metadataSchemaUri: string; - /** CustomJobSpec baseOutputDirectory. */ - public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Dataset metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** CustomJobSpec tensorboard. */ - public tensorboard: string; + /** Dataset createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CustomJobSpec enableWebAccess. */ - public enableWebAccess: boolean; + /** 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 CustomJobSpec instance using the specified properties. + * Creates a new Dataset instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJobSpec instance + * @returns Dataset instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; /** - * 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 + * 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.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, 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 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.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobSpec 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 CustomJobSpec + * @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.CustomJobSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Dataset; /** - * Decodes a CustomJobSpec 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 CustomJobSpec + * @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.CustomJobSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Dataset; /** - * Verifies a CustomJobSpec 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 CustomJobSpec 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 CustomJobSpec + * @returns Dataset */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; /** - * 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 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.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobSpec to JSON. + * Converts this Dataset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WorkerPoolSpec. */ - interface IWorkerPoolSpec { - - /** WorkerPoolSpec containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); + /** Properties of an ImportDataConfig. */ + interface IImportDataConfig { - /** WorkerPoolSpec pythonPackageSpec */ - pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + /** ImportDataConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** WorkerPoolSpec machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** ImportDataConfig dataItemLabels */ + dataItemLabels?: ({ [k: string]: string }|null); - /** WorkerPoolSpec replicaCount */ - replicaCount?: (number|Long|string|null); - - /** WorkerPoolSpec diskSpec */ - diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** ImportDataConfig importSchemaUri */ + importSchemaUri?: (string|null); } - /** Represents a WorkerPoolSpec. */ - class WorkerPoolSpec implements IWorkerPoolSpec { + /** Represents an ImportDataConfig. */ + class ImportDataConfig implements IImportDataConfig { /** - * Constructs a new WorkerPoolSpec. + * Constructs a new ImportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - - /** WorkerPoolSpec containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - - /** WorkerPoolSpec pythonPackageSpec. */ - public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); - /** WorkerPoolSpec machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** ImportDataConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** WorkerPoolSpec replicaCount. */ - public replicaCount: (number|Long|string); + /** ImportDataConfig dataItemLabels. */ + public dataItemLabels: { [k: string]: string }; - /** WorkerPoolSpec diskSpec. */ - public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** ImportDataConfig importSchemaUri. */ + public importSchemaUri: string; - /** WorkerPoolSpec task. */ - public task?: ("containerSpec"|"pythonPackageSpec"); + /** ImportDataConfig source. */ + public source?: "gcsSource"; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new ImportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns WorkerPoolSpec instance + * @returns ImportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * 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 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.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, 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 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.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkerPoolSpec 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 WorkerPoolSpec + * @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.WorkerPoolSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Decodes a WorkerPoolSpec 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 WorkerPoolSpec + * @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.WorkerPoolSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Verifies a WorkerPoolSpec 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 WorkerPoolSpec 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 WorkerPoolSpec + * @returns ImportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. - * @param message WorkerPoolSpec + * 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.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkerPoolSpec to JSON. + * Converts this ImportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ContainerSpec. */ - interface IContainerSpec { - - /** ContainerSpec imageUri */ - imageUri?: (string|null); + /** Properties of an ExportDataConfig. */ + interface IExportDataConfig { - /** ContainerSpec command */ - command?: (string[]|null); + /** ExportDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** ContainerSpec args */ - args?: (string[]|null); + /** ExportDataConfig annotationsFilter */ + annotationsFilter?: (string|null); } - /** Represents a ContainerSpec. */ - class ContainerSpec implements IContainerSpec { + /** Represents an ExportDataConfig. */ + class ExportDataConfig implements IExportDataConfig { /** - * Constructs a new ContainerSpec. + * Constructs a new ExportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - /** ContainerSpec imageUri. */ - public imageUri: string; + /** ExportDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** ContainerSpec command. */ - public command: string[]; + /** ExportDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** ContainerSpec args. */ - public args: string[]; + /** ExportDataConfig destination. */ + public destination?: "gcsDestination"; /** - * Creates a new ContainerSpec instance using the specified properties. + * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerSpec instance + * @returns ExportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * 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 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.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, 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 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.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerSpec 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 ContainerSpec + * @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.ContainerSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Decodes a ContainerSpec 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 ContainerSpec + * @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.ContainerSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Verifies a ContainerSpec 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 ContainerSpec 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 ContainerSpec + * @returns ExportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. - * @param message ContainerSpec + * 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.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerSpec to JSON. + * Converts this ExportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PythonPackageSpec. */ - interface IPythonPackageSpec { + /** Represents a DatasetService */ + class DatasetService extends $protobuf.rpc.Service { - /** PythonPackageSpec executorImageUri */ - executorImageUri?: (string|null); + /** + * 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); - /** PythonPackageSpec packageUris */ - packageUris?: (string[]|null); + /** + * 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; - /** PythonPackageSpec pythonModule */ - pythonModule?: (string|null); + /** + * 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; - /** PythonPackageSpec args */ - args?: (string[]|null); - } + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @returns Promise + */ + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; - /** Represents a PythonPackageSpec. */ - class PythonPackageSpec implements IPythonPackageSpec { + /** + * 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; /** - * Constructs a new PythonPackageSpec. - * @param [properties] Properties to set + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; - /** PythonPackageSpec executorImageUri. */ - public executorImageUri: string; + /** + * 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; - /** PythonPackageSpec packageUris. */ - public packageUris: string[]; + /** + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @returns Promise + */ + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; - /** PythonPackageSpec pythonModule. */ - public pythonModule: string; + /** + * 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; - /** PythonPackageSpec args. */ - public args: string[]; + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @returns Promise + */ + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; /** - * Creates a new PythonPackageSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns PythonPackageSpec instance + * Calls DeleteDataset. + * @param request DeleteDatasetRequest 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.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; /** - * 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 + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; /** - * 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 + * Calls ImportData. + * @param request ImportDataRequest 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.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; /** - * 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 PythonPackageSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PythonPackageSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; /** - * Verifies a PythonPackageSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; /** - * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PythonPackageSpec + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; /** - * 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 + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; /** - * Converts this PythonPackageSpec to JSON. - * @returns JSON object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AnnotationSpec */ - public toJSON(): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; + + /** + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @returns Promise + */ + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; + + /** + * 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; + + /** + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @returns Promise + */ + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; } - /** Properties of a Scheduling. */ - interface IScheduling { + namespace DatasetService { - /** Scheduling timeout */ - timeout?: (google.protobuf.IDuration|null); + /** + * 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; - /** Scheduling restartJobOnWorkerRestart */ - restartJobOnWorkerRestart?: (boolean|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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; } - /** Represents a Scheduling. */ - class Scheduling implements IScheduling { + /** Properties of a CreateDatasetRequest. */ + interface ICreateDatasetRequest { + + /** CreateDatasetRequest parent */ + parent?: (string|null); + + /** CreateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + } + + /** Represents a CreateDatasetRequest. */ + class CreateDatasetRequest implements ICreateDatasetRequest { /** - * Constructs a new Scheduling. + * Constructs a new CreateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); - /** Scheduling timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** CreateDatasetRequest parent. */ + public parent: string; - /** Scheduling restartJobOnWorkerRestart. */ - public restartJobOnWorkerRestart: boolean; + /** CreateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); /** - * Creates a new Scheduling instance using the specified properties. + * Creates a new CreateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Scheduling instance + * @returns CreateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * 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 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.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, 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 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.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scheduling 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 Scheduling + * @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.Scheduling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Decodes a Scheduling 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 Scheduling + * @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.Scheduling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Verifies a Scheduling 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 a Scheduling 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 Scheduling + * @returns CreateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Creates a plain object from a Scheduling message. Also converts values to other types if specified. - * @param message Scheduling + * 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.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scheduling to JSON. + * Converts this CreateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataItem. */ - interface IDataItem { + /** Properties of a CreateDatasetOperationMetadata. */ + interface ICreateDatasetOperationMetadata { - /** DataItem name */ - name?: (string|null); + /** CreateDatasetOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|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 a DataItem. */ - class DataItem implements IDataItem { + /** Represents a CreateDatasetOperationMetadata. */ + class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { /** - * Constructs a new DataItem. + * Constructs a new CreateDatasetOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); - - /** DataItem name. */ - public name: string; - - /** DataItem createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataItem updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataItem labels. */ - public labels: { [k: string]: string }; - - /** DataItem payload. */ - public payload?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); - /** DataItem etag. */ - public etag: string; + /** CreateDatasetOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DataItem instance using the specified properties. + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DataItem instance + * @returns CreateDatasetOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * 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 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.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, 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 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.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItem 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 DataItem + * @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.DataItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Decodes a DataItem 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 DataItem + * @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.DataItem; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Verifies a DataItem 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 a DataItem 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 DataItem + * @returns CreateDatasetOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * 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 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.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItem to JSON. + * Converts this CreateDatasetOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataLabelingJob. */ - interface IDataLabelingJob { + /** Properties of a GetDatasetRequest. */ + interface IGetDatasetRequest { - /** DataLabelingJob name */ + /** GetDatasetRequest name */ name?: (string|null); - /** DataLabelingJob 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); - - /** DataLabelingJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** DataLabelingJob labelingProgress */ - labelingProgress?: (number|null); - - /** DataLabelingJob currentSpend */ - currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error */ - error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels */ - labels?: ({ [k: string]: string }|null); - - /** DataLabelingJob specialistPools */ - specialistPools?: (string[]|null); - - /** DataLabelingJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** DataLabelingJob activeLearningConfig */ - activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** GetDatasetRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DataLabelingJob. */ - class DataLabelingJob implements IDataLabelingJob { + /** Represents a GetDatasetRequest. */ + class GetDatasetRequest implements IGetDatasetRequest { /** - * Constructs a new DataLabelingJob. + * Constructs a new GetDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); - /** DataLabelingJob name. */ + /** GetDatasetRequest name. */ public name: string; - /** DataLabelingJob 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); - - /** DataLabelingJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** DataLabelingJob labelingProgress. */ - public labelingProgress: number; - - /** DataLabelingJob currentSpend. */ - public currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error. */ - public error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels. */ - public labels: { [k: string]: string }; - - /** DataLabelingJob specialistPools. */ - public specialistPools: string[]; - - /** DataLabelingJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** DataLabelingJob activeLearningConfig. */ - public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** GetDatasetRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new GetDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingJob instance + * @returns GetDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * 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 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.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, 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 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.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingJob 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 DataLabelingJob + * @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.DataLabelingJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Decodes a DataLabelingJob 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 DataLabelingJob + * @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.DataLabelingJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Verifies a DataLabelingJob 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 a DataLabelingJob 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 DataLabelingJob + * @returns GetDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * 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 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.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingJob to JSON. + * Converts this GetDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ActiveLearningConfig. */ - interface IActiveLearningConfig { - - /** ActiveLearningConfig maxDataItemCount */ - maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage */ - maxDataItemPercentage?: (number|null); + /** Properties of an UpdateDatasetRequest. */ + interface IUpdateDatasetRequest { - /** ActiveLearningConfig sampleConfig */ - sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + /** UpdateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** ActiveLearningConfig trainingConfig */ - trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** UpdateDatasetRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ActiveLearningConfig. */ - class ActiveLearningConfig implements IActiveLearningConfig { + /** Represents an UpdateDatasetRequest. */ + class UpdateDatasetRequest implements IUpdateDatasetRequest { /** - * Constructs a new ActiveLearningConfig. + * Constructs a new UpdateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - - /** ActiveLearningConfig maxDataItemCount. */ - public maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage. */ - public maxDataItemPercentage?: (number|null); - - /** ActiveLearningConfig sampleConfig. */ - public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); - /** ActiveLearningConfig trainingConfig. */ - public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** UpdateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** ActiveLearningConfig humanLabelingBudget. */ - public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); + /** UpdateDatasetRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveLearningConfig instance + * @returns UpdateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * 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 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.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, 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 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.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveLearningConfig 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 ActiveLearningConfig + * @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.ActiveLearningConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Decodes an ActiveLearningConfig 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 ActiveLearningConfig + * @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.ActiveLearningConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Verifies an ActiveLearningConfig 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 an ActiveLearningConfig 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 ActiveLearningConfig + * @returns UpdateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. - * @param message ActiveLearningConfig + * 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.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveLearningConfig to JSON. + * Converts this UpdateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SampleConfig. */ - interface ISampleConfig { + /** Properties of a ListDatasetsRequest. */ + interface IListDatasetsRequest { - /** SampleConfig initialBatchSamplePercentage */ - initialBatchSamplePercentage?: (number|null); + /** ListDatasetsRequest parent */ + parent?: (string|null); - /** SampleConfig followingBatchSamplePercentage */ - followingBatchSamplePercentage?: (number|null); + /** ListDatasetsRequest filter */ + filter?: (string|null); - /** SampleConfig sampleStrategy */ - sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|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 SampleConfig. */ - class SampleConfig implements ISampleConfig { + /** Represents a ListDatasetsRequest. */ + class ListDatasetsRequest implements IListDatasetsRequest { /** - * Constructs a new SampleConfig. + * Constructs a new ListDatasetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - /** SampleConfig initialBatchSamplePercentage. */ - public initialBatchSamplePercentage?: (number|null); + /** ListDatasetsRequest parent. */ + public parent: string; - /** SampleConfig followingBatchSamplePercentage. */ - public followingBatchSamplePercentage?: (number|null); + /** ListDatasetsRequest filter. */ + public filter: string; - /** SampleConfig sampleStrategy. */ - public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + /** ListDatasetsRequest pageSize. */ + public pageSize: number; - /** SampleConfig initialBatchSampleSize. */ - public initialBatchSampleSize?: "initialBatchSamplePercentage"; + /** ListDatasetsRequest pageToken. */ + public pageToken: string; - /** SampleConfig followingBatchSampleSize. */ - public followingBatchSampleSize?: "followingBatchSamplePercentage"; + /** ListDatasetsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDatasetsRequest orderBy. */ + public orderBy: string; /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new ListDatasetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SampleConfig instance + * @returns ListDatasetsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * 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 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.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, 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 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.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleConfig 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 SampleConfig + * @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.SampleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Decodes a SampleConfig 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 SampleConfig + * @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.SampleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Verifies a SampleConfig 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 SampleConfig 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 SampleConfig + * @returns ListDatasetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * 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 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.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleConfig to JSON. + * Converts this ListDatasetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SampleConfig { - - /** SampleStrategy enum. */ - enum SampleStrategy { - SAMPLE_STRATEGY_UNSPECIFIED = 0, - UNCERTAINTY = 1 - } - } + /** Properties of a ListDatasetsResponse. */ + interface IListDatasetsResponse { - /** Properties of a TrainingConfig. */ - interface ITrainingConfig { + /** ListDatasetsResponse datasets */ + datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); - /** TrainingConfig timeoutTrainingMilliHours */ - timeoutTrainingMilliHours?: (number|Long|string|null); + /** ListDatasetsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TrainingConfig. */ - class TrainingConfig implements ITrainingConfig { + /** Represents a ListDatasetsResponse. */ + class ListDatasetsResponse implements IListDatasetsResponse { /** - * Constructs a new TrainingConfig. + * Constructs a new ListDatasetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); - /** TrainingConfig timeoutTrainingMilliHours. */ - public timeoutTrainingMilliHours: (number|Long|string); + /** ListDatasetsResponse datasets. */ + public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; + + /** ListDatasetsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TrainingConfig instance using the specified properties. + * Creates a new ListDatasetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingConfig instance + * @returns ListDatasetsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * 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 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.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, 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 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.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingConfig 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 TrainingConfig + * @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.TrainingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Decodes a TrainingConfig 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 TrainingConfig + * @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.TrainingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Verifies a TrainingConfig 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 TrainingConfig 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 TrainingConfig + * @returns ListDatasetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * 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 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.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingConfig to JSON. + * Converts this ListDatasetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SpecialistPool. */ - interface ISpecialistPool { + /** Properties of a DeleteDatasetRequest. */ + interface IDeleteDatasetRequest { - /** SpecialistPool name */ + /** DeleteDatasetRequest name */ name?: (string|null); - - /** SpecialistPool displayName */ - displayName?: (string|null); - - /** SpecialistPool specialistManagersCount */ - specialistManagersCount?: (number|null); - - /** SpecialistPool specialistManagerEmails */ - specialistManagerEmails?: (string[]|null); - - /** SpecialistPool pendingDataLabelingJobs */ - pendingDataLabelingJobs?: (string[]|null); - - /** SpecialistPool specialistWorkerEmails */ - specialistWorkerEmails?: (string[]|null); } - /** Represents a SpecialistPool. */ - class SpecialistPool implements ISpecialistPool { + /** Represents a DeleteDatasetRequest. */ + class DeleteDatasetRequest implements IDeleteDatasetRequest { /** - * Constructs a new SpecialistPool. + * Constructs a new DeleteDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISpecialistPool); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); - /** SpecialistPool name. */ + /** DeleteDatasetRequest name. */ public name: string; - /** SpecialistPool displayName. */ - public displayName: string; - - /** SpecialistPool specialistManagersCount. */ - public specialistManagersCount: number; - - /** SpecialistPool specialistManagerEmails. */ - public specialistManagerEmails: string[]; - - /** SpecialistPool pendingDataLabelingJobs. */ - public pendingDataLabelingJobs: string[]; - - /** SpecialistPool specialistWorkerEmails. */ - public specialistWorkerEmails: string[]; - /** - * Creates a new SpecialistPool instance using the specified properties. + * Creates a new DeleteDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SpecialistPool instance + * @returns DeleteDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISpecialistPool): google.cloud.aiplatform.v1beta1.SpecialistPool; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool 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.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool 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.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpecialistPool 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 SpecialistPool + * @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.SpecialistPool; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Decodes a SpecialistPool 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 SpecialistPool + * @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.SpecialistPool; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Verifies a SpecialistPool 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 SpecialistPool 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 SpecialistPool + * @returns DeleteDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SpecialistPool; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. - * @param message SpecialistPool + * 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.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpecialistPool to JSON. + * Converts this DeleteDatasetRequest 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; - - /** - * 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; - - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @returns Promise - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; - - /** - * 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; - - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @returns Promise - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; + /** Properties of an ImportDataRequest. */ + interface IImportDataRequest { - /** - * 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; + /** ImportDataRequest name */ + name?: (string|null); - /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @returns Promise - */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; + /** ImportDataRequest importConfigs */ + importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|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; + /** Represents an ImportDataRequest. */ + class ImportDataRequest implements IImportDataRequest { /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @returns Promise + * Constructs a new ImportDataRequest. + * @param [properties] Properties to set */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); - /** - * 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; + /** ImportDataRequest name. */ + public name: string; - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @returns Promise - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; + /** ImportDataRequest importConfigs. */ + public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ImportDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportDataRequest instance */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @returns Promise + * 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 importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @returns 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 */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse + * 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 */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @returns Promise + * Verifies an ImportDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AnnotationSpec + * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportDataRequest */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @returns 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 */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse + * Converts this ImportDataRequest to JSON. + * @returns JSON object */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @returns Promise - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; + /** Properties of an ImportDataResponse. */ + interface IImportDataResponse { } - namespace DatasetService { + /** Represents an ImportDataResponse. */ + class ImportDataResponse implements IImportDataResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#createDataset}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ImportDataResponse. + * @param [properties] Properties to set */ - type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getDataset}. - * @param error Error, if any - * @param [response] Dataset + * Creates a new ImportDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportDataResponse instance */ - type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#updateDataset}. - * @param error Error, if any - * @param [response] Dataset + * 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 */ - type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDatasets}. - * @param error Error, if any - * @param [response] ListDatasetsResponse + * 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 */ - type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#deleteDataset}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#importData}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#exportData}. - * @param error Error, if any - * @param [response] Operation + * Verifies an ImportDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ExportDataCallback = (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.DatasetService#listDataItems}. - * @param error Error, if any - * @param [response] ListDataItemsResponse + * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportDataResponse */ - type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getAnnotationSpec}. - * @param error Error, if any - * @param [response] AnnotationSpec + * 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 */ - type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listAnnotations}. - * @param error Error, if any - * @param [response] ListAnnotationsResponse + * Converts this ImportDataResponse to JSON. + * @returns JSON object */ - type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDatasetRequest. */ - interface ICreateDatasetRequest { - - /** CreateDatasetRequest parent */ - parent?: (string|null); + /** Properties of an ImportDataOperationMetadata. */ + interface IImportDataOperationMetadata { - /** CreateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** ImportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a CreateDatasetRequest. */ - class CreateDatasetRequest implements ICreateDatasetRequest { + /** Represents an ImportDataOperationMetadata. */ + class ImportDataOperationMetadata implements IImportDataOperationMetadata { /** - * Constructs a new CreateDatasetRequest. + * Constructs a new ImportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); - - /** CreateDatasetRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); - /** CreateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** ImportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new CreateDatasetRequest instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetRequest instance + * @returns ImportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * 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 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.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, 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 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.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetRequest 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 CreateDatasetRequest + * @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.CreateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Decodes a CreateDatasetRequest 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 CreateDatasetRequest + * @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.CreateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Verifies a CreateDatasetRequest 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 CreateDatasetRequest 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 CreateDatasetRequest + * @returns ImportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. - * @param message CreateDatasetRequest + * 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.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDatasetOperationMetadata. */ - interface ICreateDatasetOperationMetadata { + /** Properties of an ExportDataRequest. */ + interface IExportDataRequest { - /** CreateDatasetOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ExportDataRequest name */ + name?: (string|null); + + /** ExportDataRequest exportConfig */ + exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents a CreateDatasetOperationMetadata. */ - class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { + /** Represents an ExportDataRequest. */ + class ExportDataRequest implements IExportDataRequest { /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ExportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); - /** CreateDatasetOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ExportDataRequest name. */ + public name: string; + + /** ExportDataRequest exportConfig. */ + public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetOperationMetadata instance + * @returns ExportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * 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 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.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, 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 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.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetOperationMetadata 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 CreateDatasetOperationMetadata + * @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.CreateDatasetOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Decodes a CreateDatasetOperationMetadata 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 CreateDatasetOperationMetadata + * @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.CreateDatasetOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Verifies a CreateDatasetOperationMetadata 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 CreateDatasetOperationMetadata 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 CreateDatasetOperationMetadata + * @returns ExportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * 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 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.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ExportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDatasetRequest. */ - interface IGetDatasetRequest { - - /** GetDatasetRequest name */ - name?: (string|null); + /** Properties of an ExportDataResponse. */ + interface IExportDataResponse { - /** GetDatasetRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ExportDataResponse exportedFiles */ + exportedFiles?: (string[]|null); } - /** Represents a GetDatasetRequest. */ - class GetDatasetRequest implements IGetDatasetRequest { + /** Represents an ExportDataResponse. */ + class ExportDataResponse implements IExportDataResponse { /** - * Constructs a new GetDatasetRequest. + * Constructs a new ExportDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); - - /** GetDatasetRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); - /** GetDatasetRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ExportDataResponse exportedFiles. */ + public exportedFiles: string[]; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDatasetRequest instance + * @returns ExportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * 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 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.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, 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 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.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDatasetRequest 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 GetDatasetRequest + * @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.GetDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Decodes a GetDatasetRequest 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 GetDatasetRequest + * @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.GetDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Verifies a GetDatasetRequest 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 a GetDatasetRequest 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 GetDatasetRequest + * @returns ExportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. - * @param message GetDatasetRequest + * 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.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this ExportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateDatasetRequest. */ - interface IUpdateDatasetRequest { + /** Properties of an ExportDataOperationMetadata. */ + interface IExportDataOperationMetadata { - /** UpdateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** ExportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** UpdateDatasetRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ExportDataOperationMetadata gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); } - /** Represents an UpdateDatasetRequest. */ - class UpdateDatasetRequest implements IUpdateDatasetRequest { + /** Represents an ExportDataOperationMetadata. */ + class ExportDataOperationMetadata implements IExportDataOperationMetadata { /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new ExportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); - /** UpdateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** ExportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** UpdateDatasetRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ExportDataOperationMetadata gcsOutputDirectory. */ + public gcsOutputDirectory: string; /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDatasetRequest instance + * @returns ExportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * 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 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.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, 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 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.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDatasetRequest 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 UpdateDatasetRequest + * @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.UpdateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Decodes an UpdateDatasetRequest 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 UpdateDatasetRequest + * @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.UpdateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Verifies an UpdateDatasetRequest 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 an UpdateDatasetRequest 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 UpdateDatasetRequest + * @returns ExportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. - * @param message UpdateDatasetRequest + * 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.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDatasetRequest to JSON. + * Converts this ExportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDatasetsRequest. */ - interface IListDatasetsRequest { + /** Properties of a ListDataItemsRequest. */ + interface IListDataItemsRequest { - /** ListDatasetsRequest parent */ + /** ListDataItemsRequest parent */ parent?: (string|null); - /** ListDatasetsRequest filter */ + /** ListDataItemsRequest filter */ filter?: (string|null); - /** ListDatasetsRequest pageSize */ + /** ListDataItemsRequest pageSize */ pageSize?: (number|null); - /** ListDatasetsRequest pageToken */ + /** ListDataItemsRequest pageToken */ pageToken?: (string|null); - /** ListDatasetsRequest readMask */ + /** ListDataItemsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); - /** ListDatasetsRequest orderBy */ + /** ListDataItemsRequest orderBy */ orderBy?: (string|null); } - /** Represents a ListDatasetsRequest. */ - class ListDatasetsRequest implements IListDatasetsRequest { + /** Represents a ListDataItemsRequest. */ + class ListDataItemsRequest implements IListDataItemsRequest { /** - * Constructs a new ListDatasetsRequest. + * Constructs a new ListDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - /** ListDatasetsRequest parent. */ + /** ListDataItemsRequest parent. */ public parent: string; - /** ListDatasetsRequest filter. */ + /** ListDataItemsRequest filter. */ public filter: string; - /** ListDatasetsRequest pageSize. */ + /** ListDataItemsRequest pageSize. */ public pageSize: number; - /** ListDatasetsRequest pageToken. */ + /** ListDataItemsRequest pageToken. */ public pageToken: string; - /** ListDatasetsRequest readMask. */ + /** ListDataItemsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); - /** ListDatasetsRequest orderBy. */ + /** ListDataItemsRequest orderBy. */ public orderBy: string; /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Creates a new ListDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsRequest instance + * @returns ListDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * 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 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.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, 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 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.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsRequest 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 ListDatasetsRequest + * @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.ListDatasetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Decodes a ListDatasetsRequest 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 ListDatasetsRequest + * @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.ListDatasetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Verifies a ListDatasetsRequest 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 ListDatasetsRequest 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 ListDatasetsRequest + * @returns ListDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * 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 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.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this ListDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDatasetsResponse. */ - interface IListDatasetsResponse { + /** Properties of a ListDataItemsResponse. */ + interface IListDataItemsResponse { - /** ListDatasetsResponse datasets */ - datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); + /** ListDataItemsResponse dataItems */ + dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); - /** ListDatasetsResponse nextPageToken */ + /** ListDataItemsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListDatasetsResponse. */ - class ListDatasetsResponse implements IListDatasetsResponse { + /** Represents a ListDataItemsResponse. */ + class ListDataItemsResponse implements IListDataItemsResponse { /** - * Constructs a new ListDatasetsResponse. + * Constructs a new ListDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - /** ListDatasetsResponse datasets. */ - public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; + /** ListDataItemsResponse dataItems. */ + public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; - /** ListDatasetsResponse nextPageToken. */ + /** ListDataItemsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsResponse instance + * @returns ListDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * 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 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.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, 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 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.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsResponse 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 ListDatasetsResponse + * @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.ListDatasetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Decodes a ListDatasetsResponse 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 ListDatasetsResponse + * @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.ListDatasetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Verifies a ListDatasetsResponse 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 ListDatasetsResponse 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 ListDatasetsResponse + * @returns ListDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. - * @param message ListDatasetsResponse + * 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.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this ListDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDatasetRequest. */ - interface IDeleteDatasetRequest { + /** Properties of a GetAnnotationSpecRequest. */ + interface IGetAnnotationSpecRequest { - /** DeleteDatasetRequest name */ + /** GetAnnotationSpecRequest name */ name?: (string|null); + + /** GetAnnotationSpecRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteDatasetRequest. */ - class DeleteDatasetRequest implements IDeleteDatasetRequest { + /** Represents a GetAnnotationSpecRequest. */ + class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new GetAnnotationSpecRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); - /** DeleteDatasetRequest name. */ + /** GetAnnotationSpecRequest name. */ public name: string; + /** GetAnnotationSpecRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * Creates a new GetAnnotationSpecRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDatasetRequest instance + * @returns GetAnnotationSpecRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * 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 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.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, 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 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.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDatasetRequest 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 DeleteDatasetRequest + * @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.DeleteDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Decodes a DeleteDatasetRequest 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 DeleteDatasetRequest + * @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.DeleteDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Verifies a DeleteDatasetRequest 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 DeleteDatasetRequest 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 DeleteDatasetRequest + * @returns GetAnnotationSpecRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. - * @param message DeleteDatasetRequest + * 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.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDatasetRequest to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportDataRequest. */ - interface IImportDataRequest { + /** Properties of a ListAnnotationsRequest. */ + interface IListAnnotationsRequest { - /** ImportDataRequest name */ - name?: (string|null); + /** ListAnnotationsRequest parent */ + parent?: (string|null); - /** ImportDataRequest importConfigs */ - importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); + /** ListAnnotationsRequest filter */ + filter?: (string|null); + + /** ListAnnotationsRequest pageSize */ + pageSize?: (number|null); + + /** ListAnnotationsRequest pageToken */ + pageToken?: (string|null); + + /** ListAnnotationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy */ + orderBy?: (string|null); } - /** Represents an ImportDataRequest. */ - class ImportDataRequest implements IImportDataRequest { + /** Represents a ListAnnotationsRequest. */ + class ListAnnotationsRequest implements IListAnnotationsRequest { /** - * Constructs a new ImportDataRequest. + * Constructs a new ListAnnotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); - /** ImportDataRequest name. */ - public name: string; + /** ListAnnotationsRequest parent. */ + public parent: string; - /** ImportDataRequest importConfigs. */ - public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; + /** ListAnnotationsRequest filter. */ + public filter: string; + + /** ListAnnotationsRequest pageSize. */ + public pageSize: number; + + /** ListAnnotationsRequest pageToken. */ + public pageToken: string; + + /** ListAnnotationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy. */ + public orderBy: string; /** - * Creates a new ImportDataRequest instance using the specified properties. + * Creates a new ListAnnotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataRequest instance + * @returns ListAnnotationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * 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 + * 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.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataRequest 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 ImportDataRequest + * @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.ImportDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Decodes an ImportDataRequest 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 ImportDataRequest + * @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.ImportDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Verifies an ImportDataRequest 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 an ImportDataRequest 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 ImportDataRequest + * @returns ListAnnotationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. - * @param message ImportDataRequest + * 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.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataRequest to JSON. + * Converts this ListAnnotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportDataResponse. */ - interface IImportDataResponse { + /** Properties of a ListAnnotationsResponse. */ + interface IListAnnotationsResponse { + + /** ListAnnotationsResponse annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + + /** ListAnnotationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportDataResponse. */ - class ImportDataResponse implements IImportDataResponse { + /** Represents a ListAnnotationsResponse. */ + class ListAnnotationsResponse implements IListAnnotationsResponse { /** - * Constructs a new ImportDataResponse. + * Constructs a new ListAnnotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); + + /** ListAnnotationsResponse annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + + /** ListAnnotationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportDataResponse instance using the specified properties. + * Creates a new ListAnnotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataResponse instance + * @returns ListAnnotationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * 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 + * 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.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataResponse 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 ImportDataResponse + * @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.ImportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Decodes an ImportDataResponse 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 ImportDataResponse + * @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.ImportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Verifies an ImportDataResponse 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 an ImportDataResponse 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 ImportDataResponse + * @returns ListAnnotationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. - * @param message ImportDataResponse + * 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.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataResponse to JSON. + * Converts this ListAnnotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportDataOperationMetadata. */ - interface IImportDataOperationMetadata { + /** Properties of a GenericOperationMetadata. */ + interface IGenericOperationMetadata { - /** ImportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GenericOperationMetadata partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); + + /** GenericOperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an ImportDataOperationMetadata. */ - class ImportDataOperationMetadata implements IImportDataOperationMetadata { + /** Represents a GenericOperationMetadata. */ + class GenericOperationMetadata implements IGenericOperationMetadata { /** - * Constructs a new ImportDataOperationMetadata. + * Constructs a new GenericOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - /** ImportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GenericOperationMetadata partialFailures. */ + public partialFailures: google.rpc.IStatus[]; + + /** GenericOperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ImportDataOperationMetadata instance using the specified properties. + * Creates a new GenericOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataOperationMetadata instance + * @returns GenericOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * 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 + * 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.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataOperationMetadata 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 ImportDataOperationMetadata + * @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.ImportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Decodes an ImportDataOperationMetadata 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 ImportDataOperationMetadata + * @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.ImportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Verifies an ImportDataOperationMetadata 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 ImportDataOperationMetadata 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 ImportDataOperationMetadata + * @returns GenericOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ImportDataOperationMetadata + * 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.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataOperationMetadata to JSON. + * Converts this GenericOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataRequest. */ - interface IExportDataRequest { - - /** ExportDataRequest name */ - name?: (string|null); + /** Properties of a DeleteOperationMetadata. */ + interface IDeleteOperationMetadata { - /** ExportDataRequest exportConfig */ - exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); + /** DeleteOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportDataRequest. */ - class ExportDataRequest implements IExportDataRequest { + /** Represents a DeleteOperationMetadata. */ + class DeleteOperationMetadata implements IDeleteOperationMetadata { /** - * Constructs a new ExportDataRequest. + * Constructs a new DeleteOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); - - /** ExportDataRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); - /** ExportDataRequest exportConfig. */ - public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); + /** DeleteOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataRequest instance + * @returns DeleteOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * 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 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.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, 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 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.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataRequest 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 ExportDataRequest + * @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.ExportDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Decodes an ExportDataRequest 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 ExportDataRequest + * @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.ExportDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Verifies an ExportDataRequest 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 an ExportDataRequest 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 ExportDataRequest + * @returns DeleteOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * 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 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.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataResponse. */ - interface IExportDataResponse { + /** Properties of a DeployedIndexRef. */ + interface IDeployedIndexRef { - /** ExportDataResponse exportedFiles */ - exportedFiles?: (string[]|null); + /** DeployedIndexRef indexEndpoint */ + indexEndpoint?: (string|null); + + /** DeployedIndexRef deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents an ExportDataResponse. */ - class ExportDataResponse implements IExportDataResponse { + /** Represents a DeployedIndexRef. */ + class DeployedIndexRef implements IDeployedIndexRef { /** - * Constructs a new ExportDataResponse. + * Constructs a new DeployedIndexRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); - /** ExportDataResponse exportedFiles. */ - public exportedFiles: string[]; + /** DeployedIndexRef indexEndpoint. */ + public indexEndpoint: string; + + /** DeployedIndexRef deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new ExportDataResponse instance using the specified properties. + * Creates a new DeployedIndexRef instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataResponse instance + * @returns DeployedIndexRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * 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 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.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, 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 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.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataResponse 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 ExportDataResponse + * @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.ExportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Decodes an ExportDataResponse 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 ExportDataResponse + * @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.ExportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Verifies an ExportDataResponse 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 an ExportDataResponse 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 ExportDataResponse + * @returns DeployedIndexRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * 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 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.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataResponse to JSON. + * Converts this DeployedIndexRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataOperationMetadata. */ - interface IExportDataOperationMetadata { + /** Properties of an Endpoint. */ + interface IEndpoint { - /** ExportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Endpoint name */ + name?: (string|null); - /** ExportDataOperationMetadata gcsOutputDirectory */ - gcsOutputDirectory?: (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 an ExportDataOperationMetadata. */ - class ExportDataOperationMetadata implements IExportDataOperationMetadata { + /** Represents an Endpoint. */ + class Endpoint implements IEndpoint { /** - * Constructs a new ExportDataOperationMetadata. + * Constructs a new Endpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); - /** ExportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Endpoint name. */ + public name: string; - /** ExportDataOperationMetadata gcsOutputDirectory. */ - public gcsOutputDirectory: 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 ExportDataOperationMetadata instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataOperationMetadata instance + * @returns Endpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; /** - * 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 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.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, 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 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.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataOperationMetadata 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 ExportDataOperationMetadata + * @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.ExportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Decodes an ExportDataOperationMetadata 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 ExportDataOperationMetadata + * @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.ExportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Verifies an ExportDataOperationMetadata 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 an ExportDataOperationMetadata 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 ExportDataOperationMetadata + * @returns Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ExportDataOperationMetadata + * 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.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataOperationMetadata to JSON. + * Converts this Endpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataItemsRequest. */ - interface IListDataItemsRequest { + /** Properties of a DeployedModel. */ + interface IDeployedModel { - /** ListDataItemsRequest parent */ - parent?: (string|null); + /** DeployedModel dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListDataItemsRequest filter */ - filter?: (string|null); + /** DeployedModel automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListDataItemsRequest pageSize */ - pageSize?: (number|null); + /** DeployedModel id */ + id?: (string|null); - /** ListDataItemsRequest pageToken */ - pageToken?: (string|null); + /** DeployedModel model */ + model?: (string|null); - /** ListDataItemsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel modelVersionId */ + modelVersionId?: (string|null); - /** ListDataItemsRequest orderBy */ - orderBy?: (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 a ListDataItemsRequest. */ - class ListDataItemsRequest implements IListDataItemsRequest { + /** Represents a DeployedModel. */ + class DeployedModel implements IDeployedModel { /** - * Constructs a new ListDataItemsRequest. + * Constructs a new DeployedModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); - /** ListDataItemsRequest parent. */ - public parent: string; + /** DeployedModel dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListDataItemsRequest filter. */ - public filter: string; + /** DeployedModel automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListDataItemsRequest pageSize. */ - public pageSize: number; + /** DeployedModel id. */ + public id: string; - /** ListDataItemsRequest pageToken. */ - public pageToken: string; + /** DeployedModel model. */ + public model: string; - /** ListDataItemsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel modelVersionId. */ + public modelVersionId: string; - /** ListDataItemsRequest orderBy. */ - public orderBy: 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 ListDataItemsRequest instance using the specified properties. + * Creates a new DeployedModel instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsRequest instance + * @returns DeployedModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * 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 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.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, 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 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.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsRequest 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 ListDataItemsRequest + * @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.ListDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Decodes a ListDataItemsRequest 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 ListDataItemsRequest + * @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.ListDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Verifies a ListDataItemsRequest 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 a ListDataItemsRequest 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 ListDataItemsRequest + * @returns DeployedModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. - * @param message ListDataItemsRequest + * 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.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsRequest to JSON. + * Converts this DeployedModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataItemsResponse. */ - interface IListDataItemsResponse { + /** Properties of a PrivateEndpoints. */ + interface IPrivateEndpoints { - /** ListDataItemsResponse dataItems */ - dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); + /** PrivateEndpoints predictHttpUri */ + predictHttpUri?: (string|null); - /** ListDataItemsResponse nextPageToken */ - nextPageToken?: (string|null); + /** PrivateEndpoints explainHttpUri */ + explainHttpUri?: (string|null); + + /** PrivateEndpoints healthHttpUri */ + healthHttpUri?: (string|null); + + /** PrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); } - /** Represents a ListDataItemsResponse. */ - class ListDataItemsResponse implements IListDataItemsResponse { + /** Represents a PrivateEndpoints. */ + class PrivateEndpoints implements IPrivateEndpoints { /** - * Constructs a new ListDataItemsResponse. + * Constructs a new PrivateEndpoints. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); - /** ListDataItemsResponse dataItems. */ - public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + /** PrivateEndpoints predictHttpUri. */ + public predictHttpUri: string; - /** ListDataItemsResponse nextPageToken. */ - public nextPageToken: string; + /** PrivateEndpoints explainHttpUri. */ + public explainHttpUri: string; + + /** PrivateEndpoints healthHttpUri. */ + public healthHttpUri: string; + + /** PrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * Creates a new PrivateEndpoints instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsResponse instance + * @returns PrivateEndpoints instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * 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 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.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, 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 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.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsResponse 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 ListDataItemsResponse + * @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.ListDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Decodes a ListDataItemsResponse 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 ListDataItemsResponse + * @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.ListDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Verifies a ListDataItemsResponse 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 a ListDataItemsResponse 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 ListDataItemsResponse + * @returns PrivateEndpoints */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * 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 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.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsResponse to JSON. + * Converts this PrivateEndpoints to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetAnnotationSpecRequest. */ - interface IGetAnnotationSpecRequest { + /** Properties of a PredictRequestResponseLoggingConfig. */ + interface IPredictRequestResponseLoggingConfig { - /** GetAnnotationSpecRequest name */ - name?: (string|null); + /** PredictRequestResponseLoggingConfig enabled */ + enabled?: (boolean|null); - /** GetAnnotationSpecRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate */ + samplingRate?: (number|null); + + /** PredictRequestResponseLoggingConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); } - /** Represents a GetAnnotationSpecRequest. */ - class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { + /** Represents a PredictRequestResponseLoggingConfig. */ + class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { /** - * Constructs a new GetAnnotationSpecRequest. + * Constructs a new PredictRequestResponseLoggingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); - /** GetAnnotationSpecRequest name. */ - public name: string; + /** PredictRequestResponseLoggingConfig enabled. */ + public enabled: boolean; - /** GetAnnotationSpecRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate. */ + public samplingRate: number; + + /** PredictRequestResponseLoggingConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetAnnotationSpecRequest instance + * @returns PredictRequestResponseLoggingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * 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 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.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, 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 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.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAnnotationSpecRequest 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 GetAnnotationSpecRequest + * @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.GetAnnotationSpecRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Decodes a GetAnnotationSpecRequest 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 GetAnnotationSpecRequest + * @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.GetAnnotationSpecRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Verifies a GetAnnotationSpecRequest 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 a GetAnnotationSpecRequest 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 GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * 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 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.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAnnotationSpecRequest to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAnnotationsRequest. */ - interface IListAnnotationsRequest { + /** Represents an EndpointService */ + class EndpointService extends $protobuf.rpc.Service { - /** ListAnnotationsRequest parent */ - parent?: (string|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); - /** ListAnnotationsRequest filter */ - filter?: (string|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; - /** ListAnnotationsRequest pageSize */ - pageSize?: (number|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; - /** ListAnnotationsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @returns Promise + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; - /** ListAnnotationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|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; - /** ListAnnotationsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @returns Promise + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; - /** Represents a ListAnnotationsRequest. */ - class ListAnnotationsRequest implements IListAnnotationsRequest { + /** + * 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; /** - * Constructs a new ListAnnotationsRequest. - * @param [properties] Properties to set + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; - /** ListAnnotationsRequest parent. */ - public parent: 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; - /** ListAnnotationsRequest filter. */ - public filter: string; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @returns Promise + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; - /** ListAnnotationsRequest pageSize. */ - public pageSize: number; + /** + * 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; - /** ListAnnotationsRequest pageToken. */ - public pageToken: string; + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @returns Promise + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; - /** ListAnnotationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|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; - /** ListAnnotationsRequest orderBy. */ - public orderBy: string; + /** + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @returns Promise + */ + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAnnotationsRequest 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.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; /** - * 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 + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; + } + + namespace EndpointService { /** - * 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 + * 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.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * 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 ListAnnotationsRequest - * @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.ListAnnotationsRequest; + type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListAnnotationsRequest - * @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.ListAnnotationsRequest; + type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; /** - * Verifies a ListAnnotationsRequest 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 a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListAnnotationsRequest + * 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.ListAnnotationsRequest; + type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * 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 + * 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.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListAnnotationsRequest 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 ListAnnotationsResponse. */ - interface IListAnnotationsResponse { + /** Properties of a CreateEndpointRequest. */ + interface ICreateEndpointRequest { - /** ListAnnotationsResponse annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** CreateEndpointRequest parent */ + parent?: (string|null); - /** ListAnnotationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId */ + endpointId?: (string|null); } - /** Represents a ListAnnotationsResponse. */ - class ListAnnotationsResponse implements IListAnnotationsResponse { + /** Represents a CreateEndpointRequest. */ + class CreateEndpointRequest implements ICreateEndpointRequest { /** - * Constructs a new ListAnnotationsResponse. + * Constructs a new CreateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - /** ListAnnotationsResponse annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** CreateEndpointRequest parent. */ + public parent: string; - /** ListAnnotationsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId. */ + public endpointId: string; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * Creates a new CreateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAnnotationsResponse instance + * @returns CreateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * 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 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.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, 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 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.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAnnotationsResponse 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 ListAnnotationsResponse + * @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.ListAnnotationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Decodes a ListAnnotationsResponse 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 ListAnnotationsResponse + * @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.ListAnnotationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Verifies a ListAnnotationsResponse 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 ListAnnotationsResponse 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 ListAnnotationsResponse + * @returns CreateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. - * @param message ListAnnotationsResponse + * 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.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAnnotationsResponse to JSON. + * Converts this CreateEndpointRequest 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); + /** Properties of a CreateEndpointOperationMetadata. */ + interface ICreateEndpointOperationMetadata { - /** GenericOperationMetadata updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GenericOperationMetadata. */ - class GenericOperationMetadata implements IGenericOperationMetadata { + /** Represents a CreateEndpointOperationMetadata. */ + class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { /** - * Constructs a new GenericOperationMetadata. + * Constructs a new CreateEndpointOperationMetadata. * @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); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); - /** GenericOperationMetadata updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GenericOperationMetadata instance + * @returns CreateEndpointOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * 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 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.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, 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 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.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * 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 GenericOperationMetadata + * @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.GenericOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenericOperationMetadata + * @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.GenericOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Verifies a GenericOperationMetadata message. + * 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 GenericOperationMetadata 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. * @param object Plain object - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. - * @param message GenericOperationMetadata + * 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.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenericOperationMetadata to JSON. + * Converts this CreateEndpointOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteOperationMetadata. */ - interface IDeleteOperationMetadata { + /** Properties of a GetEndpointRequest. */ + interface IGetEndpointRequest { - /** DeleteOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name */ + name?: (string|null); } - /** Represents a DeleteOperationMetadata. */ - class DeleteOperationMetadata implements IDeleteOperationMetadata { + /** Represents a GetEndpointRequest. */ + class GetEndpointRequest implements IGetEndpointRequest { /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new GetEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); - /** DeleteOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name. */ + public name: string; /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * Creates a new GetEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOperationMetadata instance + * @returns GetEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * 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 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.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, 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 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.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOperationMetadata 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 DeleteOperationMetadata + * @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.DeleteOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Decodes a DeleteOperationMetadata 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 DeleteOperationMetadata + * @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.DeleteOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Verifies a DeleteOperationMetadata 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 a DeleteOperationMetadata 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 DeleteOperationMetadata + * @returns GetEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteOperationMetadata + * 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.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOperationMetadata to JSON. + * Converts this GetEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TrainingPipeline. */ - interface ITrainingPipeline { - - /** TrainingPipeline name */ - name?: (string|null); - - /** TrainingPipeline displayName */ - displayName?: (string|null); - - /** TrainingPipeline inputDataConfig */ - inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition */ - trainingTaskDefinition?: (string|null); - - /** TrainingPipeline trainingTaskInputs */ - trainingTaskInputs?: (google.protobuf.IValue|null); - - /** TrainingPipeline trainingTaskMetadata */ - trainingTaskMetadata?: (google.protobuf.IValue|null); - - /** TrainingPipeline modelToUpload */ - modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); - - /** TrainingPipeline state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); - - /** TrainingPipeline error */ - error?: (google.rpc.IStatus|null); - - /** TrainingPipeline createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListEndpointsRequest. */ + interface IListEndpointsRequest { - /** TrainingPipeline startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest parent */ + parent?: (string|null); - /** TrainingPipeline endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest filter */ + filter?: (string|null); - /** TrainingPipeline updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest pageSize */ + pageSize?: (number|null); - /** TrainingPipeline labels */ - labels?: ({ [k: string]: string }|null); + /** ListEndpointsRequest pageToken */ + pageToken?: (string|null); - /** TrainingPipeline encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a TrainingPipeline. */ - class TrainingPipeline implements ITrainingPipeline { + /** Represents a ListEndpointsRequest. */ + class ListEndpointsRequest implements IListEndpointsRequest { /** - * Constructs a new TrainingPipeline. + * Constructs a new ListEndpointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline); - - /** TrainingPipeline name. */ - public name: string; - - /** TrainingPipeline displayName. */ - public displayName: string; - - /** TrainingPipeline inputDataConfig. */ - public inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition. */ - public trainingTaskDefinition: string; - - /** TrainingPipeline trainingTaskInputs. */ - public trainingTaskInputs?: (google.protobuf.IValue|null); - - /** TrainingPipeline trainingTaskMetadata. */ - public trainingTaskMetadata?: (google.protobuf.IValue|null); - - /** TrainingPipeline modelToUpload. */ - public modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); - - /** TrainingPipeline state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); - - /** TrainingPipeline error. */ - public error?: (google.rpc.IStatus|null); - - /** TrainingPipeline createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); - /** TrainingPipeline startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest parent. */ + public parent: string; - /** TrainingPipeline endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest filter. */ + public filter: string; - /** TrainingPipeline updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest pageSize. */ + public pageSize: number; - /** TrainingPipeline labels. */ - public labels: { [k: string]: string }; + /** ListEndpointsRequest pageToken. */ + public pageToken: string; - /** TrainingPipeline encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new ListEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingPipeline instance + * @returns ListEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline 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.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline 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.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingPipeline 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 TrainingPipeline + * @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.TrainingPipeline; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Decodes a TrainingPipeline 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 TrainingPipeline + * @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.TrainingPipeline; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Verifies a TrainingPipeline 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 a TrainingPipeline 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 TrainingPipeline + * @returns ListEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingPipeline; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. - * @param message TrainingPipeline + * 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.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingPipeline to JSON. + * Converts this ListEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InputDataConfig. */ - interface IInputDataConfig { - - /** InputDataConfig fractionSplit */ - fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - - /** InputDataConfig filterSplit */ - filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - - /** InputDataConfig predefinedSplit */ - predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - - /** InputDataConfig timestampSplit */ - timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - - /** InputDataConfig stratifiedSplit */ - stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - - /** InputDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** InputDataConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** InputDataConfig datasetId */ - datasetId?: (string|null); + /** Properties of a ListEndpointsResponse. */ + interface IListEndpointsResponse { - /** InputDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** ListEndpointsResponse endpoints */ + endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); - /** InputDataConfig annotationSchemaUri */ - annotationSchemaUri?: (string|null); + /** ListEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an InputDataConfig. */ - class InputDataConfig implements IInputDataConfig { + /** Represents a ListEndpointsResponse. */ + class ListEndpointsResponse implements IListEndpointsResponse { /** - * Constructs a new InputDataConfig. + * Constructs a new ListEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig); - - /** InputDataConfig fractionSplit. */ - public fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - - /** InputDataConfig filterSplit. */ - public filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - - /** InputDataConfig predefinedSplit. */ - public predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); - - /** InputDataConfig timestampSplit. */ - public timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); - - /** InputDataConfig stratifiedSplit. */ - public stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); - - /** InputDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** InputDataConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** InputDataConfig datasetId. */ - public datasetId: string; - - /** InputDataConfig annotationsFilter. */ - public annotationsFilter: string; - - /** InputDataConfig annotationSchemaUri. */ - public annotationSchemaUri: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); - /** InputDataConfig split. */ - public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + /** ListEndpointsResponse endpoints. */ + public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; - /** InputDataConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** ListEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new InputDataConfig instance using the specified properties. + * Creates a new ListEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InputDataConfig instance + * @returns ListEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig 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.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig 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.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputDataConfig 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 InputDataConfig + * @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.InputDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Decodes an InputDataConfig 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 InputDataConfig + * @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.InputDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Verifies an InputDataConfig 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 an InputDataConfig 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 InputDataConfig + * @returns ListEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.InputDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. - * @param message InputDataConfig + * 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.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputDataConfig to JSON. + * Converts this ListEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FractionSplit. */ - interface IFractionSplit { - - /** FractionSplit trainingFraction */ - trainingFraction?: (number|null); + /** Properties of an UpdateEndpointRequest. */ + interface IUpdateEndpointRequest { - /** FractionSplit validationFraction */ - validationFraction?: (number|null); + /** UpdateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FractionSplit testFraction */ - testFraction?: (number|null); + /** UpdateEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a FractionSplit. */ - class FractionSplit implements IFractionSplit { + /** Represents an UpdateEndpointRequest. */ + class UpdateEndpointRequest implements IUpdateEndpointRequest { /** - * Constructs a new FractionSplit. + * Constructs a new UpdateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit); - - /** FractionSplit trainingFraction. */ - public trainingFraction: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); - /** FractionSplit validationFraction. */ - public validationFraction: number; + /** UpdateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FractionSplit testFraction. */ - public testFraction: number; + /** UpdateEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new UpdateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FractionSplit instance + * @returns UpdateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit): google.cloud.aiplatform.v1beta1.FractionSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. - * @param message FractionSplit 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.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. - * @param message FractionSplit 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.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FractionSplit 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 FractionSplit + * @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.FractionSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Decodes a FractionSplit 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 FractionSplit + * @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.FractionSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Verifies a FractionSplit 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 FractionSplit 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 FractionSplit + * @returns UpdateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FractionSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. - * @param message FractionSplit + * 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.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FractionSplit to JSON. + * Converts this UpdateEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FilterSplit. */ - interface IFilterSplit { - - /** FilterSplit trainingFilter */ - trainingFilter?: (string|null); - - /** FilterSplit validationFilter */ - validationFilter?: (string|null); + /** Properties of a DeleteEndpointRequest. */ + interface IDeleteEndpointRequest { - /** FilterSplit testFilter */ - testFilter?: (string|null); + /** DeleteEndpointRequest name */ + name?: (string|null); } - /** Represents a FilterSplit. */ - class FilterSplit implements IFilterSplit { + /** Represents a DeleteEndpointRequest. */ + class DeleteEndpointRequest implements IDeleteEndpointRequest { /** - * Constructs a new FilterSplit. + * Constructs a new DeleteEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit); - - /** FilterSplit trainingFilter. */ - public trainingFilter: string; - - /** FilterSplit validationFilter. */ - public validationFilter: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - /** FilterSplit testFilter. */ - public testFilter: string; + /** DeleteEndpointRequest name. */ + public name: string; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new DeleteEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FilterSplit instance + * @returns DeleteEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit): google.cloud.aiplatform.v1beta1.FilterSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. - * @param message FilterSplit 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.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. - * @param message FilterSplit 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.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilterSplit 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 FilterSplit + * @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.FilterSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Decodes a FilterSplit 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 FilterSplit + * @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.FilterSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Verifies a FilterSplit 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 a FilterSplit 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 FilterSplit + * @returns DeleteEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FilterSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. - * @param message FilterSplit + * 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.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilterSplit to JSON. + * Converts this DeleteEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PredefinedSplit. */ - interface IPredefinedSplit { + /** Properties of a DeployModelRequest. */ + interface IDeployModelRequest { - /** PredefinedSplit key */ - key?: (string|null); + /** DeployModelRequest endpoint */ + endpoint?: (string|null); + + /** DeployModelRequest deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a PredefinedSplit. */ - class PredefinedSplit implements IPredefinedSplit { + /** Represents a DeployModelRequest. */ + class DeployModelRequest implements IDeployModelRequest { /** - * Constructs a new PredefinedSplit. + * Constructs a new DeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); - /** PredefinedSplit key. */ - public key: string; + /** 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 PredefinedSplit instance using the specified properties. + * Creates a new DeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PredefinedSplit instance + * @returns DeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit 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.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit 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.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredefinedSplit 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 PredefinedSplit + * @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.PredefinedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Decodes a PredefinedSplit 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 PredefinedSplit + * @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.PredefinedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Verifies a PredefinedSplit 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 PredefinedSplit 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 PredefinedSplit + * @returns DeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredefinedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. - * @param message PredefinedSplit + * 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.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredefinedSplit to JSON. + * Converts this DeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TimestampSplit. */ - interface ITimestampSplit { - - /** TimestampSplit trainingFraction */ - trainingFraction?: (number|null); - - /** TimestampSplit validationFraction */ - validationFraction?: (number|null); - - /** TimestampSplit testFraction */ - testFraction?: (number|null); + /** Properties of a DeployModelResponse. */ + interface IDeployModelResponse { - /** TimestampSplit key */ - key?: (string|null); + /** DeployModelResponse deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); } - /** Represents a TimestampSplit. */ - class TimestampSplit implements ITimestampSplit { + /** Represents a DeployModelResponse. */ + class DeployModelResponse implements IDeployModelResponse { /** - * Constructs a new TimestampSplit. + * Constructs a new DeployModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit); - - /** TimestampSplit trainingFraction. */ - public trainingFraction: number; - - /** TimestampSplit validationFraction. */ - public validationFraction: number; - - /** TimestampSplit testFraction. */ - public testFraction: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); - /** TimestampSplit key. */ - public key: string; + /** DeployModelResponse deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); /** - * Creates a new TimestampSplit instance using the specified properties. + * Creates a new DeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TimestampSplit instance + * @returns DeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode + * 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.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode + * 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.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * 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 TimestampSplit + * @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.TimestampSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimestampSplit + * @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.TimestampSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Verifies a TimestampSplit message. + * Verifies a DeployModelResponse message. * @param message 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 TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimestampSplit + * @returns DeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TimestampSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. - * @param message TimestampSplit + * 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.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimestampSplit to JSON. + * Converts this DeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StratifiedSplit. */ - interface IStratifiedSplit { - - /** StratifiedSplit trainingFraction */ - trainingFraction?: (number|null); - - /** StratifiedSplit validationFraction */ - validationFraction?: (number|null); - - /** StratifiedSplit testFraction */ - testFraction?: (number|null); + /** Properties of a DeployModelOperationMetadata. */ + interface IDeployModelOperationMetadata { - /** StratifiedSplit key */ - key?: (string|null); + /** DeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a StratifiedSplit. */ - class StratifiedSplit implements IStratifiedSplit { + /** Represents a DeployModelOperationMetadata. */ + class DeployModelOperationMetadata implements IDeployModelOperationMetadata { /** - * Constructs a new StratifiedSplit. + * Constructs a new DeployModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit); - - /** StratifiedSplit trainingFraction. */ - public trainingFraction: number; - - /** StratifiedSplit validationFraction. */ - public validationFraction: number; - - /** StratifiedSplit testFraction. */ - public testFraction: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); - /** StratifiedSplit key. */ - public key: string; + /** DeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns StratifiedSplit instance + * @returns DeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit 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.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit 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.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StratifiedSplit 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 StratifiedSplit + * @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.StratifiedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Decodes a StratifiedSplit 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 StratifiedSplit + * @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.StratifiedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Verifies a StratifiedSplit 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 StratifiedSplit 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 StratifiedSplit + * @returns DeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StratifiedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @param message StratifiedSplit + * 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.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StratifiedSplit to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** PipelineState enum. */ - enum PipelineState { - PIPELINE_STATE_UNSPECIFIED = 0, - PIPELINE_STATE_QUEUED = 1, - PIPELINE_STATE_PENDING = 2, - PIPELINE_STATE_RUNNING = 3, - PIPELINE_STATE_SUCCEEDED = 4, - PIPELINE_STATE_FAILED = 5, - PIPELINE_STATE_CANCELLING = 6, - PIPELINE_STATE_CANCELLED = 7, - PIPELINE_STATE_PAUSED = 8 - } + /** Properties of an UndeployModelRequest. */ + interface IUndeployModelRequest { - /** Properties of a DeployedIndexRef. */ - interface IDeployedIndexRef { + /** UndeployModelRequest endpoint */ + endpoint?: (string|null); - /** DeployedIndexRef indexEndpoint */ - indexEndpoint?: (string|null); + /** UndeployModelRequest deployedModelId */ + deployedModelId?: (string|null); - /** DeployedIndexRef deployedIndexId */ - deployedIndexId?: (string|null); + /** UndeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a DeployedIndexRef. */ - class DeployedIndexRef implements IDeployedIndexRef { + /** Represents an UndeployModelRequest. */ + class UndeployModelRequest implements IUndeployModelRequest { /** - * Constructs a new DeployedIndexRef. + * Constructs a new UndeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); - /** DeployedIndexRef indexEndpoint. */ - public indexEndpoint: string; + /** UndeployModelRequest endpoint. */ + public endpoint: string; - /** DeployedIndexRef deployedIndexId. */ - public deployedIndexId: string; + /** UndeployModelRequest deployedModelId. */ + public deployedModelId: string; + + /** UndeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new DeployedIndexRef instance using the specified properties. + * Creates a new UndeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexRef instance + * @returns UndeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * 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 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.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, 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 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.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * 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 DeployedIndexRef + * @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.DeployedIndexRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexRef + * @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.DeployedIndexRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Verifies a DeployedIndexRef message. + * 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); /** - * Creates a DeployedIndexRef 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. * @param object Plain object - * @returns DeployedIndexRef + * @returns UndeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * 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 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.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexRef to JSON. + * Converts this UndeployModelRequest 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 UndeployModelResponse. */ + interface IUndeployModelResponse { } - /** Represents an Endpoint. */ - class Endpoint implements IEndpoint { + /** Represents an UndeployModelResponse. */ + class UndeployModelResponse implements IUndeployModelResponse { /** - * Constructs a new Endpoint. + * Constructs a new UndeployModelResponse. * @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.IUndeployModelResponse); /** - * Creates a new Endpoint instance using the specified properties. + * Creates a new UndeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Endpoint instance + * @returns UndeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * 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 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.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, 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 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.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Endpoint message from the specified reader or buffer. + * 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 Endpoint + * @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.Endpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Decodes an Endpoint message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Endpoint + * @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.Endpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Verifies an Endpoint message. + * 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); /** - * Creates an Endpoint 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. * @param object Plain object - * @returns Endpoint + * @returns UndeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * 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 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.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Endpoint to JSON. + * Converts this UndeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedModel. */ - interface IDeployedModel { + /** Properties of an UndeployModelOperationMetadata. */ + interface IUndeployModelOperationMetadata { - /** DeployedModel dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** UndeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** DeployedModel automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedModel id */ - id?: (string|null); - - /** DeployedModel model */ - model?: (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 a DeployedModel. */ - class DeployedModel implements IDeployedModel { + /** Represents an UndeployModelOperationMetadata. */ + class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { /** - * Constructs a new DeployedModel. + * Constructs a new UndeployModelOperationMetadata. * @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 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); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); - /** DeployedModel predictionResources. */ - public predictionResources?: ("dedicatedResources"|"automaticResources"); + /** UndeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeployedModel instance using the specified properties. + * Creates a new UndeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModel instance + * @returns UndeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * 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 DeployedModel + * @returns UndeployModelOperationMetadata * @throws {Error} If the payload is not a reader or 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.UndeployModelOperationMetadata; /** - * Decodes a DeployedModel message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModel + * @returns UndeployModelOperationMetadata * @throws {Error} If the payload is not a 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.UndeployModelOperationMetadata; /** - * Verifies a DeployedModel message. + * 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); /** - * Creates a DeployedModel 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. * @param object Plain object - * @returns DeployedModel + * @returns UndeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * 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 UndeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployModelOperationMetadata * @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.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModel to JSON. + * Converts this UndeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PrivateEndpoints. */ - interface IPrivateEndpoints { + /** Properties of an EntityType. */ + interface IEntityType { - /** PrivateEndpoints predictHttpUri */ - predictHttpUri?: (string|null); + /** EntityType name */ + name?: (string|null); - /** PrivateEndpoints explainHttpUri */ - explainHttpUri?: (string|null); + /** EntityType description */ + description?: (string|null); - /** PrivateEndpoints healthHttpUri */ - healthHttpUri?: (string|null); + /** EntityType createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** PrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|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 PrivateEndpoints. */ - class PrivateEndpoints implements IPrivateEndpoints { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new PrivateEndpoints. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - /** PrivateEndpoints predictHttpUri. */ - public predictHttpUri: string; + /** EntityType name. */ + public name: string; - /** PrivateEndpoints explainHttpUri. */ - public explainHttpUri: string; + /** EntityType description. */ + public description: string; - /** PrivateEndpoints healthHttpUri. */ - public healthHttpUri: string; + /** EntityType createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** PrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** 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 PrivateEndpoints instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateEndpoints instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; /** - * 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 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.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, 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 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.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateEndpoints 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 PrivateEndpoints + * @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.PrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityType; /** - * Decodes a PrivateEndpoints 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 PrivateEndpoints + * @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.PrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityType; /** - * Verifies a PrivateEndpoints 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 PrivateEndpoints 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 PrivateEndpoints + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. - * @param message PrivateEndpoints + * 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.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateEndpoints to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ 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 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); + /** Properties of a FeaturestoreMonitoringConfig. */ + interface IFeaturestoreMonitoringConfig { - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis */ + snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ + importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** FeaturestoreMonitoringConfig numericalThresholdConfig */ + numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ + categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a FeaturestoreMonitoringConfig. */ + class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new FeaturestoreMonitoringConfig. * @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 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); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; - - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis. */ + public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ + public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ + public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ + public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns FeaturestoreMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * 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 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.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, 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 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.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob 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 ModelDeploymentMonitoringJob + * @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.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Decodes a ModelDeploymentMonitoringJob 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 ModelDeploymentMonitoringJob + * @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.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Verifies a ModelDeploymentMonitoringJob 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 ModelDeploymentMonitoringJob 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 ModelDeploymentMonitoringJob + * @returns FeaturestoreMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * 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 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.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelDeploymentMonitoringJob { + namespace FeaturestoreMonitoringConfig { - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } - } + /** Properties of a SnapshotAnalysis. */ + interface ISnapshotAnalysis { - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { + /** SnapshotAnalysis disabled */ + disabled?: (boolean|null); - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** SnapshotAnalysis monitoringInterval */ + monitoringInterval?: (google.protobuf.IDuration|null); - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** SnapshotAnalysis monitoringIntervalDays */ + monitoringIntervalDays?: (number|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); - } + /** SnapshotAnalysis stalenessDays */ + stalenessDays?: (number|null); + } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents a SnapshotAnalysis. */ + class SnapshotAnalysis implements ISnapshotAnalysis { - /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); + /** + * Constructs a new SnapshotAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + /** SnapshotAnalysis disabled. */ + public disabled: boolean; - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** SnapshotAnalysis monitoringInterval. */ + public monitoringInterval?: (google.protobuf.IDuration|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** SnapshotAnalysis monitoringIntervalDays. */ + public monitoringIntervalDays: number; - /** - * 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; + /** SnapshotAnalysis stalenessDays. */ + public stalenessDays: number; - /** - * 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; + /** + * 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 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 + /** + * 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); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { + + /** + * Constructs a new ThresholdConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); + + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 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; + + /** + * 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 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 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 }; + + /** + * Converts this ThresholdConfig 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); + + /** Event labels */ + labels?: ({ [k: string]: string }|null); + } + + /** Represents an Event. */ + class Event implements IEvent { + + /** + * Constructs a new Event. + * @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); + + /** Event labels. */ + public labels: { [k: string]: string }; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; + + /** + * 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 encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * 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.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 ModelDeploymentMonitoringBigQueryTable + * @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.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Event; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable 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 ModelDeploymentMonitoringBigQueryTable + * @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.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Event; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable 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 ModelDeploymentMonitoringBigQueryTable 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 ModelDeploymentMonitoringBigQueryTable + * @returns Event */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; /** - * 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 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.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } + namespace Event { - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INPUT = 1, + OUTPUT = 2 } } - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { + /** Properties of an Execution. */ + interface IExecution { - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Execution name */ + name?: (string|null); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|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); + + /** Execution metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Execution description */ + description?: (string|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents an Execution. */ + class Execution implements IExecution { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new Execution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + /** Execution name. */ + public name: string; - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** 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); + + /** Execution updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Execution schemaTitle. */ + public schemaTitle: string; + + /** Execution schemaVersion. */ + public schemaVersion: string; + + /** Execution metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Execution description. */ + public description: string; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new Execution instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns Execution instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; /** - * 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 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.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, 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 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.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig 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 ModelDeploymentMonitoringObjectiveConfig + * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig 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 ModelDeploymentMonitoringObjectiveConfig + * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig 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 ModelDeploymentMonitoringObjectiveConfig 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 ModelDeploymentMonitoringObjectiveConfig + * @returns Execution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * 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.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this Execution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + namespace Execution { - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + NEW = 1, + RUNNING = 2, + COMPLETE = 3, + FAILED = 4, + CACHED = 5, + CANCELLED = 6 + } } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Properties of a Feature. */ + interface IFeature { - /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); + /** Feature name */ + name?: (string|null); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** Feature description */ + description?: (string|null); - /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + /** Feature valueType */ + valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); - /** - * 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.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Feature createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * 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.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Feature updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * 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 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.ModelDeploymentMonitoringScheduleConfig; + /** Feature labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ModelDeploymentMonitoringScheduleConfig; + /** Feature etag */ + etag?: (string|null); - /** - * 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); + /** Feature monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + /** Feature disableMonitoring */ + disableMonitoring?: (boolean|null); - /** - * 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.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** 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 { /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. - * @returns JSON object + * Constructs a new Feature. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { + /** Feature name. */ + public name: string; - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + /** Feature description. */ + public description: string; - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** Feature valueType. */ + public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** Feature createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); - } + /** Feature updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Feature labels. */ + public labels: { [k: string]: string }; - /** - * Constructs a new ModelMonitoringStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); + /** Feature etag. */ + public etag: string; - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + /** Feature monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + /** Feature disableMonitoring. */ + public disableMonitoring: boolean; - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** Feature monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** Feature monitoringStatsAnomalies. */ + public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns Feature instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; /** - * 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 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.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, 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 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.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * 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 ModelMonitoringStatsAnomalies + * @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.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a Feature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @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.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a Feature message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns Feature */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; /** - * 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 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.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this Feature to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); + namespace Feature { - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + /** Properties of a MonitoringStatsAnomaly. */ + interface IMonitoringStatsAnomaly { - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + /** MonitoringStatsAnomaly objective */ + objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + /** MonitoringStatsAnomaly featureStatsAnomaly */ + featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); } - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { + /** Represents a MonitoringStatsAnomaly. */ + class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { /** - * Constructs a new FeatureHistoricStatsAnomalies. + * Constructs a new MonitoringStatsAnomaly. * @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); + constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + /** MonitoringStatsAnomaly objective. */ + public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** MonitoringStatsAnomaly featureStatsAnomaly. */ + public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * Creates a new MonitoringStatsAnomaly instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance + * @returns MonitoringStatsAnomaly instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * 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 + * 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.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, 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 + * 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.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies + * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Decodes a FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies + * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Verifies a FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies + * @returns MonitoringStatsAnomaly */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies + * 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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureHistoricStatsAnomalies 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 FeatureStatsAnomaly. */ @@ -75027,25527 +75216,26065 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents an EndpointService */ - class EndpointService extends $protobuf.rpc.Service { + /** Properties of an IdMatcher. */ + interface IIdMatcher { + + /** IdMatcher ids */ + ids?: (string[]|null); + } + + /** Represents an IdMatcher. */ + class IdMatcher implements IIdMatcher { /** - * 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 + * Constructs a new IdMatcher. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); + + /** IdMatcher ids. */ + public ids: string[]; /** - * 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. + * Creates a new IdMatcher instance using the specified properties. + * @param [properties] Properties to set + * @returns IdMatcher instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @returns Promise + * 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 createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint + * 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 IdMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @returns Promise + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IdMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse + * Verifies an IdMatcher message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @returns Promise + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IdMatcher */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint + * 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 updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @returns Promise + * Converts this IdMatcher to JSON. + * @returns JSON object */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FeatureSelector. */ + interface IFeatureSelector { + + /** FeatureSelector idMatcher */ + idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + } + + /** Represents a FeatureSelector. */ + class FeatureSelector implements IFeatureSelector { /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new FeatureSelector. + * @param [properties] Properties to set */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); + + /** FeatureSelector idMatcher. */ + public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @returns Promise + * Creates a new FeatureSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSelector instance */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @returns Promise + * 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 deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 FeatureSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @returns Promise + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; - } - - namespace EndpointService { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#createEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Verifies a FeatureSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateEndpointCallback = (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.EndpointService#getEndpoint}. - * @param error Error, if any - * @param [response] Endpoint + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSelector */ - type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#listEndpoints}. - * @param error Error, if any - * @param [response] ListEndpointsResponse + * 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 */ - type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#updateEndpoint}. - * @param error Error, if any - * @param [response] Endpoint + * Converts this FeatureSelector to JSON. + * @returns JSON object */ - type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a Featurestore. */ + interface IFeaturestore { - /** - * 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; + /** Featurestore name */ + name?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#undeployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } + /** Featurestore createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Properties of a CreateEndpointRequest. */ - interface ICreateEndpointRequest { + /** Featurestore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** CreateEndpointRequest parent */ - parent?: (string|null); + /** Featurestore etag */ + etag?: (string|null); - /** CreateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Featurestore labels */ + labels?: ({ [k: string]: string }|null); - /** CreateEndpointRequest endpointId */ - endpointId?: (string|null); + /** Featurestore onlineServingConfig */ + onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state */ + state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); + + /** Featurestore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a CreateEndpointRequest. */ - class CreateEndpointRequest implements ICreateEndpointRequest { + /** Represents a Featurestore. */ + class Featurestore implements IFeaturestore { /** - * Constructs a new CreateEndpointRequest. + * Constructs a new Featurestore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); - /** CreateEndpointRequest parent. */ - public parent: string; + /** Featurestore name. */ + public name: string; - /** CreateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Featurestore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CreateEndpointRequest endpointId. */ - public endpointId: string; + /** Featurestore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag. */ + public etag: string; + + /** Featurestore labels. */ + public labels: { [k: string]: string }; + + /** Featurestore onlineServingConfig. */ + public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** 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 CreateEndpointRequest instance using the specified properties. + * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointRequest instance + * @returns Featurestore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; /** - * 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 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.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, 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 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.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointRequest 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 CreateEndpointRequest + * @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.CreateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Decodes a CreateEndpointRequest 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 CreateEndpointRequest + * @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.CreateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Verifies a CreateEndpointRequest 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 CreateEndpointRequest 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 CreateEndpointRequest + * @returns Featurestore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; /** - * 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 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.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointRequest to JSON. + * Converts this Featurestore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEndpointOperationMetadata. */ - interface ICreateEndpointOperationMetadata { + namespace Featurestore { - /** CreateEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** Properties of an OnlineServingConfig. */ + interface IOnlineServingConfig { - /** Represents a CreateEndpointOperationMetadata. */ - class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { + /** OnlineServingConfig fixedNodeCount */ + fixedNodeCount?: (number|null); - /** - * Constructs a new CreateEndpointOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); + /** OnlineServingConfig scaling */ + scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + } - /** CreateEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Represents an OnlineServingConfig. */ + class OnlineServingConfig implements IOnlineServingConfig { - /** - * 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; + /** + * 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 { /** - * 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 + * 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 */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * 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 + * 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 encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; /** - * 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 + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; /** - * 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 + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; /** - * Verifies a CreateEndpointOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; /** - * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEndpointOperationMetadata + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; + } + + namespace FeaturestoreOnlineServingService { /** - * 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Converts this CreateEndpointOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public toJSON(): { [k: string]: any }; + type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; } - /** Properties of a GetEndpointRequest. */ - interface IGetEndpointRequest { + /** Properties of a ReadFeatureValuesRequest. */ + interface IReadFeatureValuesRequest { - /** GetEndpointRequest name */ - name?: (string|null); + /** ReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** ReadFeatureValuesRequest entityId */ + entityId?: (string|null); + + /** ReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a GetEndpointRequest. */ - class GetEndpointRequest implements IGetEndpointRequest { + /** Represents a ReadFeatureValuesRequest. */ + class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { /** - * Constructs a new GetEndpointRequest. + * Constructs a new ReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); - /** GetEndpointRequest name. */ - public name: string; + /** ReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** ReadFeatureValuesRequest entityId. */ + public entityId: string; + + /** ReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new GetEndpointRequest instance using the specified properties. + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEndpointRequest instance + * @returns ReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * 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 GetEndpointRequest + * @returns ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or 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.ReadFeatureValuesRequest; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEndpointRequest + * @returns ReadFeatureValuesRequest * @throws {Error} If the payload is not a 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.ReadFeatureValuesRequest; /** - * Verifies a GetEndpointRequest message. + * Verifies a ReadFeatureValuesRequest message. * @param message 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 ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEndpointRequest + * @returns ReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * 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 ReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ReadFeatureValuesRequest * @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.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEndpointRequest to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEndpointsRequest. */ - interface IListEndpointsRequest { - - /** ListEndpointsRequest parent */ - parent?: (string|null); - - /** ListEndpointsRequest filter */ - filter?: (string|null); - - /** ListEndpointsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ReadFeatureValuesResponse. */ + interface IReadFeatureValuesResponse { - /** ListEndpointsRequest pageToken */ - pageToken?: (string|null); + /** ReadFeatureValuesResponse header */ + header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); - /** ListEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ReadFeatureValuesResponse entityView */ + entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); } - /** Represents a ListEndpointsRequest. */ - class ListEndpointsRequest implements IListEndpointsRequest { + /** Represents a ReadFeatureValuesResponse. */ + class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { /** - * Constructs a new ListEndpointsRequest. + * Constructs a new ReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); - - /** ListEndpointsRequest parent. */ - public parent: string; - - /** ListEndpointsRequest filter. */ - public filter: string; - - /** ListEndpointsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); - /** ListEndpointsRequest pageToken. */ - public pageToken: string; + /** ReadFeatureValuesResponse header. */ + public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); - /** ListEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ReadFeatureValuesResponse entityView. */ + public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); /** - * Creates a new ListEndpointsRequest instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEndpointsRequest instance + * @returns ReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. + * 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 ListEndpointsRequest + * @returns ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or 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.ReadFeatureValuesResponse; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEndpointsRequest + * @returns ReadFeatureValuesResponse * @throws {Error} If the payload is not a 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.ReadFeatureValuesResponse; /** - * Verifies a ListEndpointsRequest message. + * Verifies a ReadFeatureValuesResponse message. * @param message 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 ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEndpointsRequest + * @returns ReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * 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 ReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ReadFeatureValuesResponse * @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.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEndpointsRequest to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEndpointsResponse. */ - interface IListEndpointsResponse { - - /** ListEndpointsResponse endpoints */ - endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); + namespace ReadFeatureValuesResponse { - /** ListEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Properties of a FeatureDescriptor. */ + interface IFeatureDescriptor { - /** Represents a ListEndpointsResponse. */ - class ListEndpointsResponse implements IListEndpointsResponse { + /** FeatureDescriptor id */ + id?: (string|null); + } - /** - * Constructs a new ListEndpointsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); + /** Represents a FeatureDescriptor. */ + class FeatureDescriptor implements IFeatureDescriptor { - /** ListEndpointsResponse endpoints. */ - public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; + /** + * Constructs a new FeatureDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); - /** ListEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** FeatureDescriptor id. */ + public id: string; - /** - * Creates a new ListEndpointsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEndpointsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + /** + * 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; - /** - * 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.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.IListEndpointsResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 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.ListEndpointsResponse; + /** + * 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; - /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ListEndpointsResponse; + /** + * 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; - /** - * 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); + /** + * 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); - /** - * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEndpointsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + /** + * 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; - /** - * 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.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 }; - /** - * Converts this ListEndpointsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this FeatureDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of an UpdateEndpointRequest. */ - interface IUpdateEndpointRequest { + /** Properties of a Header. */ + interface IHeader { - /** UpdateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Header entityType */ + entityType?: (string|null); - /** UpdateEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** Header featureDescriptors */ + featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + } - /** Represents an UpdateEndpointRequest. */ - class UpdateEndpointRequest implements IUpdateEndpointRequest { + /** Represents a Header. */ + class Header implements IHeader { - /** - * Constructs a new UpdateEndpointRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); - /** UpdateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Header entityType. */ + public entityType: string; - /** UpdateEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Header featureDescriptors. */ + public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; - /** - * Creates a new UpdateEndpointRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateEndpointRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + /** + * 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; - /** - * 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.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.IUpdateEndpointRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 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.UpdateEndpointRequest; + /** + * 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; - /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.UpdateEndpointRequest; + /** + * 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; - /** - * 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); + /** + * 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); - /** - * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateEndpointRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + /** + * 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; - /** - * 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.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 }; - /** - * Converts this UpdateEndpointRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a DeleteEndpointRequest. */ - interface IDeleteEndpointRequest { + /** Properties of an EntityView. */ + interface IEntityView { - /** DeleteEndpointRequest name */ - name?: (string|null); - } + /** EntityView entityId */ + entityId?: (string|null); - /** Represents a DeleteEndpointRequest. */ - class DeleteEndpointRequest implements IDeleteEndpointRequest { + /** EntityView data */ + data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + } - /** - * Constructs a new DeleteEndpointRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); + /** Represents an EntityView. */ + class EntityView implements IEntityView { - /** DeleteEndpointRequest name. */ - public name: string; + /** + * Constructs a new EntityView. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); - /** - * Creates a new DeleteEndpointRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteEndpointRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + /** EntityView entityId. */ + public entityId: string; - /** - * 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.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** EntityView data. */ + public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; - /** - * 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.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.DeleteEndpointRequest; + /** + * 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; - /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.DeleteEndpointRequest; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteEndpointRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + /** + * 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; - /** - * 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.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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); - /** - * Converts this DeleteEndpointRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a DeployModelRequest. */ - interface IDeployModelRequest { + /** + * 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 }; - /** DeployModelRequest endpoint */ - endpoint?: (string|null); + /** + * Converts this EntityView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** DeployModelRequest deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + namespace EntityView { - /** DeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); - } + /** Properties of a Data. */ + interface IData { - /** Represents a DeployModelRequest. */ - class DeployModelRequest implements IDeployModelRequest { + /** Data value */ + value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - /** - * Constructs a new DeployModelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); + /** Data values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + } - /** DeployModelRequest endpoint. */ - public endpoint: string; + /** Represents a Data. */ + class Data implements IData { - /** DeployModelRequest deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** + * Constructs a new Data. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); - /** DeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** Data value. */ + public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - /** - * Creates a new DeployModelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeployModelRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; + /** Data values. */ + public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - /** - * 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.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Data data. */ + public data?: ("value"|"values"); - /** - * 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.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.DeployModelRequest; + /** + * 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; - /** - * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.DeployModelRequest; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeployModelRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; + /** + * 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; - /** - * 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.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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); - /** - * Converts this DeployModelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 }; + + /** + * Converts this Data to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } - /** Properties of a DeployModelResponse. */ - interface IDeployModelResponse { + /** Properties of a StreamingReadFeatureValuesRequest. */ + interface IStreamingReadFeatureValuesRequest { - /** DeployModelResponse deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** StreamingReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** StreamingReadFeatureValuesRequest entityIds */ + entityIds?: (string[]|null); + + /** StreamingReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a DeployModelResponse. */ - class DeployModelResponse implements IDeployModelResponse { + /** Represents a StreamingReadFeatureValuesRequest. */ + class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { /** - * Constructs a new DeployModelResponse. + * Constructs a new StreamingReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - /** DeployModelResponse deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** StreamingReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** StreamingReadFeatureValuesRequest entityIds. */ + public entityIds: string[]; + + /** StreamingReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new DeployModelResponse instance using the specified properties. + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelResponse instance + * @returns StreamingReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * 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 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.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, 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 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.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelResponse 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 DeployModelResponse + * @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.DeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Decodes a DeployModelResponse 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 DeployModelResponse + * @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.DeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Verifies a DeployModelResponse 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 DeployModelResponse 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 DeployModelResponse + * @returns StreamingReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * 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 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.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelResponse to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployModelOperationMetadata. */ - interface IDeployModelOperationMetadata { + /** Properties of a FeatureValue. */ + interface IFeatureValue { - /** DeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** FeatureValue boolValue */ + boolValue?: (boolean|null); - /** Represents a DeployModelOperationMetadata. */ - class DeployModelOperationMetadata implements IDeployModelOperationMetadata { + /** FeatureValue doubleValue */ + doubleValue?: (number|null); - /** - * Constructs a new DeployModelOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); + /** FeatureValue int64Value */ + int64Value?: (number|Long|string|null); - /** DeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** FeatureValue stringValue */ + stringValue?: (string|null); - /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DeployModelOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + /** FeatureValue boolArrayValue */ + boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); - /** - * 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.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** FeatureValue doubleArrayValue */ + doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); - /** - * 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.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** FeatureValue int64ArrayValue */ + int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); - /** - * 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 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.DeployModelOperationMetadata; + /** FeatureValue stringArrayValue */ + stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); - /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.DeployModelOperationMetadata; + /** FeatureValue bytesValue */ + bytesValue?: (Uint8Array|string|null); - /** - * 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); + /** FeatureValue metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + } - /** - * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeployModelOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + /** Represents a FeatureValue. */ + class FeatureValue implements IFeatureValue { /** - * 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 + * Constructs a new FeatureValue. + * @param [properties] Properties to set */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - /** - * Converts this DeployModelOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FeatureValue boolValue. */ + public boolValue?: (boolean|null); - /** Properties of an UndeployModelRequest. */ - interface IUndeployModelRequest { + /** FeatureValue doubleValue. */ + public doubleValue?: (number|null); - /** UndeployModelRequest endpoint */ - endpoint?: (string|null); + /** FeatureValue int64Value. */ + public int64Value?: (number|Long|string|null); - /** UndeployModelRequest deployedModelId */ - deployedModelId?: (string|null); + /** FeatureValue stringValue. */ + public stringValue?: (string|null); - /** UndeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); - } + /** FeatureValue boolArrayValue. */ + public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); - /** Represents an UndeployModelRequest. */ - class UndeployModelRequest implements IUndeployModelRequest { + /** FeatureValue doubleArrayValue. */ + public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); - /** - * Constructs a new UndeployModelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); + /** FeatureValue int64ArrayValue. */ + public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); - /** UndeployModelRequest endpoint. */ - public endpoint: string; + /** FeatureValue stringArrayValue. */ + public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); - /** UndeployModelRequest deployedModelId. */ - public deployedModelId: string; + /** FeatureValue bytesValue. */ + public bytesValue?: (Uint8Array|string|null); - /** UndeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** 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 UndeployModelRequest instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelRequest instance + * @returns FeatureValue instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * 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 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.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, 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 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.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelRequest 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 UndeployModelRequest + * @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.UndeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Decodes an UndeployModelRequest 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 UndeployModelRequest + * @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.UndeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Verifies an UndeployModelRequest 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 an UndeployModelRequest 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 UndeployModelRequest + * @returns FeatureValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * 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 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.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this FeatureValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployModelResponse. */ - interface IUndeployModelResponse { - } + namespace FeatureValue { - /** Represents an UndeployModelResponse. */ - class UndeployModelResponse implements IUndeployModelResponse { + /** Properties of a Metadata. */ + interface IMetadata { + + /** 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 }; + } + } + + /** 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 UndeployModelResponse. + * Constructs a new FeatureValueList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + + /** FeatureValueList values. */ + public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; /** - * Creates a new UndeployModelResponse instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelResponse instance + * @returns FeatureValueList instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * 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 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.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, 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 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.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelResponse 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 UndeployModelResponse + * @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.UndeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Decodes an UndeployModelResponse 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 UndeployModelResponse + * @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.UndeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Verifies an UndeployModelResponse 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 UndeployModelResponse 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 UndeployModelResponse + * @returns FeatureValueList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * 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 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.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this FeatureValueList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployModelOperationMetadata. */ - interface IUndeployModelOperationMetadata { + /** Properties of a BoolArray. */ + interface IBoolArray { - /** UndeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values */ + values?: (boolean[]|null); } - /** Represents an UndeployModelOperationMetadata. */ - class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { + /** Represents a BoolArray. */ + class BoolArray implements IBoolArray { /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new BoolArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); - /** UndeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values. */ + public values: boolean[]; /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelOperationMetadata instance + * @returns BoolArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; /** - * 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 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.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, 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 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.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelOperationMetadata 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 UndeployModelOperationMetadata + * @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.UndeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Decodes an UndeployModelOperationMetadata 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 UndeployModelOperationMetadata + * @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.UndeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Verifies an UndeployModelOperationMetadata 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 an UndeployModelOperationMetadata 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 UndeployModelOperationMetadata + * @returns BoolArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; /** - * 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 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.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this BoolArray 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); - - /** 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); + /** Properties of a DoubleArray. */ + interface IDoubleArray { - /** EntityType monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** DoubleArray values */ + values?: (number[]|null); } - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** Represents a DoubleArray. */ + class DoubleArray implements IDoubleArray { /** - * Constructs a new EntityType. + * Constructs a new DoubleArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - - /** EntityType name. */ - public name: string; - - /** EntityType description. */ - public description: string; - - /** 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; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); - /** EntityType monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** DoubleArray values. */ + public values: number[]; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns DoubleArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * 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 + * 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.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType 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 EntityType + * @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.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Decodes an EntityType 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 EntityType + * @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.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Verifies an EntityType 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 EntityType 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 EntityType + * @returns DoubleArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * 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.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this DoubleArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of an Int64Array. */ + interface IInt64Array { - /** Feature etag */ - etag?: (string|null); + /** Int64Array values */ + values?: ((number|Long|string)[]|null); + } - /** Feature monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** Represents an Int64Array. */ + class Int64Array implements IInt64Array { - /** Feature disableMonitoring */ - disableMonitoring?: (boolean|null); + /** + * Constructs a new Int64Array. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - /** Feature monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + /** Int64Array values. */ + public values: (number|Long|string)[]; - /** Feature monitoringStatsAnomalies */ - monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|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; - /** Represents a Feature. */ - class Feature implements IFeature { + /** + * 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; /** - * Constructs a new Feature. - * @param [properties] Properties to set + * 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 */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; - /** Feature name. */ - public name: string; + /** + * 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; - /** Feature description. */ - public description: string; + /** + * 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; - /** Feature valueType. */ - public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + /** + * 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); - /** Feature createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Int64Array + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; - /** Feature updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * 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 }; - /** Feature labels. */ - public labels: { [k: string]: string }; + /** + * Converts this Int64Array to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Feature etag. */ - public etag: string; + /** Properties of a StringArray. */ + interface IStringArray { - /** Feature monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** StringArray values */ + values?: (string[]|null); + } - /** Feature disableMonitoring. */ - public disableMonitoring: boolean; + /** Represents a StringArray. */ + class StringArray implements IStringArray { - /** Feature monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** + * Constructs a new StringArray. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - /** Feature monitoringStatsAnomalies. */ - public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + /** StringArray values. */ + public values: string[]; /** - * Creates a new Feature instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @param [properties] Properties to set - * @returns Feature instance + * @returns StringArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; /** - * 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 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.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, 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 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.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Feature 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 Feature + * @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.Feature; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StringArray; /** - * Decodes a Feature 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 Feature + * @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.Feature; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StringArray; /** - * Verifies a Feature 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 Feature 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 Feature + * @returns StringArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; /** - * 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 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.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Feature to JSON. + * Converts this StringArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Feature { + /** Represents a FeaturestoreService */ + class FeaturestoreService extends $protobuf.rpc.Service { - /** Properties of a MonitoringStatsAnomaly. */ - interface IMonitoringStatsAnomaly { + /** + * 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); - /** MonitoringStatsAnomaly objective */ - objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); + /** + * 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; - /** MonitoringStatsAnomaly featureStatsAnomaly */ - featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - } + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - /** Represents a MonitoringStatsAnomaly. */ - class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @returns Promise + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; - /** - * Constructs a new MonitoringStatsAnomaly. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); + /** + * 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; - /** MonitoringStatsAnomaly objective. */ - public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @returns Promise + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; - /** MonitoringStatsAnomaly featureStatsAnomaly. */ - public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|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; - /** - * 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; + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @returns Promise + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @returns Promise + */ + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; - /** - * 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; + /** + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; - /** - * 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; + /** + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @returns Promise + */ + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; - /** - * 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); + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; - /** - * 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; + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise + */ + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; - /** - * 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 }; + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; - /** - * Converts this MonitoringStatsAnomaly to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise + */ + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; - namespace MonitoringStatsAnomaly { + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + */ + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; - /** Objective enum. */ - enum Objective { - OBJECTIVE_UNSPECIFIED = 0, - IMPORT_FEATURE_ANALYSIS = 1, - SNAPSHOT_ANALYSIS = 2 - } - } + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise + */ + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; - /** 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 - } - } + /** + * 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 FeaturestoreMonitoringConfig. */ - interface IFeaturestoreMonitoringConfig { + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; - /** FeaturestoreMonitoringConfig snapshotAnalysis */ - snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|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; - /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ - importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; - /** FeaturestoreMonitoringConfig numericalThresholdConfig */ - numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|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; - /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ - categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - } + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; - /** Represents a FeaturestoreMonitoringConfig. */ - class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + /** + * 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; /** - * Constructs a new FeaturestoreMonitoringConfig. - * @param [properties] Properties to set + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; - /** FeaturestoreMonitoringConfig snapshotAnalysis. */ - public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|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; - /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ - public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; - /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ - public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** + * 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; - /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ - public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns FeaturestoreMonitoringConfig instance + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; /** - * 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 + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; /** - * 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 + * Calls DeleteFeature. + * @param request DeleteFeatureRequest 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.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; /** - * 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 FeaturestoreMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeaturestoreMonitoringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; /** - * Verifies a FeaturestoreMonitoringConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; /** - * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeaturestoreMonitoringConfig + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; /** - * 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 + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; /** - * Converts this FeaturestoreMonitoringConfig to JSON. - * @returns JSON object + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; - } + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; - namespace FeaturestoreMonitoringConfig { + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @returns Promise + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; - /** Properties of a SnapshotAnalysis. */ - interface ISnapshotAnalysis { + /** + * 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; - /** SnapshotAnalysis disabled */ - disabled?: (boolean|null); + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @returns Promise + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + } - /** SnapshotAnalysis monitoringInterval */ - monitoringInterval?: (google.protobuf.IDuration|null); + namespace FeaturestoreService { - /** SnapshotAnalysis monitoringIntervalDays */ - monitoringIntervalDays?: (number|null); + /** + * 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; - /** SnapshotAnalysis stalenessDays */ - stalenessDays?: (number|null); - } + /** + * 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; - /** Represents a SnapshotAnalysis. */ - class SnapshotAnalysis implements ISnapshotAnalysis { + /** + * 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; - /** - * Constructs a new SnapshotAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); + /** + * 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; - /** SnapshotAnalysis disabled. */ - public disabled: boolean; + /** + * 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; - /** SnapshotAnalysis monitoringInterval. */ - public monitoringInterval?: (google.protobuf.IDuration|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; - /** SnapshotAnalysis monitoringIntervalDays. */ - public monitoringIntervalDays: number; + /** + * 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; - /** SnapshotAnalysis stalenessDays. */ - public stalenessDays: number; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); - } - - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { - - /** - * Constructs a new ThresholdConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - - /** ThresholdConfig value. */ - public value?: (number|null); - - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this ThresholdConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 an Event. */ - interface IEvent { - - /** Event artifact */ - artifact?: (string|null); - - /** Event execution */ - execution?: (string|null); + /** Properties of a CreateFeaturestoreRequest. */ + interface ICreateFeaturestoreRequest { - /** Event eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); + /** CreateFeaturestoreRequest parent */ + parent?: (string|null); - /** Event type */ - type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); + /** CreateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** Event labels */ - labels?: ({ [k: string]: string }|null); + /** CreateFeaturestoreRequest featurestoreId */ + featurestoreId?: (string|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a CreateFeaturestoreRequest. */ + class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { /** - * Constructs a new Event. + * Constructs a new CreateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - - /** Event artifact. */ - public artifact: string; - - /** Event execution. */ - public execution: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - /** Event eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); + /** CreateFeaturestoreRequest parent. */ + public parent: string; - /** Event type. */ - public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); + /** CreateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** Event labels. */ - public labels: { [k: string]: string }; + /** CreateFeaturestoreRequest featurestoreId. */ + public featurestoreId: string; /** - * Creates a new Event instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Event instance + * @returns CreateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * 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 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.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, 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 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.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event 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 Event + * @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.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Decodes an Event 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 Event + * @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.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Verifies an Event 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 an Event 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 Event + * @returns CreateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * 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 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.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Event { - - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INPUT = 1, - OUTPUT = 2 - } - } - - /** Properties of an Execution. */ - interface IExecution { + /** Properties of a GetFeaturestoreRequest. */ + interface IGetFeaturestoreRequest { - /** Execution name */ + /** GetFeaturestoreRequest 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); - - /** Execution metadata */ - metadata?: (google.protobuf.IStruct|null); - - /** Execution description */ - description?: (string|null); } - /** Represents an Execution. */ - class Execution implements IExecution { + /** Represents a GetFeaturestoreRequest. */ + class GetFeaturestoreRequest implements IGetFeaturestoreRequest { /** - * Constructs a new Execution. + * Constructs a new GetFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); - /** Execution name. */ + /** GetFeaturestoreRequest 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); - - /** Execution updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Execution schemaTitle. */ - public schemaTitle: string; - - /** Execution schemaVersion. */ - public schemaVersion: string; - - /** Execution metadata. */ - public metadata?: (google.protobuf.IStruct|null); - - /** Execution description. */ - public description: string; - /** - * Creates a new Execution instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Execution instance + * @returns GetFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * 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 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.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, 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 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.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Execution 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 Execution + * @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.Execution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Decodes an Execution 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 Execution + * @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.Execution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Verifies an Execution 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 an Execution 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 Execution + * @returns GetFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * 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 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.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Execution to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Execution { + /** Properties of a ListFeaturestoresRequest. */ + interface IListFeaturestoresRequest { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - NEW = 1, - RUNNING = 2, - COMPLETE = 3, - FAILED = 4, - CACHED = 5, - CANCELLED = 6 - } - } + /** ListFeaturestoresRequest parent */ + parent?: (string|null); - /** Properties of an IdMatcher. */ - interface IIdMatcher { + /** ListFeaturestoresRequest filter */ + filter?: (string|null); - /** IdMatcher ids */ - ids?: (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 IdMatcher. */ - class IdMatcher implements IIdMatcher { + /** Represents a ListFeaturestoresRequest. */ + class ListFeaturestoresRequest implements IListFeaturestoresRequest { /** - * Constructs a new IdMatcher. + * Constructs a new ListFeaturestoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - /** IdMatcher ids. */ - public ids: string[]; + /** 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 IdMatcher instance using the specified properties. + * Creates a new ListFeaturestoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IdMatcher instance + * @returns ListFeaturestoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * 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 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.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, 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 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.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdMatcher 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 IdMatcher + * @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.IdMatcher; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Decodes an IdMatcher 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 IdMatcher + * @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.IdMatcher; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Verifies an IdMatcher 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 IdMatcher 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 IdMatcher + * @returns ListFeaturestoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * 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 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.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdMatcher to JSON. + * Converts this ListFeaturestoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeatureSelector. */ - interface IFeatureSelector { + /** Properties of a ListFeaturestoresResponse. */ + interface IListFeaturestoresResponse { - /** FeatureSelector idMatcher */ - idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** ListFeaturestoresResponse featurestores */ + featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + + /** ListFeaturestoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a FeatureSelector. */ - class FeatureSelector implements IFeatureSelector { + /** Represents a ListFeaturestoresResponse. */ + class ListFeaturestoresResponse implements IListFeaturestoresResponse { /** - * Constructs a new FeatureSelector. + * Constructs a new ListFeaturestoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); - /** FeatureSelector idMatcher. */ - public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** ListFeaturestoresResponse featurestores. */ + public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + + /** ListFeaturestoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new FeatureSelector instance using the specified properties. + * Creates a new ListFeaturestoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSelector instance + * @returns ListFeaturestoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * 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 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.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, 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 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.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSelector 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 FeatureSelector + * @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.FeatureSelector; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Decodes a FeatureSelector 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 FeatureSelector + * @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.FeatureSelector; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Verifies a FeatureSelector 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 FeatureSelector 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 FeatureSelector + * @returns ListFeaturestoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * 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 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.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSelector to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Featurestore. */ - interface IFeaturestore { + /** Properties of an UpdateFeaturestoreRequest. */ + interface IUpdateFeaturestoreRequest { - /** Featurestore name */ - name?: (string|null); + /** UpdateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** Featurestore createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** UpdateFeaturestoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Featurestore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Represents an UpdateFeaturestoreRequest. */ + class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { - /** Featurestore etag */ - etag?: (string|null); + /** + * Constructs a new UpdateFeaturestoreRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); - /** Featurestore labels */ - labels?: ({ [k: string]: string }|null); + /** UpdateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** Featurestore onlineServingConfig */ - onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + /** UpdateFeaturestoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Featurestore state */ - state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); + /** + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeaturestoreRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; - /** Featurestore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - } + /** + * 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.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Featurestore. */ - class Featurestore implements IFeaturestore { + /** + * 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.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Constructs a new Featurestore. - * @param [properties] Properties to set + * 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 UpdateFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; - /** Featurestore name. */ - public name: string; + /** + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.UpdateFeaturestoreRequest; - /** Featurestore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * 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); - /** Featurestore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeaturestoreRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; - /** Featurestore etag. */ - public etag: string; + /** + * 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.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Featurestore labels. */ - public labels: { [k: string]: string }; + /** + * Converts this UpdateFeaturestoreRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Featurestore onlineServingConfig. */ - public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + /** Properties of a DeleteFeaturestoreRequest. */ + interface IDeleteFeaturestoreRequest { - /** Featurestore state. */ - public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); + /** DeleteFeaturestoreRequest name */ + name?: (string|null); - /** Featurestore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** DeleteFeaturestoreRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteFeaturestoreRequest. */ + class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { /** - * Creates a new Featurestore instance using the specified properties. + * Constructs a new DeleteFeaturestoreRequest. * @param [properties] Properties to set - * @returns Featurestore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); + + /** DeleteFeaturestoreRequest name. */ + public name: string; + + /** DeleteFeaturestoreRequest force. */ + public force: boolean; /** - * 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 + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeaturestoreRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + + /** + * 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.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, 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 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.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Featurestore 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 Featurestore + * @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.Featurestore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Decodes a Featurestore 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 Featurestore + * @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.Featurestore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Verifies a Featurestore 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 Featurestore 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 Featurestore + * @returns DeleteFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * 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 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.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Featurestore to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Featurestore { + /** Properties of an ImportFeatureValuesRequest. */ + interface IImportFeatureValuesRequest { - /** Properties of an OnlineServingConfig. */ - interface IOnlineServingConfig { + /** ImportFeatureValuesRequest avroSource */ + avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - /** OnlineServingConfig fixedNodeCount */ - fixedNodeCount?: (number|null); + /** ImportFeatureValuesRequest bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** OnlineServingConfig scaling */ - scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - } + /** ImportFeatureValuesRequest csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** Represents an OnlineServingConfig. */ - class OnlineServingConfig implements IOnlineServingConfig { + /** ImportFeatureValuesRequest featureTimeField */ + featureTimeField?: (string|null); - /** - * Constructs a new OnlineServingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); + /** ImportFeatureValuesRequest featureTime */ + featureTime?: (google.protobuf.ITimestamp|null); - /** OnlineServingConfig fixedNodeCount. */ - public fixedNodeCount: number; + /** ImportFeatureValuesRequest entityType */ + entityType?: (string|null); - /** OnlineServingConfig scaling. */ - public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + /** ImportFeatureValuesRequest entityIdField */ + entityIdField?: (string|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; + /** ImportFeatureValuesRequest featureSpecs */ + featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); - /** - * 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; + /** ImportFeatureValuesRequest disableOnlineServing */ + disableOnlineServing?: (boolean|null); - /** - * 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; + /** ImportFeatureValuesRequest workerCount */ + workerCount?: (number|null); - /** - * 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; + /** ImportFeatureValuesRequest disableIngestionAnalysis */ + disableIngestionAnalysis?: (boolean|null); + } - /** - * 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; + /** Represents an ImportFeatureValuesRequest. */ + class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { - /** - * 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); + /** + * Constructs a new ImportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - /** - * 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; + /** ImportFeatureValuesRequest avroSource. */ + public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - /** - * 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 }; + /** ImportFeatureValuesRequest bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Converts this OnlineServingConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ImportFeatureValuesRequest csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - namespace OnlineServingConfig { + /** ImportFeatureValuesRequest featureTimeField. */ + public featureTimeField?: (string|null); - /** 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; + /** ImportFeatureValuesRequest featureTime. */ + public featureTime?: (google.protobuf.ITimestamp|null); - /** - * 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; + /** ImportFeatureValuesRequest entityType. */ + public entityType: string; - /** - * 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; + /** ImportFeatureValuesRequest entityIdField. */ + public entityIdField: string; - /** - * 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); + /** ImportFeatureValuesRequest featureSpecs. */ + public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; - /** - * 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; + /** ImportFeatureValuesRequest disableOnlineServing. */ + public disableOnlineServing: boolean; - /** - * 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 }; + /** ImportFeatureValuesRequest workerCount. */ + public workerCount: number; - /** - * Converts this Scaling to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** ImportFeatureValuesRequest disableIngestionAnalysis. */ + public disableIngestionAnalysis: boolean; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - STABLE = 1, - UPDATING = 2 - } - } + /** ImportFeatureValuesRequest source. */ + public source?: ("avroSource"|"bigquerySource"|"csvSource"); - /** Represents a FeaturestoreOnlineServingService */ - class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { + /** ImportFeatureValuesRequest featureTimeSource. */ + public featureTimeSource?: ("featureTimeField"|"featureTime"); /** - * 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 + * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeatureValuesRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * 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. + * 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 create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 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 readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @returns Promise + * 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 ImportFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeatureValuesRequest + * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @returns Promise + * Verifies an ImportFeatureValuesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; - } + public static verify(message: { [k: string]: any }): (string|null); - namespace FeaturestoreOnlineServingService { + /** + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * 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 */ - type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Converts this ImportFeatureValuesRequest to JSON. + * @returns JSON object */ - type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a ReadFeatureValuesRequest. */ - interface IReadFeatureValuesRequest { + namespace ImportFeatureValuesRequest { - /** ReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** Properties of a FeatureSpec. */ + interface IFeatureSpec { - /** ReadFeatureValuesRequest entityId */ - entityId?: (string|null); + /** FeatureSpec id */ + id?: (string|null); - /** ReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|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 }; + } } - /** Represents a ReadFeatureValuesRequest. */ - class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { + /** Properties of an ImportFeatureValuesResponse. */ + interface IImportFeatureValuesResponse { + + /** ImportFeatureValuesResponse importedEntityCount */ + importedEntityCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + } + + /** Represents an ImportFeatureValuesResponse. */ + class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new ImportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); - /** ReadFeatureValuesRequest entityType. */ - public entityType: string; + /** ImportFeatureValuesResponse importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** ReadFeatureValuesRequest entityId. */ - public entityId: string; + /** ImportFeatureValuesResponse importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); - /** ReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesResponse invalidRowCount. */ + public invalidRowCount: (number|Long|string); /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesRequest instance + * @returns ImportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * 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 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.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, 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 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.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesRequest 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 ReadFeatureValuesRequest + * @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.ReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Decodes a ReadFeatureValuesRequest 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 ReadFeatureValuesRequest + * @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.ReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Verifies a ReadFeatureValuesRequest 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 a ReadFeatureValuesRequest 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 ReadFeatureValuesRequest + * @returns ImportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * 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 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.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadFeatureValuesResponse. */ - interface IReadFeatureValuesResponse { + /** Properties of a BatchReadFeatureValuesRequest. */ + interface IBatchReadFeatureValuesRequest { - /** ReadFeatureValuesResponse header */ - header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** BatchReadFeatureValuesRequest csvReadInstances */ + csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** ReadFeatureValuesResponse entityView */ - entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|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); + + /** BatchReadFeatureValuesRequest entityTypeSpecs */ + entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); } - /** Represents a ReadFeatureValuesResponse. */ - class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { + /** Represents a BatchReadFeatureValuesRequest. */ + class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new BatchReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); - /** ReadFeatureValuesResponse header. */ - public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** BatchReadFeatureValuesRequest csvReadInstances. */ + public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** ReadFeatureValuesResponse entityView. */ - public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|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[]; + + /** BatchReadFeatureValuesRequest readOption. */ + public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesResponse instance + * @returns BatchReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * 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 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.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, 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 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.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesResponse 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 ReadFeatureValuesResponse + * @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.ReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Decodes a ReadFeatureValuesResponse 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 ReadFeatureValuesResponse + * @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.ReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Verifies a ReadFeatureValuesResponse 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 ReadFeatureValuesResponse 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 ReadFeatureValuesResponse + * @returns BatchReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * 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 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.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ReadFeatureValuesResponse { + namespace BatchReadFeatureValuesRequest { - /** Properties of a FeatureDescriptor. */ - interface IFeatureDescriptor { + /** Properties of a PassThroughField. */ + interface IPassThroughField { - /** FeatureDescriptor id */ - id?: (string|null); + /** PassThroughField fieldName */ + fieldName?: (string|null); } - /** Represents a FeatureDescriptor. */ - class FeatureDescriptor implements IFeatureDescriptor { + /** Represents a PassThroughField. */ + class PassThroughField implements IPassThroughField { /** - * Constructs a new FeatureDescriptor. + * Constructs a new PassThroughField. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - /** FeatureDescriptor id. */ - public id: string; + /** PassThroughField fieldName. */ + public fieldName: string; /** - * Creates a new FeatureDescriptor instance using the specified properties. + * Creates a new PassThroughField instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureDescriptor instance + * @returns PassThroughField 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.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * 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 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.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, 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 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.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. + * 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 FeatureDescriptor + * @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.ReadFeatureValuesResponse.FeatureDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureDescriptor + * @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.ReadFeatureValuesResponse.FeatureDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Verifies a FeatureDescriptor message. + * 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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureDescriptor + * @returns PassThroughField */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * 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 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.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureDescriptor to JSON. + * Converts this PassThroughField to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Header. */ - interface IHeader { + /** Properties of an EntityTypeSpec. */ + interface IEntityTypeSpec { - /** Header entityType */ - entityType?: (string|null); + /** EntityTypeSpec entityTypeId */ + entityTypeId?: (string|null); - /** Header featureDescriptors */ - featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + /** EntityTypeSpec featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents an EntityTypeSpec. */ + class EntityTypeSpec implements IEntityTypeSpec { /** - * Constructs a new Header. + * Constructs a new EntityTypeSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - /** Header entityType. */ - public entityType: string; + /** EntityTypeSpec entityTypeId. */ + public entityTypeId: string; - /** Header featureDescriptors. */ - public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + /** EntityTypeSpec featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; /** - * Creates a new Header instance using the specified properties. + * Creates a new EntityTypeSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Header instance + * @returns EntityTypeSpec 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.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * 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 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.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, 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 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.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * 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 Header + * @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.ReadFeatureValuesResponse.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @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.ReadFeatureValuesResponse.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Verifies a Header message. + * 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 Header message from a plain object. Also converts values to their respective internal types. + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns EntityTypeSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * 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 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.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this EntityTypeSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of an EntityView. */ - interface IEntityView { + /** Properties of an ExportFeatureValuesRequest. */ + interface IExportFeatureValuesRequest { - /** EntityView entityId */ - entityId?: (string|null); + /** ExportFeatureValuesRequest snapshotExport */ + snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** EntityView data */ - data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|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); + + /** ExportFeatureValuesRequest settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + } + + /** Represents an ExportFeatureValuesRequest. */ + class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + + /** + * Constructs a new ExportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); + + /** ExportFeatureValuesRequest snapshotExport. */ + public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); + + /** ExportFeatureValuesRequest fullExport. */ + public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); + + /** ExportFeatureValuesRequest entityType. */ + public entityType: string; + + /** ExportFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + + /** ExportFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** ExportFeatureValuesRequest settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + + /** ExportFeatureValuesRequest mode. */ + public mode?: ("snapshotExport"|"fullExport"); + + /** + * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + + /** + * 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.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + + /** + * 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 an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + + /** + * 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.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ExportFeatureValuesRequest { + + /** Properties of a SnapshotExport. */ + interface ISnapshotExport { + + /** SnapshotExport snapshotTime */ + snapshotTime?: (google.protobuf.ITimestamp|null); + + /** SnapshotExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); } - /** Represents an EntityView. */ - class EntityView implements IEntityView { + /** Represents a SnapshotExport. */ + class SnapshotExport implements ISnapshotExport { /** - * Constructs a new EntityView. + * Constructs a new SnapshotExport. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - /** EntityView entityId. */ - public entityId: string; + /** SnapshotExport snapshotTime. */ + public snapshotTime?: (google.protobuf.ITimestamp|null); - /** EntityView data. */ - public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + /** SnapshotExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new EntityView instance using the specified properties. + * Creates a new SnapshotExport instance using the specified properties. * @param [properties] Properties to set - * @returns EntityView instance + * @returns SnapshotExport 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.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * 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 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.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, 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 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.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityView message from the specified reader or buffer. + * 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 EntityView + * @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.ReadFeatureValuesResponse.EntityView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityView + * @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.ReadFeatureValuesResponse.EntityView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Verifies an EntityView message. + * 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 an EntityView message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityView + * @returns SnapshotExport */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * 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 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.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityView to JSON. + * Converts this SnapshotExport 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); + /** Properties of a FullExport. */ + interface IFullExport { - /** Data values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - } + /** FullExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Represents a Data. */ - class Data implements IData { + /** FullExport endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** - * Constructs a new Data. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); + /** Represents a FullExport. */ + class FullExport implements IFullExport { - /** Data value. */ - public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); + /** + * Constructs a new FullExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); - /** Data values. */ - public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + /** FullExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Data data. */ - public data?: ("value"|"values"); + /** FullExport endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * 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; + /** + * 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 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 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 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; + /** + * 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 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 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 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; + /** + * 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 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); + /** + * 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 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 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 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 }; + /** + * 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 Data to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this FullExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } - /** Properties of a StreamingReadFeatureValuesRequest. */ - interface IStreamingReadFeatureValuesRequest { - - /** StreamingReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** Properties of a DestinationFeatureSetting. */ + interface IDestinationFeatureSetting { - /** StreamingReadFeatureValuesRequest entityIds */ - entityIds?: (string[]|null); + /** DestinationFeatureSetting featureId */ + featureId?: (string|null); - /** StreamingReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** DestinationFeatureSetting destinationField */ + destinationField?: (string|null); } - /** Represents a StreamingReadFeatureValuesRequest. */ - class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { + /** Represents a DestinationFeatureSetting. */ + class DestinationFeatureSetting implements IDestinationFeatureSetting { /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new DestinationFeatureSetting. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); - /** StreamingReadFeatureValuesRequest entityType. */ - public entityType: string; + /** DestinationFeatureSetting featureId. */ + public featureId: string; - /** StreamingReadFeatureValuesRequest entityIds. */ - public entityIds: string[]; - - /** StreamingReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** DestinationFeatureSetting destinationField. */ + public destinationField: string; /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingReadFeatureValuesRequest instance + * @returns DestinationFeatureSetting instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * 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 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.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, 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 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.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest + * @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.StreamingReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Decodes a StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest + * @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.StreamingReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Verifies a StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest + * @returns DestinationFeatureSetting */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message StreamingReadFeatureValuesRequest + * 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.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingReadFeatureValuesRequest to JSON. + * Converts this DestinationFeatureSetting to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeatureValue. */ - interface IFeatureValue { - - /** FeatureValue boolValue */ - boolValue?: (boolean|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); + /** Properties of a FeatureValueDestination. */ + interface IFeatureValueDestination { - /** FeatureValue stringArrayValue */ - stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** FeatureValueDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** FeatureValue bytesValue */ - bytesValue?: (Uint8Array|string|null); + /** FeatureValueDestination tfrecordDestination */ + tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - /** FeatureValue metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** FeatureValueDestination csvDestination */ + csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); } - /** Represents a FeatureValue. */ - class FeatureValue implements IFeatureValue { + /** Represents a FeatureValueDestination. */ + class FeatureValueDestination implements IFeatureValueDestination { /** - * Constructs a new FeatureValue. + * Constructs a new FeatureValueDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - - /** FeatureValue boolValue. */ - public boolValue?: (boolean|null); - - /** 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); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - /** FeatureValue stringArrayValue. */ - public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** FeatureValueDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** FeatureValue bytesValue. */ - public bytesValue?: (Uint8Array|string|null); + /** FeatureValueDestination tfrecordDestination. */ + public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - /** FeatureValue metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** FeatureValueDestination csvDestination. */ + public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); - /** FeatureValue value. */ - public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); + /** FeatureValueDestination destination. */ + public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new FeatureValueDestination instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValue instance + * @returns FeatureValueDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * 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 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.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, 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 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.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValue 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 FeatureValue + * @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.FeatureValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Decodes a FeatureValue 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 FeatureValue + * @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.FeatureValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Verifies a FeatureValue 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 FeatureValue 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 FeatureValue + * @returns FeatureValueDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. - * @param message FeatureValue + * 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.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValue to JSON. + * Converts this FeatureValueDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FeatureValue { - - /** Properties of a Metadata. */ - interface IMetadata { - - /** 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 }; - } - } - - /** Properties of a FeatureValueList. */ - interface IFeatureValueList { - - /** FeatureValueList values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); + /** Properties of an ExportFeatureValuesResponse. */ + interface IExportFeatureValuesResponse { } - /** Represents a FeatureValueList. */ - class FeatureValueList implements IFeatureValueList { + /** Represents an ExportFeatureValuesResponse. */ + class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { /** - * Constructs a new FeatureValueList. + * Constructs a new ExportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); - - /** FeatureValueList values. */ - public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); /** - * Creates a new FeatureValueList instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueList instance + * @returns ExportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * 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 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.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, 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 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.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueList 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 FeatureValueList + * @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.FeatureValueList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Decodes a FeatureValueList 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 FeatureValueList + * @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.FeatureValueList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Verifies a FeatureValueList 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 a FeatureValueList 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 FeatureValueList + * @returns ExportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. - * @param message FeatureValueList + * 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.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueList to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BoolArray. */ - interface IBoolArray { - - /** BoolArray values */ - values?: (boolean[]|null); + /** Properties of a BatchReadFeatureValuesResponse. */ + interface IBatchReadFeatureValuesResponse { } - /** Represents a BoolArray. */ - class BoolArray implements IBoolArray { + /** Represents a BatchReadFeatureValuesResponse. */ + class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { /** - * Constructs a new BoolArray. + * Constructs a new BatchReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); - - /** BoolArray values. */ - public values: boolean[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BoolArray instance + * @returns BatchReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * 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 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.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, 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 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.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BoolArray 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 BoolArray + * @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.BoolArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Decodes a BoolArray 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 BoolArray + * @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.BoolArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Verifies a BoolArray 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 BoolArray 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 BoolArray + * @returns BatchReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. - * @param message BoolArray + * 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.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BoolArray to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DoubleArray. */ - interface IDoubleArray { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** DoubleArray values */ - values?: (number[]|null); + /** CreateEntityTypeRequest parent */ + parent?: (string|null); + + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** CreateEntityTypeRequest entityTypeId */ + entityTypeId?: (string|null); } - /** Represents a DoubleArray. */ - class DoubleArray implements IDoubleArray { + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Constructs a new DoubleArray. + * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); - /** DoubleArray values. */ - public values: number[]; + /** CreateEntityTypeRequest parent. */ + public parent: string; + + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** CreateEntityTypeRequest entityTypeId. */ + public entityTypeId: string; /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DoubleArray instance + * @returns CreateEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * 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 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.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, 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 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.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DoubleArray 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 DoubleArray + * @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.DoubleArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Decodes a DoubleArray 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 DoubleArray + * @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.DoubleArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Verifies a DoubleArray 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 DoubleArray 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 DoubleArray + * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * 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 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.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DoubleArray to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Int64Array. */ - interface IInt64Array { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** Int64Array values */ - values?: ((number|Long|string)[]|null); + /** GetEntityTypeRequest name */ + name?: (string|null); } - /** Represents an Int64Array. */ - class Int64Array implements IInt64Array { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new Int64Array. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); - /** Int64Array values. */ - public values: (number|Long|string)[]; + /** GetEntityTypeRequest name. */ + public name: string; /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Int64Array instance + * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * 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 + * 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.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Int64Array 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 Int64Array + * @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.Int64Array; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Decodes an Int64Array 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 Int64Array + * @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.Int64Array; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Verifies an Int64Array 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 Int64Array 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 Int64Array + * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. - * @param message Int64Array + * 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.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Int64Array to JSON. + * Converts this GetEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StringArray. */ - interface IStringArray { + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** StringArray values */ - values?: (string[]|null); + /** ListEntityTypesRequest parent */ + parent?: (string|null); + + /** ListEntityTypesRequest filter */ + filter?: (string|null); + + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); + + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + + /** ListEntityTypesRequest orderBy */ + orderBy?: (string|null); + + /** ListEntityTypesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a StringArray. */ - class StringArray implements IStringArray { + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * Constructs a new StringArray. + * Constructs a new ListEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - /** StringArray values. */ - public values: string[]; + /** ListEntityTypesRequest parent. */ + public parent: string; + + /** ListEntityTypesRequest filter. */ + public filter: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; + + /** ListEntityTypesRequest orderBy. */ + public orderBy: string; + + /** ListEntityTypesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new StringArray instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StringArray instance + * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * 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 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.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, 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 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.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StringArray 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 StringArray + * @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.StringArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Decodes a StringArray 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 StringArray + * @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.StringArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Verifies a StringArray 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 a StringArray 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 StringArray + * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * 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 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.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StringArray to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a FeaturestoreService */ - class FeaturestoreService extends $protobuf.rpc.Service { + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** - * 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); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); - /** - * 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; + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @returns Promise + * Constructs a new ListEntityTypesResponse. + * @param [properties] Properties to set */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - /** - * 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; + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; - /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @returns Promise - */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesResponse instance */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @returns Promise + * 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 listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @returns Promise + * 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 updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @returns Promise + * Verifies a ListEntityTypesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesResponse */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise + * 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 createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Converts this ListEntityTypesResponse to JSON. + * @returns JSON object */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise - */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse - */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise - */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * 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; + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise + * Constructs a new UpdateEntityTypeRequest. + * @param [properties] Properties to set */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - /** - * 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; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise - */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEntityTypeRequest instance */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @returns Promise + * 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 createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @returns Promise + * 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 UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @returns Promise + * Verifies an UpdateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEntityTypeRequest */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @returns Promise + * 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 listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Converts this UpdateEntityTypeRequest to JSON. + * @returns JSON object */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @returns Promise - */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { + + /** DeleteEntityTypeRequest name */ + name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new DeleteEntityTypeRequest. + * @param [properties] Properties to set */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); + + /** DeleteEntityTypeRequest name. */ + public name: string; + + /** DeleteEntityTypeRequest force. */ + public force: boolean; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @returns Promise + * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteEntityTypeRequest instance */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @returns Promise + * 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 importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @returns Promise + * 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 batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a DeleteEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @returns Promise + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteEntityTypeRequest */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse + * 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 searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @returns Promise + * Converts this DeleteEntityTypeRequest to JSON. + * @returns JSON object */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace FeaturestoreService { + /** Properties of a CreateFeatureRequest. */ + interface ICreateFeatureRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeaturestore}. - * @param error Error, if any - * @param [response] Operation + /** CreateFeatureRequest parent */ + parent?: (string|null); + + /** CreateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId */ + featureId?: (string|null); + } + + /** Represents a CreateFeatureRequest. */ + class CreateFeatureRequest implements ICreateFeatureRequest { + + /** + * Constructs a new CreateFeatureRequest. + * @param [properties] Properties to set */ - type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); + + /** CreateFeatureRequest parent. */ + public parent: string; + + /** CreateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId. */ + public featureId: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeaturestore}. - * @param error Error, if any - * @param [response] Featurestore + * Creates a new CreateFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureRequest instance */ - type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeaturestores}. - * @param error Error, if any - * @param [response] ListFeaturestoresResponse + * 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 */ - type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * 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 CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createEntityType}. - * @param error Error, if any - * @param [response] Operation + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getEntityType}. - * @param error Error, if any - * @param [response] EntityType + * Verifies a CreateFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureRequest */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateEntityType}. - * @param error Error, if any - * @param [response] EntityType + * 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 */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteEntityType}. - * @param error Error, if any - * @param [response] Operation + * Converts this CreateFeatureRequest to JSON. + * @returns JSON object */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchCreateFeaturesRequest. */ + interface IBatchCreateFeaturesRequest { + + /** BatchCreateFeaturesRequest parent */ + parent?: (string|null); + + /** BatchCreateFeaturesRequest requests */ + requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); + } + + /** Represents a BatchCreateFeaturesRequest. */ + class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeature}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new BatchCreateFeaturesRequest. + * @param [properties] Properties to set */ - type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); + + /** BatchCreateFeaturesRequest parent. */ + public parent: string; + + /** BatchCreateFeaturesRequest requests. */ + public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchCreateFeatures}. - * @param error Error, if any - * @param [response] Operation + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateFeaturesRequest instance */ - type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeature}. - * @param error Error, if any - * @param [response] Feature + * 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 */ - type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeatures}. - * @param error Error, if any - * @param [response] ListFeaturesResponse + * 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 */ - type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeature}. - * @param error Error, if any - * @param [response] Feature + * 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 */ - type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeature}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#importFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Verifies a BatchCreateFeaturesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ImportFeatureValuesCallback = (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.FeaturestoreService#batchReadFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateFeaturesRequest */ - type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#exportFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#searchFeatures}. - * @param error Error, if any - * @param [response] SearchFeaturesResponse + * Converts this BatchCreateFeaturesRequest to JSON. + * @returns JSON object */ - type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateFeaturestoreRequest. */ - interface ICreateFeaturestoreRequest { - - /** CreateFeaturestoreRequest parent */ - parent?: (string|null); - - /** CreateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** Properties of a BatchCreateFeaturesResponse. */ + interface IBatchCreateFeaturesResponse { - /** CreateFeaturestoreRequest featurestoreId */ - featurestoreId?: (string|null); + /** BatchCreateFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); } - /** Represents a CreateFeaturestoreRequest. */ - class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { + /** Represents a BatchCreateFeaturesResponse. */ + class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { /** - * Constructs a new CreateFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - - /** CreateFeaturestoreRequest parent. */ - public parent: string; - - /** CreateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - /** CreateFeaturestoreRequest featurestoreId. */ - public featurestoreId: string; + /** BatchCreateFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeaturestoreRequest instance + * @returns BatchCreateFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * 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 + * 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.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, 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 + * 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.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreRequest 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 CreateFeaturestoreRequest + * @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.CreateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Decodes a CreateFeaturestoreRequest 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 CreateFeaturestoreRequest + * @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.CreateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Verifies a CreateFeaturestoreRequest 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 CreateFeaturestoreRequest 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 CreateFeaturestoreRequest + * @returns BatchCreateFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message CreateFeaturestoreRequest + * 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.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetFeaturestoreRequest. */ - interface IGetFeaturestoreRequest { + /** Properties of a GetFeatureRequest. */ + interface IGetFeatureRequest { - /** GetFeaturestoreRequest name */ + /** GetFeatureRequest name */ name?: (string|null); } - /** Represents a GetFeaturestoreRequest. */ - class GetFeaturestoreRequest implements IGetFeaturestoreRequest { + /** Represents a GetFeatureRequest. */ + class GetFeatureRequest implements IGetFeatureRequest { /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new GetFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); - /** GetFeaturestoreRequest name. */ + /** GetFeatureRequest name. */ public name: string; /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeaturestoreRequest instance + * @returns GetFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * 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 + * 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.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeaturestoreRequest 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 GetFeaturestoreRequest + * @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.GetFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Decodes a GetFeaturestoreRequest 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 GetFeaturestoreRequest + * @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.GetFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Verifies a GetFeaturestoreRequest 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 GetFeaturestoreRequest 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 GetFeaturestoreRequest + * @returns GetFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. - * @param message GetFeaturestoreRequest + * 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.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this GetFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFeaturestoresRequest. */ - interface IListFeaturestoresRequest { + /** Properties of a ListFeaturesRequest. */ + interface IListFeaturesRequest { - /** ListFeaturestoresRequest parent */ + /** ListFeaturesRequest parent */ parent?: (string|null); - /** ListFeaturestoresRequest filter */ + /** ListFeaturesRequest filter */ filter?: (string|null); - /** ListFeaturestoresRequest pageSize */ + /** ListFeaturesRequest pageSize */ pageSize?: (number|null); - /** ListFeaturestoresRequest pageToken */ + /** ListFeaturesRequest pageToken */ pageToken?: (string|null); - /** ListFeaturestoresRequest orderBy */ + /** ListFeaturesRequest orderBy */ orderBy?: (string|null); - /** ListFeaturestoresRequest readMask */ + /** ListFeaturesRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); + + /** ListFeaturesRequest latestStatsCount */ + latestStatsCount?: (number|null); } - /** Represents a ListFeaturestoresRequest. */ - class ListFeaturestoresRequest implements IListFeaturestoresRequest { + /** Represents a ListFeaturesRequest. */ + class ListFeaturesRequest implements IListFeaturesRequest { /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new ListFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); - /** ListFeaturestoresRequest parent. */ + /** ListFeaturesRequest parent. */ public parent: string; - /** ListFeaturestoresRequest filter. */ + /** ListFeaturesRequest filter. */ public filter: string; - /** ListFeaturestoresRequest pageSize. */ + /** ListFeaturesRequest pageSize. */ public pageSize: number; - /** ListFeaturestoresRequest pageToken. */ + /** ListFeaturesRequest pageToken. */ public pageToken: string; - /** ListFeaturestoresRequest orderBy. */ + /** ListFeaturesRequest orderBy. */ public orderBy: string; - /** ListFeaturestoresRequest readMask. */ + /** ListFeaturesRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); + /** ListFeaturesRequest latestStatsCount. */ + public latestStatsCount: number; + /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new ListFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresRequest instance + * @returns ListFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * 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 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.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, 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 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.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresRequest 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 ListFeaturestoresRequest + * @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.ListFeaturestoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Decodes a ListFeaturestoresRequest 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 ListFeaturestoresRequest + * @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.ListFeaturestoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Verifies a ListFeaturestoresRequest 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 ListFeaturestoresRequest 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 ListFeaturestoresRequest + * @returns ListFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * 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 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.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this ListFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFeaturestoresResponse. */ - interface IListFeaturestoresResponse { + /** Properties of a ListFeaturesResponse. */ + interface IListFeaturesResponse { - /** ListFeaturestoresResponse featurestores */ - featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + /** ListFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** ListFeaturestoresResponse nextPageToken */ + /** ListFeaturesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListFeaturestoresResponse. */ - class ListFeaturestoresResponse implements IListFeaturestoresResponse { + /** Represents a ListFeaturesResponse. */ + class ListFeaturesResponse implements IListFeaturesResponse { /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new ListFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); - /** ListFeaturestoresResponse featurestores. */ - public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + /** ListFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** ListFeaturestoresResponse nextPageToken. */ + /** ListFeaturesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new ListFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresResponse instance + * @returns ListFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * 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 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.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, 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 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.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * 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 ListFeaturestoresResponse + * @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.ListFeaturestoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresResponse + * @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.ListFeaturestoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Verifies a ListFeaturestoresResponse message. + * 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 ListFeaturestoresResponse 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. * @param object Plain object - * @returns ListFeaturestoresResponse + * @returns ListFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * 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 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.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this ListFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFeaturestoreRequest. */ - interface IUpdateFeaturestoreRequest { + /** Properties of a SearchFeaturesRequest. */ + interface ISearchFeaturesRequest { - /** UpdateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** SearchFeaturesRequest location */ + location?: (string|null); - /** UpdateFeaturestoreRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** SearchFeaturesRequest query */ + query?: (string|null); + + /** SearchFeaturesRequest pageSize */ + pageSize?: (number|null); + + /** SearchFeaturesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateFeaturestoreRequest. */ - class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { + /** Represents a SearchFeaturesRequest. */ + class SearchFeaturesRequest implements ISearchFeaturesRequest { /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new SearchFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); - /** UpdateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** SearchFeaturesRequest location. */ + public location: string; - /** UpdateFeaturestoreRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SearchFeaturesRequest query. */ + public query: string; + + /** SearchFeaturesRequest pageSize. */ + public pageSize: number; + + /** SearchFeaturesRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new SearchFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreRequest instance + * @returns SearchFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * 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 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.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, 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 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.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreRequest 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 UpdateFeaturestoreRequest + * @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.UpdateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Decodes an UpdateFeaturestoreRequest 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 UpdateFeaturestoreRequest + * @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.UpdateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Verifies an UpdateFeaturestoreRequest 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 an UpdateFeaturestoreRequest 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 UpdateFeaturestoreRequest + * @returns SearchFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * 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 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.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this SearchFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteFeaturestoreRequest. */ - interface IDeleteFeaturestoreRequest { + /** Properties of a SearchFeaturesResponse. */ + interface ISearchFeaturesResponse { - /** DeleteFeaturestoreRequest name */ - name?: (string|null); + /** SearchFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** DeleteFeaturestoreRequest force */ - force?: (boolean|null); + /** SearchFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteFeaturestoreRequest. */ - class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { + /** Represents a SearchFeaturesResponse. */ + class SearchFeaturesResponse implements ISearchFeaturesResponse { /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new SearchFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); - /** DeleteFeaturestoreRequest name. */ - public name: string; + /** SearchFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** DeleteFeaturestoreRequest force. */ - public force: boolean; + /** SearchFeaturesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new SearchFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeaturestoreRequest instance + * @returns SearchFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; /** - * 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 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.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, 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 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.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * 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 DeleteFeaturestoreRequest + * @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.DeleteFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeaturestoreRequest + * @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.DeleteFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; /** - * Verifies a DeleteFeaturestoreRequest message. + * 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 DeleteFeaturestoreRequest 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. * @param object Plain object - * @returns DeleteFeaturestoreRequest + * @returns SearchFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; /** - * 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 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.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this SearchFeaturesResponse 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); + /** Properties of an UpdateFeatureRequest. */ + interface IUpdateFeatureRequest { - /** ImportFeatureValuesRequest workerCount */ - workerCount?: (number|null); + /** UpdateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** ImportFeatureValuesRequest disableIngestionAnalysis */ - disableIngestionAnalysis?: (boolean|null); + /** UpdateFeatureRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ImportFeatureValuesRequest. */ - class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { + /** Represents an UpdateFeatureRequest. */ + class UpdateFeatureRequest implements IUpdateFeatureRequest { /** - * Constructs a new ImportFeatureValuesRequest. + * Constructs a new UpdateFeatureRequest. * @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; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); - /** ImportFeatureValuesRequest source. */ - public source?: ("avroSource"|"bigquerySource"|"csvSource"); + /** UpdateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** ImportFeatureValuesRequest featureTimeSource. */ - public featureTimeSource?: ("featureTimeField"|"featureTime"); + /** UpdateFeatureRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new UpdateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesRequest instance + * @returns UpdateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * 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 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.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, 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 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.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * 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 ImportFeatureValuesRequest + * @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.ImportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesRequest + * @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.ImportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Verifies an ImportFeatureValuesRequest message. + * 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); /** - * Creates an ImportFeatureValuesRequest 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. * @param object Plain object - * @returns ImportFeatureValuesRequest + * @returns UpdateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ImportFeatureValuesRequest + * 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.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this UpdateFeatureRequest 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 a DeleteFeatureRequest. */ + interface IDeleteFeatureRequest { - /** ImportFeatureValuesResponse invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** DeleteFeatureRequest name */ + name?: (string|null); } - /** Represents an ImportFeatureValuesResponse. */ - class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { + /** Represents a DeleteFeatureRequest. */ + class DeleteFeatureRequest implements IDeleteFeatureRequest { /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new DeleteFeatureRequest. * @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.IDeleteFeatureRequest); - /** ImportFeatureValuesResponse invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** DeleteFeatureRequest name. */ + public name: string; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new DeleteFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesResponse instance + * @returns DeleteFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * 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 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.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, 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 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.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * 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 ImportFeatureValuesResponse + * @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.ImportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesResponse + * @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.ImportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Verifies an ImportFeatureValuesResponse message. + * 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); /** - * Creates an ImportFeatureValuesResponse 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. * @param object Plain object - * @returns ImportFeatureValuesResponse + * @returns DeleteFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ImportFeatureValuesResponse + * 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.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this DeleteFeatureRequest 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 CreateFeaturestoreOperationMetadata. */ + interface ICreateFeaturestoreOperationMetadata { - /** BatchReadFeatureValuesRequest entityTypeSpecs */ - entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); + /** CreateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a BatchReadFeatureValuesRequest. */ - class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { + /** Represents a CreateFeaturestoreOperationMetadata. */ + class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { /** - * Constructs a new BatchReadFeatureValuesRequest. + * Constructs a new CreateFeaturestoreOperationMetadata. * @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); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); - /** 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[]; - - /** BatchReadFeatureValuesRequest readOption. */ - public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + /** CreateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesRequest instance + * @returns CreateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * 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 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.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, 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 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.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * 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 BatchReadFeatureValuesRequest + * @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.BatchReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesRequest + * @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.BatchReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Verifies a BatchReadFeatureValuesRequest message. + * 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); /** - * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesRequest + * @returns CreateFeaturestoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * 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 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.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this CreateFeaturestoreOperationMetadata 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); + /** Properties of an UpdateFeaturestoreOperationMetadata. */ + interface IUpdateFeaturestoreOperationMetadata { - /** PassThroughField fieldName. */ - public fieldName: string; + /** UpdateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * 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; + /** Represents an UpdateFeaturestoreOperationMetadata. */ + class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { - /** - * 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; + /** + * Constructs a new UpdateFeaturestoreOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); - /** - * 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; + /** UpdateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * 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 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; - /** - * 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 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; - /** - * 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 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; - /** - * 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 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; - /** - * 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 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; - /** - * Converts this PassThroughField to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Properties of an EntityTypeSpec. */ - interface IEntityTypeSpec { + /** + * 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; - /** EntityTypeSpec entityTypeId */ - entityTypeId?: (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 }; - /** EntityTypeSpec featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** + * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** EntityTypeSpec settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); - } + /** Properties of an ImportFeatureValuesOperationMetadata. */ + interface IImportFeatureValuesOperationMetadata { - /** Represents an EntityTypeSpec. */ - class EntityTypeSpec implements IEntityTypeSpec { + /** ImportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Constructs a new EntityTypeSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); + /** ImportFeatureValuesOperationMetadata importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** EntityTypeSpec entityTypeId. */ - public entityTypeId: string; + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); - /** EntityTypeSpec featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesOperationMetadata invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + } - /** EntityTypeSpec settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + /** Represents an ImportFeatureValuesOperationMetadata. */ + class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { - /** - * 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; + /** + * Constructs a new ImportFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); - /** - * 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; + /** ImportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * 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; + /** ImportFeatureValuesOperationMetadata importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** - * 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; + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); - /** - * 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; + /** ImportFeatureValuesOperationMetadata invalidRowCount. */ + public invalidRowCount: (number|Long|string); - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this EntityTypeSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * 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; - /** Properties of an ExportFeatureValuesRequest. */ - interface IExportFeatureValuesRequest { + /** + * 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; - /** ExportFeatureValuesRequest snapshotExport */ - snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); + /** + * 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); - /** ExportFeatureValuesRequest fullExport */ - fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); + /** + * 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; - /** ExportFeatureValuesRequest entityType */ - entityType?: (string|null); + /** + * 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 }; - /** ExportFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** + * Converts this ImportFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ExportFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** Properties of an ExportFeatureValuesOperationMetadata. */ + interface IExportFeatureValuesOperationMetadata { - /** ExportFeatureValuesRequest settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + /** ExportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportFeatureValuesRequest. */ - class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + /** Represents an ExportFeatureValuesOperationMetadata. */ + class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { /** - * Constructs a new ExportFeatureValuesRequest. + * Constructs a new ExportFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - - /** ExportFeatureValuesRequest snapshotExport. */ - public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport. */ - public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ExportFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** ExportFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** ExportFeatureValuesRequest settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); - /** ExportFeatureValuesRequest mode. */ - public mode?: ("snapshotExport"|"fullExport"); + /** ExportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesRequest instance + * @returns ExportFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * 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 + * 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.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * 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 ExportFeatureValuesRequest + * @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.ExportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesRequest + * @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.ExportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Verifies an ExportFeatureValuesRequest message. + * 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); /** - * Creates an ExportFeatureValuesRequest 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. * @param object Plain object - * @returns ExportFeatureValuesRequest + * @returns ExportFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ExportFeatureValuesRequest + * 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.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesRequest to JSON. + * Converts this ExportFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExportFeatureValuesRequest { - - /** Properties of a SnapshotExport. */ - interface ISnapshotExport { + /** Properties of a BatchReadFeatureValuesOperationMetadata. */ + interface IBatchReadFeatureValuesOperationMetadata { - /** SnapshotExport snapshotTime */ - snapshotTime?: (google.protobuf.ITimestamp|null); + /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** SnapshotExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } + /** Represents a BatchReadFeatureValuesOperationMetadata. */ + class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { - /** Represents a SnapshotExport. */ - class SnapshotExport implements ISnapshotExport { + /** + * Constructs a new BatchReadFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); - /** - * Constructs a new SnapshotExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - - /** SnapshotExport snapshotTime. */ - public snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** - * 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 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; - - /** - * 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 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 }; - - /** - * Converts this SnapshotExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a FullExport. */ - interface IFullExport { - - /** FullExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** FullExport endTime */ - endTime?: (google.protobuf.ITimestamp|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 }; - } - } - - /** 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 DestinationFeatureSetting. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); - - /** DestinationFeatureSetting featureId. */ - public featureId: string; - - /** DestinationFeatureSetting destinationField. */ - public destinationField: string; + /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DestinationFeatureSetting instance + * @returns BatchReadFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * 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 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.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, 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 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.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * 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 DestinationFeatureSetting + * @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.DestinationFeatureSetting; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DestinationFeatureSetting + * @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.DestinationFeatureSetting; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Verifies a DestinationFeatureSetting message. + * 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); /** - * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DestinationFeatureSetting + * @returns BatchReadFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * 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 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.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this BatchReadFeatureValuesOperationMetadata 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); - - /** FeatureValueDestination tfrecordDestination */ - tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + /** Properties of a CreateEntityTypeOperationMetadata. */ + interface ICreateEntityTypeOperationMetadata { - /** FeatureValueDestination csvDestination */ - csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + /** CreateEntityTypeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a FeatureValueDestination. */ - class FeatureValueDestination implements IFeatureValueDestination { + /** Represents a CreateEntityTypeOperationMetadata. */ + class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { /** - * Constructs a new FeatureValueDestination. + * Constructs a new CreateEntityTypeOperationMetadata. * @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.ICreateEntityTypeOperationMetadata); - /** FeatureValueDestination destination. */ - public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); + /** CreateEntityTypeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueDestination instance + * @returns CreateEntityTypeOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * 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 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.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, 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 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.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * 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 FeatureValueDestination + * @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.FeatureValueDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueDestination + * @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.FeatureValueDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Verifies a FeatureValueDestination message. + * 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); /** - * Creates a FeatureValueDestination 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. * @param object Plain object - * @returns FeatureValueDestination + * @returns CreateEntityTypeOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * 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 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.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this CreateEntityTypeOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportFeatureValuesResponse. */ - interface IExportFeatureValuesResponse { + /** Properties of a CreateFeatureOperationMetadata. */ + interface ICreateFeatureOperationMetadata { + + /** CreateFeatureOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportFeatureValuesResponse. */ - class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { + /** Represents a CreateFeatureOperationMetadata. */ + class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new CreateFeatureOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); + + /** CreateFeatureOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesResponse instance + * @returns CreateFeatureOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * 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 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.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, 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 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.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * 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 ExportFeatureValuesResponse + * @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.ExportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesResponse + * @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.ExportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Verifies an ExportFeatureValuesResponse message. + * 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); /** - * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesResponse + * @returns CreateFeatureOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * 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 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.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this CreateFeatureOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchReadFeatureValuesResponse. */ - interface IBatchReadFeatureValuesResponse { + /** Properties of a BatchCreateFeaturesOperationMetadata. */ + interface IBatchCreateFeaturesOperationMetadata { + + /** BatchCreateFeaturesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a BatchReadFeatureValuesResponse. */ - class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { + /** Represents a BatchCreateFeaturesOperationMetadata. */ + class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new BatchCreateFeaturesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); + + /** BatchCreateFeaturesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesResponse instance + * @returns BatchCreateFeaturesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * 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 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.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, 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 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.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * 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 BatchReadFeatureValuesResponse + * @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.BatchReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesResponse + * @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.BatchReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Verifies a BatchReadFeatureValuesResponse message. + * 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); /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesResponse + * @returns BatchCreateFeaturesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * 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 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.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this BatchCreateFeaturesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { + /** Properties of a HyperparameterTuningJob. */ + interface IHyperparameterTuningJob { - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** HyperparameterTuningJob name */ + name?: (string|null); - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** HyperparameterTuningJob displayName */ + displayName?: (string|null); - /** CreateEntityTypeRequest entityTypeId */ - entityTypeId?: (string|null); - } + /** HyperparameterTuningJob studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** HyperparameterTuningJob maxTrialCount */ + maxTrialCount?: (number|null); - /** - * Constructs a new CreateEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); + /** HyperparameterTuningJob parallelTrialCount */ + parallelTrialCount?: (number|null); - /** CreateEntityTypeRequest parent. */ - public parent: string; + /** HyperparameterTuningJob maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** HyperparameterTuningJob trialJobSpec */ + trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** CreateEntityTypeRequest entityTypeId. */ - public entityTypeId: string; + /** HyperparameterTuningJob trials */ + trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); - /** - * 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; + /** HyperparameterTuningJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** - * 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.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** HyperparameterTuningJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * 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.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.CreateEntityTypeRequest; - - /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.CreateEntityTypeRequest; - - /** - * 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); + /** HyperparameterTuningJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + /** HyperparameterTuningJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * 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.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HyperparameterTuningJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Converts this CreateEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** HyperparameterTuningJob error */ + error?: (google.rpc.IStatus|null); - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** HyperparameterTuningJob labels */ + labels?: ({ [k: string]: string }|null); - /** GetEntityTypeRequest name */ - name?: (string|null); + /** HyperparameterTuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents a HyperparameterTuningJob. */ + class HyperparameterTuningJob implements IHyperparameterTuningJob { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new HyperparameterTuningJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); - /** GetEntityTypeRequest name. */ + /** 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 }; + + /** HyperparameterTuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns HyperparameterTuningJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * 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 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.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, 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 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.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest 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 GetEntityTypeRequest + * @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.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Decodes a GetEntityTypeRequest 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 GetEntityTypeRequest + * @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.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Verifies a GetEntityTypeRequest 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 GetEntityTypeRequest 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 GetEntityTypeRequest + * @returns HyperparameterTuningJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * 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 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.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this HyperparameterTuningJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { + /** Properties of a Study. */ + interface IStudy { - /** ListEntityTypesRequest parent */ - parent?: (string|null); + /** Study name */ + name?: (string|null); - /** ListEntityTypesRequest filter */ - filter?: (string|null); + /** Study displayName */ + displayName?: (string|null); - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** Study studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** Study state */ + state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); - /** ListEntityTypesRequest orderBy */ - orderBy?: (string|null); + /** Study createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ListEntityTypesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Study inactiveReason */ + inactiveReason?: (string|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a Study. */ + class Study implements IStudy { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new Study. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); - /** ListEntityTypesRequest parent. */ - public parent: string; + /** Study name. */ + public name: string; - /** ListEntityTypesRequest filter. */ - public filter: string; + /** Study displayName. */ + public displayName: string; - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; + /** Study studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; + /** Study state. */ + public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); - /** ListEntityTypesRequest orderBy. */ - public orderBy: string; + /** Study createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListEntityTypesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Study inactiveReason. */ + public inactiveReason: string; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new Study instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns Study instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; /** - * 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 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.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, 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 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.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest 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 ListEntityTypesRequest + * @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.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Study; /** - * Decodes a ListEntityTypesRequest 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 ListEntityTypesRequest + * @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.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Study; /** - * Verifies a ListEntityTypesRequest 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 a ListEntityTypesRequest 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 ListEntityTypesRequest + * @returns Study */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * 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.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this Study to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { - - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); + namespace Study { - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2, + COMPLETED = 3 + } } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Properties of a Trial. */ + interface ITrial { - /** - * Constructs a new ListEntityTypesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); + /** Trial name */ + name?: (string|null); - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; + /** Trial id */ + id?: (string|null); - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** Trial state */ + state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); - /** - * 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; + /** Trial parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); - /** - * 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; + /** Trial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); - /** - * 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; + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); - /** - * 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; + /** Trial startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * 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; + /** Trial endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * 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); + /** Trial clientId */ + clientId?: (string|null); - /** - * 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; + /** Trial infeasibleReason */ + infeasibleReason?: (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 }; + /** Trial customJob */ + customJob?: (string|null); + + /** Trial webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); + } + + /** Represents a Trial. */ + class Trial implements ITrial { /** - * Converts this ListEntityTypesResponse to JSON. - * @returns JSON object + * Constructs a new Trial. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { + /** Trial name. */ + public name: string; - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** Trial id. */ + public id: string; - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** Trial state. */ + public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Trial parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; - /** - * Constructs a new UpdateEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); + /** Trial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Trial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId. */ + public clientId: string; + + /** Trial infeasibleReason. */ + public infeasibleReason: string; + + /** Trial customJob. */ + public customJob: string; + + /** Trial webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new Trial instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns Trial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; /** - * 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 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.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, 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 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.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest 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 UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial; /** - * Decodes an UpdateEntityTypeRequest 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 UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial; /** - * Verifies an UpdateEntityTypeRequest 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 UpdateEntityTypeRequest 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 UpdateEntityTypeRequest + * @returns Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * 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.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this Trial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { + namespace Trial { - /** DeleteEntityTypeRequest name */ - name?: (string|null); + /** Properties of a Parameter. */ + interface IParameter { - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); - } + /** Parameter parameterId */ + parameterId?: (string|null); - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Parameter value */ + value?: (google.protobuf.IValue|null); + } - /** - * Constructs a new DeleteEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); + /** Represents a Parameter. */ + class Parameter implements IParameter { - /** 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; + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); - /** - * 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; + /** Parameter parameterId. */ + public parameterId: string; - /** - * 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; + /** Parameter value. */ + public value?: (google.protobuf.IValue|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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this DeleteEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Properties of a CreateFeatureRequest. */ - interface ICreateFeatureRequest { + /** + * 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; - /** CreateFeatureRequest parent */ - parent?: (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 }; - /** CreateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CreateFeatureRequest featureId */ - featureId?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } } - /** Represents a CreateFeatureRequest. */ - class CreateFeatureRequest implements ICreateFeatureRequest { + /** Properties of a StudySpec. */ + interface IStudySpec { - /** - * Constructs a new CreateFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); + /** StudySpec decayCurveStoppingSpec */ + decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - /** CreateFeatureRequest parent. */ - public parent: string; + /** StudySpec medianAutomatedStoppingSpec */ + medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - /** CreateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** StudySpec convexStopConfig */ + convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - /** CreateFeatureRequest featureId. */ - public featureId: string; + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - /** - * Creates a new CreateFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + /** StudySpec metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); - /** - * 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.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** StudySpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); - /** - * 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.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** StudySpec algorithm */ + algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); - /** - * 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 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.CreateFeatureRequest; + /** StudySpec observationNoise */ + observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); - /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.CreateFeatureRequest; + /** StudySpec measurementSelectionType */ + measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + } - /** - * 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); + /** Represents a StudySpec. */ + class StudySpec implements IStudySpec { /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeatureRequest + * Constructs a new StudySpec. + * @param [properties] Properties to set */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); - /** - * 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.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** StudySpec decayCurveStoppingSpec. */ + public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - /** - * Converts this CreateFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** StudySpec medianAutomatedStoppingSpec. */ + public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - /** Properties of a BatchCreateFeaturesRequest. */ - interface IBatchCreateFeaturesRequest { + /** StudySpec convexStopConfig. */ + public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - /** BatchCreateFeaturesRequest parent */ - parent?: (string|null); + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - /** BatchCreateFeaturesRequest requests */ - requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); - } + /** StudySpec metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; - /** Represents a BatchCreateFeaturesRequest. */ - class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + /** StudySpec parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; - /** - * Constructs a new BatchCreateFeaturesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); + /** StudySpec algorithm. */ + public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); - /** BatchCreateFeaturesRequest parent. */ - public parent: string; + /** StudySpec observationNoise. */ + public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); - /** BatchCreateFeaturesRequest requests. */ - public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; + /** StudySpec measurementSelectionType. */ + public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + + /** StudySpec automatedStoppingSpec. */ + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new StudySpec instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesRequest instance + * @returns StudySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; /** - * 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 + * 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.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, 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 + * 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.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesRequest 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 BatchCreateFeaturesRequest + * @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.BatchCreateFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Decodes a BatchCreateFeaturesRequest 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 BatchCreateFeaturesRequest + * @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.BatchCreateFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Verifies a BatchCreateFeaturesRequest 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 BatchCreateFeaturesRequest 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 BatchCreateFeaturesRequest + * @returns StudySpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesRequest + * 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.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this StudySpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchCreateFeaturesResponse. */ - interface IBatchCreateFeaturesResponse { + namespace StudySpec { - /** BatchCreateFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - } + /** Properties of a MetricSpec. */ + interface IMetricSpec { - /** Represents a BatchCreateFeaturesResponse. */ - class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { + /** MetricSpec metricId */ + metricId?: (string|null); - /** - * Constructs a new BatchCreateFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); + } - /** BatchCreateFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { - /** - * 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; + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); - /** - * 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; + /** MetricSpec metricId. */ + public metricId: string; - /** - * 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; + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this BatchCreateFeaturesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Properties of a GetFeatureRequest. */ - interface IGetFeatureRequest { + /** + * 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; - /** GetFeatureRequest name */ - name?: (string|null); - } + /** + * 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 }; - /** Represents a GetFeatureRequest. */ - class GetFeatureRequest implements IGetFeatureRequest { + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new GetFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); + namespace MetricSpec { - /** GetFeatureRequest name. */ - public name: string; + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } - /** - * 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; - - /** - * 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; + /** Properties of a ParameterSpec. */ + interface IParameterSpec { - /** - * 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; + /** ParameterSpec doubleValueSpec */ + doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** - * 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; + /** ParameterSpec integerValueSpec */ + integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** - * 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; + /** ParameterSpec categoricalValueSpec */ + categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - /** - * 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); + /** ParameterSpec discreteValueSpec */ + discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|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; + /** ParameterSpec parameterId */ + parameterId?: (string|null); - /** - * 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 }; + /** ParameterSpec scaleType */ + scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); - /** - * Converts this GetFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ParameterSpec conditionalParameterSpecs */ + conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + } - /** Properties of a ListFeaturesRequest. */ - interface IListFeaturesRequest { + /** Represents a ParameterSpec. */ + class ParameterSpec implements IParameterSpec { - /** ListFeaturesRequest parent */ - parent?: (string|null); + /** + * Constructs a new ParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); - /** ListFeaturesRequest filter */ - filter?: (string|null); + /** ParameterSpec doubleValueSpec. */ + public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** ListFeaturesRequest pageSize */ - pageSize?: (number|null); + /** ParameterSpec integerValueSpec. */ + public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** ListFeaturesRequest pageToken */ - pageToken?: (string|null); + /** ParameterSpec categoricalValueSpec. */ + public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - /** ListFeaturesRequest orderBy */ - orderBy?: (string|null); + /** ParameterSpec discreteValueSpec. */ + public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - /** ListFeaturesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ParameterSpec parameterId. */ + public parameterId: string; - /** ListFeaturesRequest latestStatsCount */ - latestStatsCount?: (number|null); - } + /** ParameterSpec scaleType. */ + public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); - /** Represents a ListFeaturesRequest. */ - class ListFeaturesRequest implements IListFeaturesRequest { + /** ParameterSpec conditionalParameterSpecs. */ + public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; - /** - * Constructs a new ListFeaturesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); + /** ParameterSpec parameterValueSpec. */ + public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); - /** ListFeaturesRequest parent. */ - public parent: string; + /** + * 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; - /** ListFeaturesRequest filter. */ - public filter: string; + /** + * 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; - /** ListFeaturesRequest pageSize. */ - public pageSize: number; + /** + * 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; - /** ListFeaturesRequest pageToken. */ - public pageToken: string; + /** + * 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; - /** ListFeaturesRequest orderBy. */ - public orderBy: string; + /** + * 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; - /** ListFeaturesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * 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); - /** ListFeaturesRequest latestStatsCount. */ - public latestStatsCount: number; + /** + * 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; - /** - * Creates a new ListFeaturesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFeaturesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + /** + * 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 }; - /** - * 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.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + namespace ParameterSpec { - /** - * 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 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.ListFeaturesRequest; + /** Properties of a DoubleValueSpec. */ + interface IDoubleValueSpec { - /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ListFeaturesRequest; + /** DoubleValueSpec minValue */ + minValue?: (number|null); - /** - * 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); + /** DoubleValueSpec maxValue */ + maxValue?: (number|null); - /** - * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFeaturesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + /** DoubleValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** - * 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.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a DoubleValueSpec. */ + class DoubleValueSpec implements IDoubleValueSpec { - /** - * Converts this ListFeaturesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new DoubleValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); - /** Properties of a ListFeaturesResponse. */ - interface IListFeaturesResponse { + /** DoubleValueSpec minValue. */ + public minValue: number; - /** ListFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** DoubleValueSpec maxValue. */ + public maxValue: number; - /** ListFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** DoubleValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** Represents a ListFeaturesResponse. */ - class ListFeaturesResponse implements IListFeaturesResponse { + /** DoubleValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Constructs a new ListFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); + /** + * 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; - /** ListFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** + * 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; - /** ListFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** + * 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 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; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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 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 }; - /** - * 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); + /** + * Converts this DoubleValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [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; + /** Properties of an IntegerValueSpec. */ + interface IIntegerValueSpec { - /** - * 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 }; + /** IntegerValueSpec minValue */ + minValue?: (number|Long|string|null); - /** - * Converts this ListFeaturesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** IntegerValueSpec maxValue */ + maxValue?: (number|Long|string|null); - /** Properties of a SearchFeaturesRequest. */ - interface ISearchFeaturesRequest { + /** IntegerValueSpec defaultValue */ + defaultValue?: (number|Long|string|null); + } - /** SearchFeaturesRequest location */ - location?: (string|null); + /** Represents an IntegerValueSpec. */ + class IntegerValueSpec implements IIntegerValueSpec { - /** SearchFeaturesRequest query */ - query?: (string|null); + /** + * Constructs a new IntegerValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); - /** SearchFeaturesRequest pageSize */ - pageSize?: (number|null); + /** IntegerValueSpec minValue. */ + public minValue: (number|Long|string); - /** SearchFeaturesRequest pageToken */ - pageToken?: (string|null); - } + /** IntegerValueSpec maxValue. */ + public maxValue: (number|Long|string); - /** Represents a SearchFeaturesRequest. */ - class SearchFeaturesRequest implements ISearchFeaturesRequest { + /** IntegerValueSpec defaultValue. */ + public defaultValue?: (number|Long|string|null); - /** - * Constructs a new SearchFeaturesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); + /** IntegerValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** SearchFeaturesRequest location. */ - public location: string; + /** + * 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; - /** SearchFeaturesRequest query. */ - public query: string; + /** + * 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; - /** SearchFeaturesRequest pageSize. */ - public pageSize: number; + /** + * 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; - /** SearchFeaturesRequest pageToken. */ - public pageToken: string; + /** + * 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; - /** - * Creates a new SearchFeaturesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SearchFeaturesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + /** + * 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; - /** - * 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.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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); - /** - * 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.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.SearchFeaturesRequest; + /** + * 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 }; - /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.SearchFeaturesRequest; + /** + * Converts this IntegerValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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); + /** Properties of a CategoricalValueSpec. */ + interface ICategoricalValueSpec { - /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SearchFeaturesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + /** CategoricalValueSpec values */ + values?: (string[]|null); - /** - * 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.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CategoricalValueSpec defaultValue */ + defaultValue?: (string|null); + } - /** - * Converts this SearchFeaturesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a CategoricalValueSpec. */ + class CategoricalValueSpec implements ICategoricalValueSpec { - /** Properties of a SearchFeaturesResponse. */ - interface ISearchFeaturesResponse { + /** + * Constructs a new CategoricalValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); - /** SearchFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** CategoricalValueSpec values. */ + public values: string[]; - /** SearchFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** CategoricalValueSpec defaultValue. */ + public defaultValue?: (string|null); - /** Represents a SearchFeaturesResponse. */ - class SearchFeaturesResponse implements ISearchFeaturesResponse { + /** CategoricalValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Constructs a new SearchFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); + /** + * 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; - /** SearchFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** + * 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; - /** SearchFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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 }; - /** - * 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); + /** + * Converts this CategoricalValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a DiscreteValueSpec. */ + interface IDiscreteValueSpec { - /** - * 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 }; + /** DiscreteValueSpec values */ + values?: (number[]|null); - /** - * Converts this SearchFeaturesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** DiscreteValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** Properties of an UpdateFeatureRequest. */ - interface IUpdateFeatureRequest { + /** Represents a DiscreteValueSpec. */ + class DiscreteValueSpec implements IDiscreteValueSpec { - /** UpdateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** + * Constructs a new DiscreteValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); - /** UpdateFeatureRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** DiscreteValueSpec values. */ + public values: number[]; - /** Represents an UpdateFeatureRequest. */ - class UpdateFeatureRequest implements IUpdateFeatureRequest { + /** DiscreteValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** - * Constructs a new UpdateFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); + /** DiscreteValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** UpdateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** + * 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; - /** UpdateFeatureRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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 }; - /** - * 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; + /** + * Converts this DiscreteValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + /** Properties of a ConditionalParameterSpec. */ + interface IConditionalParameterSpec { - /** - * Converts this UpdateFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ConditionalParameterSpec parentDiscreteValues */ + parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** Properties of a DeleteFeatureRequest. */ - interface IDeleteFeatureRequest { + /** ConditionalParameterSpec parentIntValues */ + parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** DeleteFeatureRequest name */ - name?: (string|null); - } + /** ConditionalParameterSpec parentCategoricalValues */ + parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); - /** Represents a DeleteFeatureRequest. */ - class DeleteFeatureRequest implements IDeleteFeatureRequest { + /** ConditionalParameterSpec parameterSpec */ + parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + } - /** - * Constructs a new DeleteFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); + /** Represents a ConditionalParameterSpec. */ + class ConditionalParameterSpec implements IConditionalParameterSpec { - /** DeleteFeatureRequest name. */ - public name: string; + /** + * Constructs a new ConditionalParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); - /** - * 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; + /** ConditionalParameterSpec parentDiscreteValues. */ + public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** - * 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; + /** ConditionalParameterSpec parentIntValues. */ + public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** - * 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; + /** ConditionalParameterSpec parentCategoricalValues. */ + public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|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; + /** ConditionalParameterSpec parameterSpec. */ + public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - /** - * 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; + /** ConditionalParameterSpec parentValueCondition. */ + public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this DeleteFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a CreateFeaturestoreOperationMetadata. */ - interface ICreateFeaturestoreOperationMetadata { + /** + * 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; - /** CreateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * 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); - /** Represents a CreateFeaturestoreOperationMetadata. */ - class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + /** + * 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; - /** - * Constructs a new CreateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + /** + * 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 }; - /** CreateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Converts this ConditionalParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + namespace ConditionalParameterSpec { - /** - * 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; + /** Properties of a DiscreteValueCondition. */ + interface IDiscreteValueCondition { - /** - * 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; + /** DiscreteValueCondition values */ + values?: (number[]|null); + } - /** - * 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; + /** Represents a DiscreteValueCondition. */ + class DiscreteValueCondition implements IDiscreteValueCondition { - /** - * 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; + /** + * Constructs a new DiscreteValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); - /** - * 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); + /** DiscreteValueCondition values. */ + public values: number[]; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of an UpdateFeaturestoreOperationMetadata. */ - interface IUpdateFeaturestoreOperationMetadata { + /** + * 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; - /** UpdateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * 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; - /** Represents an UpdateFeaturestoreOperationMetadata. */ - class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + /** + * 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); - /** - * Constructs a new UpdateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + /** + * 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; - /** UpdateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * 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 }; - /** - * 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; + /** + * Converts this DiscreteValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of an IntValueCondition. */ + interface IIntValueCondition { - /** - * 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; + /** IntValueCondition values */ + values?: ((number|Long|string)[]|null); + } - /** - * 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; + /** Represents an IntValueCondition. */ + class IntValueCondition implements IIntValueCondition { - /** - * 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; + /** + * Constructs a new IntValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); - /** - * 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); + /** IntValueCondition values. */ + public values: (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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of an ImportFeatureValuesOperationMetadata. */ - interface IImportFeatureValuesOperationMetadata { + /** + * 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; - /** ImportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * 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; - /** ImportFeatureValuesOperationMetadata importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** + * 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); - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|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; - /** ImportFeatureValuesOperationMetadata invalidRowCount */ - invalidRowCount?: (number|Long|string|null); - } + /** + * 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 }; - /** Represents an ImportFeatureValuesOperationMetadata. */ - class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + /** + * Converts this IntValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new ImportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); + /** Properties of a CategoricalValueCondition. */ + interface ICategoricalValueCondition { - /** ImportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CategoricalValueCondition values */ + values?: (string[]|null); + } - /** ImportFeatureValuesOperationMetadata importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** Represents a CategoricalValueCondition. */ + class CategoricalValueCondition implements ICategoricalValueCondition { - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** + * Constructs a new CategoricalValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); - /** ImportFeatureValuesOperationMetadata invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** CategoricalValueCondition values. */ + public values: string[]; - /** - * 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; + /** + * 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 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; + /** + * 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 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; + /** + * 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 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; + /** + * 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 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; + /** + * 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 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); + /** + * 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 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; + /** + * 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 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 }; + /** + * 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 ImportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CategoricalValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** Properties of an ExportFeatureValuesOperationMetadata. */ - interface IExportFeatureValuesOperationMetadata { + /** ScaleType enum. */ + enum ScaleType { + SCALE_TYPE_UNSPECIFIED = 0, + UNIT_LINEAR_SCALE = 1, + UNIT_LOG_SCALE = 2, + UNIT_REVERSE_LOG_SCALE = 3 + } + } - /** ExportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** Properties of a DecayCurveAutomatedStoppingSpec. */ + interface IDecayCurveAutomatedStoppingSpec { - /** Represents an ExportFeatureValuesOperationMetadata. */ - class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); + } - /** - * Constructs a new ExportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); + /** Represents a DecayCurveAutomatedStoppingSpec. */ + class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { - /** ExportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); - /** - * 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; + /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; + /** + * 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; - /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 }; - /** Properties of a BatchReadFeatureValuesOperationMetadata. */ - interface IBatchReadFeatureValuesOperationMetadata { + /** + * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** BatchReadFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** Properties of a MedianAutomatedStoppingSpec. */ + interface IMedianAutomatedStoppingSpec { - /** Represents a BatchReadFeatureValuesOperationMetadata. */ - class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + /** MedianAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); + } - /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); + /** Represents a MedianAutomatedStoppingSpec. */ + class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { - /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); - /** - * 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; + /** MedianAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * 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 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 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; + /** + * 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; - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; + /** + * 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; - /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 }; - /** Properties of a CreateEntityTypeOperationMetadata. */ - interface ICreateEntityTypeOperationMetadata { + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CreateEntityTypeOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** Properties of a ConvexStopConfig. */ + interface IConvexStopConfig { - /** Represents a CreateEntityTypeOperationMetadata. */ - class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + /** ConvexStopConfig maxNumSteps */ + maxNumSteps?: (number|Long|string|null); - /** - * Constructs a new CreateEntityTypeOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); + /** ConvexStopConfig minNumSteps */ + minNumSteps?: (number|Long|string|null); - /** CreateEntityTypeOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ConvexStopConfig autoregressiveOrder */ + autoregressiveOrder?: (number|Long|string|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; + /** ConvexStopConfig learningRateParameterName */ + learningRateParameterName?: (string|null); - /** - * 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; + /** ConvexStopConfig useSeconds */ + useSeconds?: (boolean|null); + } - /** - * 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; + /** Represents a ConvexStopConfig. */ + class ConvexStopConfig implements IConvexStopConfig { - /** - * 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; + /** + * Constructs a new ConvexStopConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); - /** - * 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; + /** ConvexStopConfig maxNumSteps. */ + public maxNumSteps: (number|Long|string); - /** - * 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); + /** ConvexStopConfig minNumSteps. */ + public minNumSteps: (number|Long|string); - /** - * 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; + /** ConvexStopConfig autoregressiveOrder. */ + public autoregressiveOrder: (number|Long|string); - /** - * 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 }; + /** ConvexStopConfig learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Converts this CreateEntityTypeOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ConvexStopConfig useSeconds. */ + public useSeconds: boolean; - /** Properties of a CreateFeatureOperationMetadata. */ - interface ICreateFeatureOperationMetadata { + /** + * 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; - /** CreateFeatureOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * 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; - /** Represents a CreateFeatureOperationMetadata. */ - class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + /** + * 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; - /** - * Constructs a new CreateFeatureOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); + /** + * 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; - /** CreateFeatureOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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 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 }; - /** - * 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; + /** + * Converts this ConvexStopConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Algorithm enum. */ + enum Algorithm { + ALGORITHM_UNSPECIFIED = 0, + GRID_SEARCH = 2, + RANDOM_SEARCH = 3 + } - /** - * 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); + /** ObservationNoise enum. */ + enum ObservationNoise { + OBSERVATION_NOISE_UNSPECIFIED = 0, + LOW = 1, + HIGH = 2 + } - /** - * 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; + /** MeasurementSelectionType enum. */ + enum MeasurementSelectionType { + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, + LAST_MEASUREMENT = 1, + BEST_MEASUREMENT = 2 + } + } - /** - * 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 }; + /** Properties of a Measurement. */ + interface IMeasurement { - /** - * Converts this CreateFeatureOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Measurement elapsedDuration */ + elapsedDuration?: (google.protobuf.IDuration|null); - /** Properties of a BatchCreateFeaturesOperationMetadata. */ - interface IBatchCreateFeaturesOperationMetadata { + /** Measurement stepCount */ + stepCount?: (number|Long|string|null); - /** BatchCreateFeaturesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Measurement metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); } - /** Represents a BatchCreateFeaturesOperationMetadata. */ - class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + /** Represents a Measurement. */ + class Measurement implements IMeasurement { /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new Measurement. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); - /** BatchCreateFeaturesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** 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 BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates a new Measurement instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesOperationMetadata instance + * @returns Measurement instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; /** - * 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 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.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, 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 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.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesOperationMetadata 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 BatchCreateFeaturesOperationMetadata + * @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.BatchCreateFeaturesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement; /** - * Decodes a BatchCreateFeaturesOperationMetadata 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 BatchCreateFeaturesOperationMetadata + * @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.BatchCreateFeaturesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement; /** - * Verifies a BatchCreateFeaturesOperationMetadata 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 BatchCreateFeaturesOperationMetadata 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 BatchCreateFeaturesOperationMetadata + * @returns Measurement */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; /** - * 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 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.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * Converts this Measurement 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); - - /** HyperparameterTuningJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - } - - /** Represents a HyperparameterTuningJob. */ - class HyperparameterTuningJob implements IHyperparameterTuningJob { - - /** - * Constructs a new HyperparameterTuningJob. - * @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); + namespace Measurement { - /** HyperparameterTuningJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a Metric. */ + interface IMetric { - /** HyperparameterTuningJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Metric metricId */ + metricId?: (string|null); - /** HyperparameterTuningJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Metric value */ + value?: (number|null); + } - /** HyperparameterTuningJob error. */ - public error?: (google.rpc.IStatus|null); + /** Represents a Metric. */ + class Metric implements IMetric { - /** HyperparameterTuningJob labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); - /** HyperparameterTuningJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Metric metricId. */ + public metricId: string; - /** - * Creates a new HyperparameterTuningJob instance using the specified properties. - * @param [properties] Properties to set - * @returns HyperparameterTuningJob instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** Metric value. */ + public value: number; - /** - * 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.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 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.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.HyperparameterTuningJob; + /** + * 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 HyperparameterTuningJob message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.HyperparameterTuningJob; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HyperparameterTuningJob - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** + * 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 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.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this HyperparameterTuningJob to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 a Study. */ - interface IStudy { + /** Properties of an Index. */ + interface IIndex { - /** Study name */ + /** Index name */ name?: (string|null); - /** Study displayName */ + /** Index displayName */ displayName?: (string|null); - /** Study studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** Index description */ + description?: (string|null); - /** Study state */ - state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); + /** Index metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** Study createTime */ + /** 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); - /** Study inactiveReason */ - inactiveReason?: (string|null); + /** Index updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Study. */ - class Study implements IStudy { + /** Represents an Index. */ + class Index implements IIndex { /** - * Constructs a new Study. + * Constructs a new Index. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); - /** Study name. */ + /** Index name. */ public name: string; - /** Study displayName. */ + /** Index displayName. */ public displayName: string; - /** Study studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** Index description. */ + public description: string; - /** Study state. */ - public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); + /** Index metadataSchemaUri. */ + public metadataSchemaUri: string; - /** Study createTime. */ + /** 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); - /** Study inactiveReason. */ - public inactiveReason: string; + /** Index updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Study instance using the specified properties. + * Creates a new Index instance using the specified properties. * @param [properties] Properties to set - * @returns Study instance + * @returns Index instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; /** - * 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 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.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, 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 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.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Study 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 Study + * @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.Study; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Index; /** - * Decodes a Study 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 Study + * @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.Study; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Index; /** - * Verifies a Study 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 Study 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 Study + * @returns Index */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; /** - * Creates a plain object from a Study message. Also converts values to other types if specified. - * @param message Study + * 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.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Study to JSON. + * Converts this Index 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 { + /** Properties of an IndexEndpoint. */ + interface IIndexEndpoint { - /** Trial name */ + /** IndexEndpoint 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); + /** IndexEndpoint displayName */ + displayName?: (string|null); - /** Trial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** IndexEndpoint description */ + description?: (string|null); - /** Trial measurements */ - measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + /** IndexEndpoint deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); - /** Trial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** IndexEndpoint etag */ + etag?: (string|null); - /** Trial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** IndexEndpoint labels */ + labels?: ({ [k: string]: string }|null); - /** Trial clientId */ - clientId?: (string|null); + /** IndexEndpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Trial infeasibleReason */ - infeasibleReason?: (string|null); + /** IndexEndpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Trial customJob */ - customJob?: (string|null); + /** IndexEndpoint network */ + network?: (string|null); - /** Trial webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); + /** IndexEndpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); } - /** Represents a Trial. */ - class Trial implements ITrial { + /** Represents an IndexEndpoint. */ + class IndexEndpoint implements IIndexEndpoint { /** - * Constructs a new Trial. + * Constructs a new IndexEndpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - /** Trial name. */ + /** IndexEndpoint 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[]; + /** IndexEndpoint displayName. */ + public displayName: string; - /** Trial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** IndexEndpoint description. */ + public description: string; - /** Trial measurements. */ - public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + /** IndexEndpoint deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; - /** Trial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** IndexEndpoint etag. */ + public etag: string; - /** Trial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** IndexEndpoint labels. */ + public labels: { [k: string]: string }; - /** Trial clientId. */ - public clientId: string; + /** IndexEndpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Trial infeasibleReason. */ - public infeasibleReason: string; + /** IndexEndpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Trial customJob. */ - public customJob: string; + /** IndexEndpoint network. */ + public network: string; - /** Trial webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** IndexEndpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; /** - * Creates a new Trial instance using the specified properties. + * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set - * @returns Trial instance + * @returns IndexEndpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * 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 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.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, 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 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.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Trial 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 Trial + * @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.Trial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Decodes a Trial 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 Trial + * @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.Trial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Verifies a Trial 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 Trial 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 Trial + * @returns IndexEndpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. - * @param message Trial + * 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.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Trial to JSON. + * Converts this IndexEndpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Trial { - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter parameterId */ - parameterId?: (string|null); - - /** Parameter value */ - value?: (google.protobuf.IValue|null); - } - - /** 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; - - /** Parameter value. */ - public value?: (google.protobuf.IValue|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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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); - - /** - * 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; + /** Properties of a DeployedIndex. */ + interface IDeployedIndex { - /** - * 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 id */ + id?: (string|null); - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** DeployedIndex index */ + index?: (string|null); - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 - } - } + /** DeployedIndex displayName */ + displayName?: (string|null); - /** Properties of a StudySpec. */ - interface IStudySpec { + /** DeployedIndex createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec decayCurveStoppingSpec */ - decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** DeployedIndex privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** StudySpec medianAutomatedStoppingSpec */ - medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** DeployedIndex indexSyncTime */ + indexSyncTime?: (google.protobuf.ITimestamp|null); - /** StudySpec convexStopConfig */ - convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** DeployedIndex automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** StudySpec metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + /** DeployedIndex dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** StudySpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + /** DeployedIndex enableAccessLogging */ + enableAccessLogging?: (boolean|null); - /** StudySpec algorithm */ - algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + /** DeployedIndex deployedIndexAuthConfig */ + deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** StudySpec observationNoise */ - observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + /** DeployedIndex reservedIpRanges */ + reservedIpRanges?: (string[]|null); - /** StudySpec measurementSelectionType */ - measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + /** DeployedIndex deploymentGroup */ + deploymentGroup?: (string|null); } - /** Represents a StudySpec. */ - class StudySpec implements IStudySpec { + /** Represents a DeployedIndex. */ + class DeployedIndex implements IDeployedIndex { /** - * Constructs a new StudySpec. + * Constructs a new DeployedIndex. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); + + /** DeployedIndex id. */ + public id: string; - /** StudySpec decayCurveStoppingSpec. */ - public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** DeployedIndex index. */ + public index: string; - /** StudySpec medianAutomatedStoppingSpec. */ - public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** DeployedIndex displayName. */ + public displayName: string; - /** StudySpec convexStopConfig. */ - public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** DeployedIndex createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; + /** DeployedIndex privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** StudySpec parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + /** DeployedIndex indexSyncTime. */ + public indexSyncTime?: (google.protobuf.ITimestamp|null); - /** StudySpec algorithm. */ - public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); + /** DeployedIndex automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** StudySpec observationNoise. */ - public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); + /** DeployedIndex dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** StudySpec measurementSelectionType. */ - public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + /** DeployedIndex enableAccessLogging. */ + public enableAccessLogging: boolean; - /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"); + /** DeployedIndex deployedIndexAuthConfig. */ + public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + + /** DeployedIndex reservedIpRanges. */ + public reservedIpRanges: string[]; + + /** DeployedIndex deploymentGroup. */ + public deploymentGroup: string; /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new DeployedIndex instance using the specified properties. * @param [properties] Properties to set - * @returns StudySpec instance + * @returns DeployedIndex instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * 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 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.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, 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 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.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StudySpec 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 StudySpec + * @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.StudySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Decodes a StudySpec 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 StudySpec + * @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.StudySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Verifies a StudySpec 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 a StudySpec 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 StudySpec + * @returns DeployedIndex */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * 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 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.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StudySpec to JSON. + * Converts this DeployedIndex to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StudySpec { - - /** Properties of a MetricSpec. */ - interface IMetricSpec { - - /** MetricSpec metricId */ - metricId?: (string|null); - - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - } - - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { - - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); - - /** MetricSpec metricId. */ - public metricId: string; - - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); - - /** - * 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; - - /** - * 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 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; - - /** - * 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 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; - - /** - * 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 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 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 }; - - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace MetricSpec { - - /** GoalType enum. */ - enum GoalType { - GOAL_TYPE_UNSPECIFIED = 0, - MAXIMIZE = 1, - MINIMIZE = 2 - } - } - - /** Properties of a ParameterSpec. */ - interface IParameterSpec { - - /** ParameterSpec doubleValueSpec */ - doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - - /** ParameterSpec integerValueSpec */ - integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - - /** ParameterSpec categoricalValueSpec */ - categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - - /** ParameterSpec discreteValueSpec */ - discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - - /** ParameterSpec parameterId */ - parameterId?: (string|null); - - /** ParameterSpec scaleType */ - scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); - - /** ParameterSpec conditionalParameterSpecs */ - conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); - } - - /** Represents a ParameterSpec. */ - class ParameterSpec implements IParameterSpec { - - /** - * Constructs a new ParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); + /** Properties of a DeployedIndexAuthConfig. */ + interface IDeployedIndexAuthConfig { - /** ParameterSpec doubleValueSpec. */ - public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + /** DeployedIndexAuthConfig authProvider */ + authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + } - /** ParameterSpec integerValueSpec. */ - public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + /** Represents a DeployedIndexAuthConfig. */ + class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { - /** ParameterSpec categoricalValueSpec. */ - public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + /** + * Constructs a new DeployedIndexAuthConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); - /** ParameterSpec discreteValueSpec. */ - public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + /** DeployedIndexAuthConfig authProvider. */ + public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); - /** ParameterSpec parameterId. */ - public parameterId: string; + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployedIndexAuthConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** ParameterSpec scaleType. */ - public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + /** + * 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.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ParameterSpec conditionalParameterSpecs. */ - public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + /** + * 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.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ParameterSpec parameterValueSpec. */ - public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + /** + * 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 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.DeployedIndexAuthConfig; - /** - * 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; + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.DeployedIndexAuthConfig; - /** - * 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; + /** + * 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); - /** - * 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 DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployedIndexAuthConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** - * 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; + /** + * 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.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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); + namespace DeployedIndexAuthConfig { - /** - * 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; + /** Properties of an AuthProvider. */ + interface IAuthProvider { - /** - * 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 }; + /** AuthProvider audiences */ + audiences?: (string[]|null); - /** - * Converts this ParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AuthProvider allowedIssuers */ + allowedIssuers?: (string[]|null); } - 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 { + /** Represents an AuthProvider. */ + class AuthProvider implements IAuthProvider { - /** - * Constructs a new IntegerValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); + /** + * Constructs a new AuthProvider. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - /** IntegerValueSpec minValue. */ - public minValue: (number|Long|string); + /** AuthProvider audiences. */ + public audiences: string[]; - /** IntegerValueSpec maxValue. */ - public maxValue: (number|Long|string); + /** AuthProvider allowedIssuers. */ + public allowedIssuers: string[]; - /** IntegerValueSpec defaultValue. */ - public defaultValue?: (number|Long|string|null); + /** + * 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; - /** IntegerValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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 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 }; - /** - * 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; + /** + * Converts this AuthProvider to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * 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 }; + /** Properties of an IndexPrivateEndpoints. */ + interface IIndexPrivateEndpoints { - /** - * Converts this IntegerValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** IndexPrivateEndpoints matchGrpcAddress */ + matchGrpcAddress?: (string|null); - /** Properties of a CategoricalValueSpec. */ - interface ICategoricalValueSpec { + /** IndexPrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); + } - /** CategoricalValueSpec values */ - values?: (string[]|null); + /** Represents an IndexPrivateEndpoints. */ + class IndexPrivateEndpoints implements IIndexPrivateEndpoints { - /** CategoricalValueSpec defaultValue */ - defaultValue?: (string|null); - } + /** + * Constructs a new IndexPrivateEndpoints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - /** Represents a CategoricalValueSpec. */ - class CategoricalValueSpec implements ICategoricalValueSpec { + /** IndexPrivateEndpoints matchGrpcAddress. */ + public matchGrpcAddress: string; - /** - * Constructs a new CategoricalValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); + /** IndexPrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; - /** CategoricalValueSpec values. */ - public values: string[]; + /** + * 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; - /** CategoricalValueSpec defaultValue. */ - public defaultValue?: (string|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; - /** CategoricalValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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 }; - /** - * 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); + /** + * Converts this IndexPrivateEndpoints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Represents an IndexEndpointService */ + class IndexEndpointService extends $protobuf.rpc.Service { - /** - * 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 }; + /** + * 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); - /** - * Converts this CategoricalValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a DiscreteValueSpec. */ - interface IDiscreteValueSpec { + /** + * 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; - /** DiscreteValueSpec values */ - values?: (number[]|null); + /** + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @returns Promise + */ + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; - /** DiscreteValueSpec defaultValue */ - defaultValue?: (number|null); - } + /** + * 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; - /** Represents a DiscreteValueSpec. */ - class DiscreteValueSpec implements IDiscreteValueSpec { + /** + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @returns Promise + */ + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; - /** - * Constructs a new DiscreteValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); + /** + * 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; - /** DiscreteValueSpec values. */ - public values: number[]; + /** + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @returns Promise + */ + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; - /** DiscreteValueSpec defaultValue. */ - public defaultValue?: (number|null); + /** + * 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; - /** DiscreteValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @returns Promise + */ + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @returns Promise + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @returns Promise + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @returns Promise + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; - /** - * 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; + /** + * 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 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 }; + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @returns Promise + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; + } - /** - * Converts this DiscreteValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace IndexEndpointService { + + /** + * 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; - /** Properties of a ConditionalParameterSpec. */ - interface IConditionalParameterSpec { + /** + * 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; - /** ConditionalParameterSpec parentDiscreteValues */ - parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** + * 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; - /** ConditionalParameterSpec parentIntValues */ - parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** + * 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; - /** ConditionalParameterSpec parentCategoricalValues */ - parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** + * 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; - /** ConditionalParameterSpec parameterSpec */ - parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - } + /** + * 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; - /** Represents a ConditionalParameterSpec. */ - class ConditionalParameterSpec implements IConditionalParameterSpec { + /** + * 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; - /** - * Constructs a new ConditionalParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); + /** + * 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; + } - /** ConditionalParameterSpec parentDiscreteValues. */ - public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** Properties of a CreateIndexEndpointRequest. */ + interface ICreateIndexEndpointRequest { - /** ConditionalParameterSpec parentIntValues. */ - public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** CreateIndexEndpointRequest parent */ + parent?: (string|null); - /** ConditionalParameterSpec parentCategoricalValues. */ - public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** CreateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + } - /** ConditionalParameterSpec parameterSpec. */ - public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + /** Represents a CreateIndexEndpointRequest. */ + class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { - /** ConditionalParameterSpec parentValueCondition. */ - public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); + /** + * Constructs a new CreateIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); - /** - * 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; + /** CreateIndexEndpointRequest parent. */ + public parent: string; - /** - * 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; + /** CreateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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); - /** - * Converts this ConditionalParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - namespace ConditionalParameterSpec { + /** + * 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 }; - /** Properties of a DiscreteValueCondition. */ - interface IDiscreteValueCondition { + /** + * Converts this CreateIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** DiscreteValueCondition values */ - values?: (number[]|null); - } + /** Properties of a CreateIndexEndpointOperationMetadata. */ + interface ICreateIndexEndpointOperationMetadata { - /** Represents a DiscreteValueCondition. */ - class DiscreteValueCondition implements IDiscreteValueCondition { + /** CreateIndexEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Constructs a new DiscreteValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); + /** Represents a CreateIndexEndpointOperationMetadata. */ + class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { - /** DiscreteValueCondition values. */ - public values: number[]; + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); - /** - * 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; + /** CreateIndexEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; + /** + * 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; - /** - * Converts this DiscreteValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 }; - /** Properties of an IntValueCondition. */ - interface IIntValueCondition { + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** IntValueCondition values */ - values?: ((number|Long|string)[]|null); - } + /** Properties of a GetIndexEndpointRequest. */ + interface IGetIndexEndpointRequest { - /** Represents an IntValueCondition. */ - class IntValueCondition implements IIntValueCondition { + /** GetIndexEndpointRequest name */ + name?: (string|null); + } - /** - * Constructs a new IntValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); + /** Represents a GetIndexEndpointRequest. */ + class GetIndexEndpointRequest implements IGetIndexEndpointRequest { - /** IntValueCondition values. */ - public values: (number|Long|string)[]; + /** + * Constructs a new GetIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); - /** - * 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; + /** GetIndexEndpointRequest name. */ + public name: string; - /** - * 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; + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** - * 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; + /** + * 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.IGetIndexEndpointRequest, 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; + /** + * 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.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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 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.GetIndexEndpointRequest; - /** - * 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); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.GetIndexEndpointRequest; - /** - * 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; + /** + * 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 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 }; + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** - * Converts this IntValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a CategoricalValueCondition. */ - interface ICategoricalValueCondition { + /** + * Converts this GetIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CategoricalValueCondition values */ - values?: (string[]|null); - } + /** Properties of a ListIndexEndpointsRequest. */ + interface IListIndexEndpointsRequest { - /** Represents a CategoricalValueCondition. */ - class CategoricalValueCondition implements ICategoricalValueCondition { + /** ListIndexEndpointsRequest parent */ + parent?: (string|null); - /** - * Constructs a new CategoricalValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); + /** ListIndexEndpointsRequest filter */ + filter?: (string|null); - /** CategoricalValueCondition values. */ - public values: string[]; + /** ListIndexEndpointsRequest pageSize */ + pageSize?: (number|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; + /** ListIndexEndpointsRequest pageToken */ + pageToken?: (string|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; + /** ListIndexEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|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; + /** Represents a ListIndexEndpointsRequest. */ + class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { - /** - * 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; + /** + * Constructs a new ListIndexEndpointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - /** - * 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; + /** ListIndexEndpointsRequest parent. */ + public parent: string; - /** - * 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); + /** ListIndexEndpointsRequest filter. */ + public filter: string; - /** - * 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; + /** ListIndexEndpointsRequest pageSize. */ + public pageSize: number; - /** - * 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 }; + /** ListIndexEndpointsRequest pageToken. */ + public pageToken: string; - /** - * Converts this CategoricalValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** ListIndexEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** ScaleType enum. */ - enum ScaleType { - SCALE_TYPE_UNSPECIFIED = 0, - UNIT_LINEAR_SCALE = 1, - UNIT_LOG_SCALE = 2, - UNIT_REVERSE_LOG_SCALE = 3 - } - } + /** + * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIndexEndpointsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; - /** Properties of a DecayCurveAutomatedStoppingSpec. */ - interface IDecayCurveAutomatedStoppingSpec { + /** + * 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.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** + * 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.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a DecayCurveAutomatedStoppingSpec. */ - class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { + /** + * 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 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.ListIndexEndpointsRequest; - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListIndexEndpointsRequest; - /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** + * 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 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; + /** + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIndexEndpointsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; - /** - * 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; + /** + * 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.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this ListIndexEndpointsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a ListIndexEndpointsResponse. */ + interface IListIndexEndpointsResponse { - /** - * 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; + /** ListIndexEndpointsResponse indexEndpoints */ + indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); - /** - * 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); + /** ListIndexEndpointsResponse nextPageToken */ + nextPageToken?: (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; + /** Represents a ListIndexEndpointsResponse. */ + class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { - /** - * 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 }; + /** + * Constructs a new ListIndexEndpointsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ListIndexEndpointsResponse indexEndpoints. */ + public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; - /** Properties of a MedianAutomatedStoppingSpec. */ - interface IMedianAutomatedStoppingSpec { + /** ListIndexEndpointsResponse nextPageToken. */ + public nextPageToken: string; - /** MedianAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** + * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIndexEndpointsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; - /** Represents a MedianAutomatedStoppingSpec. */ - class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { + /** + * 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.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); + /** + * 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.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** MedianAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** + * 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 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.ListIndexEndpointsResponse; - /** - * 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; + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListIndexEndpointsResponse; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIndexEndpointsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; - /** - * 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; + /** + * 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.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this ListIndexEndpointsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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); + /** Properties of an UpdateIndexEndpointRequest. */ + interface IUpdateIndexEndpointRequest { - /** - * 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; + /** UpdateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** - * 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 }; + /** UpdateIndexEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents an UpdateIndexEndpointRequest. */ + class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { - /** Properties of a ConvexStopConfig. */ - interface IConvexStopConfig { + /** + * Constructs a new UpdateIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); - /** ConvexStopConfig maxNumSteps */ - maxNumSteps?: (number|Long|string|null); + /** UpdateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** ConvexStopConfig minNumSteps */ - minNumSteps?: (number|Long|string|null); + /** UpdateIndexEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ConvexStopConfig autoregressiveOrder */ - autoregressiveOrder?: (number|Long|string|null); + /** + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** ConvexStopConfig learningRateParameterName */ - learningRateParameterName?: (string|null); + /** + * 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 static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConvexStopConfig useSeconds */ - useSeconds?: (boolean|null); - } + /** + * 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ConvexStopConfig. */ - class ConvexStopConfig implements IConvexStopConfig { + /** + * 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 static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Constructs a new ConvexStopConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** ConvexStopConfig maxNumSteps. */ - public maxNumSteps: (number|Long|string); + /** + * Verifies an UpdateIndexEndpointRequest message. + * @param message 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 minNumSteps. */ - public minNumSteps: (number|Long|string); + /** + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + + /** + * 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 + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ConvexStopConfig autoregressiveOrder. */ - public autoregressiveOrder: (number|Long|string); + /** + * Converts this UpdateIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ConvexStopConfig learningRateParameterName. */ - public learningRateParameterName: string; + /** Properties of a DeleteIndexEndpointRequest. */ + interface IDeleteIndexEndpointRequest { - /** ConvexStopConfig useSeconds. */ - public useSeconds: boolean; + /** DeleteIndexEndpointRequest name */ + name?: (string|null); + } - /** - * 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; + /** Represents a DeleteIndexEndpointRequest. */ + class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { - /** - * 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; + /** + * Constructs a new DeleteIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); - /** - * 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; + /** DeleteIndexEndpointRequest name. */ + public name: string; - /** - * 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; + /** + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * 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; + /** + * 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.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * 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.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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 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.DeleteIndexEndpointRequest; - /** - * 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 }; + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.DeleteIndexEndpointRequest; - /** - * Converts this ConvexStopConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Algorithm enum. */ - enum Algorithm { - ALGORITHM_UNSPECIFIED = 0, - GRID_SEARCH = 2, - RANDOM_SEARCH = 3 - } + /** + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** ObservationNoise enum. */ - enum ObservationNoise { - OBSERVATION_NOISE_UNSPECIFIED = 0, - LOW = 1, - HIGH = 2 - } + /** + * 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.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MeasurementSelectionType enum. */ - enum MeasurementSelectionType { - MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, - LAST_MEASUREMENT = 1, - BEST_MEASUREMENT = 2 - } + /** + * Converts this DeleteIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a Measurement. */ - interface IMeasurement { - - /** Measurement elapsedDuration */ - elapsedDuration?: (google.protobuf.IDuration|null); + /** Properties of a DeployIndexRequest. */ + interface IDeployIndexRequest { - /** Measurement stepCount */ - stepCount?: (number|Long|string|null); + /** DeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** Measurement metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); + /** DeployIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a Measurement. */ - class Measurement implements IMeasurement { + /** Represents a DeployIndexRequest. */ + class DeployIndexRequest implements IDeployIndexRequest { /** - * Constructs a new Measurement. + * Constructs a new DeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); - - /** Measurement elapsedDuration. */ - public elapsedDuration?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); - /** Measurement stepCount. */ - public stepCount: (number|Long|string); + /** DeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** Measurement metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; + /** DeployIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new Measurement instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Measurement instance + * @returns DeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * 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 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.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, 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 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.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Measurement 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 Measurement + * @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.Measurement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Decodes a Measurement 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 Measurement + * @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.Measurement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Verifies a Measurement 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 Measurement 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 Measurement + * @returns DeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * 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 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.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Measurement to JSON. + * Converts this DeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Measurement { - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric metricId */ - metricId?: (string|null); - - /** Metric value */ - value?: (number|null); - } + /** Properties of a DeployIndexResponse. */ + interface IDeployIndexResponse { - /** Represents a Metric. */ - class Metric implements IMetric { + /** DeployIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + } - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); + /** Represents a DeployIndexResponse. */ + class DeployIndexResponse implements IDeployIndexResponse { - /** Metric metricId. */ - public metricId: string; + /** + * Constructs a new DeployIndexResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); - /** Metric value. */ - public value: number; + /** DeployIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); - /** - * 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; + /** + * Creates a new DeployIndexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployIndexResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; - /** - * 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 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.IDeployIndexResponse, 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; + /** + * 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.IDeployIndexResponse, 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 DeployIndexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @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.DeployIndexResponse; - /** - * 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; + /** + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.DeployIndexResponse; - /** - * 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); + /** + * 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 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 DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployIndexResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; - /** - * 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 }; + /** + * 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.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this DeployIndexResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of an Index. */ - interface IIndex { + /** Properties of a DeployIndexOperationMetadata. */ + interface IDeployIndexOperationMetadata { - /** Index name */ - name?: (string|null); + /** DeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** Index displayName */ - displayName?: (string|null); + /** DeployIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); + } - /** Index description */ - description?: (string|null); + /** Represents a DeployIndexOperationMetadata. */ + class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { - /** Index metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** + * Constructs a new DeployIndexOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - /** Index metadata */ - metadata?: (google.protobuf.IValue|null); + /** DeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** Index deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); + /** DeployIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; - /** Index etag */ - etag?: (string|null); + /** + * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployIndexOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; - /** Index labels */ - labels?: ({ [k: string]: string }|null); + /** + * 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.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * 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.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - } + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; - /** Represents an Index. */ - class Index implements IIndex { + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Constructs a new Index. - * @param [properties] Properties to set + * Verifies a DeployIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); + public static verify(message: { [k: string]: any }): (string|null); - /** Index name. */ - public name: string; + /** + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployIndexOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; - /** Index displayName. */ - public displayName: string; + /** + * 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.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Index description. */ - public description: string; + /** + * Converts this DeployIndexOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Index metadataSchemaUri. */ - public metadataSchemaUri: string; + /** Properties of an UndeployIndexRequest. */ + interface IUndeployIndexRequest { - /** Index metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** UndeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** Index deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; + /** UndeployIndexRequest deployedIndexId */ + deployedIndexId?: (string|null); + } - /** Index etag. */ - public etag: string; + /** Represents an UndeployIndexRequest. */ + class UndeployIndexRequest implements IUndeployIndexRequest { - /** Index labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new UndeployIndexRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); - /** Index createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** UndeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** Index updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** UndeployIndexRequest deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new Index instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Index instance + * @returns UndeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * 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 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.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, 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 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.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Index 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 Index + * @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.Index; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Decodes an Index 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 Index + * @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.Index; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Verifies an Index 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 an Index 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 Index + * @returns UndeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. - * @param message Index + * 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.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Index to JSON. + * Converts this UndeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IndexEndpoint. */ - interface IIndexEndpoint { - - /** IndexEndpoint name */ - name?: (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); + /** Properties of an UndeployIndexResponse. */ + interface IUndeployIndexResponse { } - /** Represents an IndexEndpoint. */ - class IndexEndpoint implements IIndexEndpoint { + /** Represents an UndeployIndexResponse. */ + class UndeployIndexResponse implements IUndeployIndexResponse { /** - * Constructs a new IndexEndpoint. + * Constructs a new UndeployIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - - /** IndexEndpoint name. */ - public name: 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; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new UndeployIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexEndpoint instance + * @returns UndeployIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * 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 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.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, 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 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.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexEndpoint 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 IndexEndpoint + * @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.IndexEndpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Decodes an IndexEndpoint 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 IndexEndpoint + * @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.IndexEndpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Verifies an IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint + * @returns UndeployIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. - * @param message IndexEndpoint + * 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.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexEndpoint to JSON. + * Converts this UndeployIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedIndex. */ - interface IDeployedIndex { - - /** DeployedIndex id */ - id?: (string|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); + /** Properties of an UndeployIndexOperationMetadata. */ + interface IUndeployIndexOperationMetadata { - /** DeployedIndex deploymentGroup */ - deploymentGroup?: (string|null); + /** UndeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeployedIndex. */ - class DeployedIndex implements IDeployedIndex { + /** Represents an UndeployIndexOperationMetadata. */ + class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { /** - * Constructs a new DeployedIndex. + * Constructs a new UndeployIndexOperationMetadata. * @param [properties] Properties to set */ - 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); - - /** DeployedIndex reservedIpRanges. */ - public reservedIpRanges: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); - /** DeployedIndex deploymentGroup. */ - public deploymentGroup: string; + /** UndeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndex instance + * @returns UndeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * 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 + * 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.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndex 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 DeployedIndex + * @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.DeployedIndex; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Decodes a DeployedIndex 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 DeployedIndex + * @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.DeployedIndex; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Verifies a DeployedIndex 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 a DeployedIndex 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 DeployedIndex + * @returns UndeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. - * @param message DeployedIndex + * 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.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndex to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedIndexAuthConfig. */ - interface IDeployedIndexAuthConfig { + /** Properties of a MutateDeployedIndexRequest. */ + interface IMutateDeployedIndexRequest { - /** DeployedIndexAuthConfig authProvider */ - authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** MutateDeployedIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); + + /** MutateDeployedIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a DeployedIndexAuthConfig. */ - class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { + /** Represents a MutateDeployedIndexRequest. */ + class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new MutateDeployedIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - /** DeployedIndexAuthConfig authProvider. */ - public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** MutateDeployedIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** MutateDeployedIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * Creates a new MutateDeployedIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexAuthConfig instance + * @returns MutateDeployedIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * 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 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.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, 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 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.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexAuthConfig 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 DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Decodes a DeployedIndexAuthConfig 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 DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Verifies a DeployedIndexAuthConfig 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 DeployedIndexAuthConfig 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 DeployedIndexAuthConfig + * @returns MutateDeployedIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * 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 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.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this MutateDeployedIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - } - - namespace DeployedIndexAuthConfig { - - /** Properties of an AuthProvider. */ - interface IAuthProvider { - - /** AuthProvider audiences */ - audiences?: (string[]|null); - - /** AuthProvider allowedIssuers */ - allowedIssuers?: (string[]|null); - } - - /** Represents an AuthProvider. */ - class AuthProvider implements IAuthProvider { - - /** - * Constructs a new AuthProvider. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - - /** AuthProvider audiences. */ - public audiences: string[]; - - /** AuthProvider allowedIssuers. */ - public allowedIssuers: string[]; - - /** - * 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 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; - - /** - * 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 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 an IndexPrivateEndpoints. */ - interface IIndexPrivateEndpoints { + } - /** IndexPrivateEndpoints matchGrpcAddress */ - matchGrpcAddress?: (string|null); + /** Properties of a MutateDeployedIndexResponse. */ + interface IMutateDeployedIndexResponse { - /** IndexPrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** MutateDeployedIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents an IndexPrivateEndpoints. */ - class IndexPrivateEndpoints implements IIndexPrivateEndpoints { + /** Represents a MutateDeployedIndexResponse. */ + class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new MutateDeployedIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - - /** IndexPrivateEndpoints matchGrpcAddress. */ - public matchGrpcAddress: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); - /** IndexPrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** MutateDeployedIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexPrivateEndpoints instance + * @returns MutateDeployedIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * 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 + * 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.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexPrivateEndpoints 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 IndexPrivateEndpoints + * @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.IndexPrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Decodes an IndexPrivateEndpoints 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 IndexPrivateEndpoints + * @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.IndexPrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Verifies an IndexPrivateEndpoints 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 an IndexPrivateEndpoints 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 IndexPrivateEndpoints + * @returns MutateDeployedIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. - * @param message IndexPrivateEndpoints + * 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.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an IndexEndpointService */ - class IndexEndpointService extends $protobuf.rpc.Service { + /** Properties of a MutateDeployedIndexOperationMetadata. */ + interface IMutateDeployedIndexOperationMetadata { + + /** MutateDeployedIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** MutateDeployedIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); + } + + /** Represents a MutateDeployedIndexOperationMetadata. */ + class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { /** - * 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 + * Constructs a new MutateDeployedIndexOperationMetadata. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); + + /** MutateDeployedIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** MutateDeployedIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: 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. + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexOperationMetadata instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @returns Promise + * 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 createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint + * 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 getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @returns Promise + * 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 getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * Verifies a MutateDeployedIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @returns Promise + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexOperationMetadata */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint + * 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 updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @returns Promise + * Converts this MutateDeployedIndexOperationMetadata to JSON. + * @returns JSON object */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Represents an IndexService */ + class IndexService extends $protobuf.rpc.Service { /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @returns Promise + * 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 deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object + * Calls CreateIndex. + * @param request CreateIndexRequest 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; + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object * @returns Promise */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Index */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object + * Calls GetIndex. + * @param request GetIndexRequest message or plain object * @returns Promise */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexesResponse */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object * @returns Promise */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; - } + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; - namespace IndexEndpointService { + /** + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @returns Promise */ - type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. - * @param error Error, if any - * @param [response] ListIndexEndpointsResponse + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @returns Promise */ - type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; + } + + namespace IndexService { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. * @param error Error, if any - * @param [response] IndexEndpoint + * @param [response] Operation */ - type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deleteIndexEndpoint}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. * @param error Error, if any - * @param [response] Operation + * @param [response] Index */ - type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deployIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. * @param error Error, if any - * @param [response] Operation + * @param [response] ListIndexesResponse */ - type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#undeployIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. * @param error Error, if any * @param [response] Operation */ - type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#mutateDeployedIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. * @param error Error, if any * @param [response] Operation */ - type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a CreateIndexEndpointRequest. */ - interface ICreateIndexEndpointRequest { + /** Properties of a CreateIndexRequest. */ + interface ICreateIndexRequest { - /** CreateIndexEndpointRequest parent */ + /** CreateIndexRequest parent */ parent?: (string|null); - /** CreateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** CreateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); } - /** Represents a CreateIndexEndpointRequest. */ - class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { + /** Represents a CreateIndexRequest. */ + class CreateIndexRequest implements ICreateIndexRequest { /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new CreateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - /** CreateIndexEndpointRequest parent. */ + /** CreateIndexRequest parent. */ public parent: string; - /** CreateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** CreateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexEndpointRequest instance + * @returns CreateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * 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 + * 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 static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * 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 CreateIndexEndpointRequest + * @returns CreateIndexRequest * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointRequest + * @returns CreateIndexRequest * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Verifies a CreateIndexEndpointRequest message. + * Verifies a CreateIndexRequest message. * @param message 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 CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIndexEndpointRequest + * @returns CreateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message CreateIndexEndpointRequest + * 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 static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIndexEndpointRequest to JSON. + * Converts this CreateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIndexEndpointOperationMetadata. */ - interface ICreateIndexEndpointOperationMetadata { + /** Properties of a CreateIndexOperationMetadata. */ + interface ICreateIndexOperationMetadata { - /** CreateIndexEndpointOperationMetadata genericMetadata */ + /** CreateIndexOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a CreateIndexEndpointOperationMetadata. */ - class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { + /** Represents a CreateIndexOperationMetadata. */ + class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new CreateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - /** CreateIndexEndpointOperationMetadata genericMetadata. */ + /** CreateIndexOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 }; - - /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetIndexEndpointRequest. */ - interface IGetIndexEndpointRequest { - - /** GetIndexEndpointRequest name */ - name?: (string|null); - } - - /** Represents a GetIndexEndpointRequest. */ - class GetIndexEndpointRequest implements IGetIndexEndpointRequest { - - /** - * Constructs a new GetIndexEndpointRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); - - /** GetIndexEndpointRequest name. */ - public name: string; + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new CreateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexEndpointRequest instance + * @returns CreateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * 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 GetIndexEndpointRequest + * @returns CreateIndexOperationMetadata * @throws {Error} If the payload is not a reader or 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.CreateIndexOperationMetadata; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIndexEndpointRequest + * @returns CreateIndexOperationMetadata * @throws {Error} If the payload is not a 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.CreateIndexOperationMetadata; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a CreateIndexOperationMetadata message. * @param message 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 CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIndexEndpointRequest + * @returns CreateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * 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 CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexOperationMetadata * @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.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this CreateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexEndpointsRequest. */ - interface IListIndexEndpointsRequest { - - /** ListIndexEndpointsRequest parent */ - parent?: (string|null); - - /** ListIndexEndpointsRequest filter */ - filter?: (string|null); - - /** ListIndexEndpointsRequest pageSize */ - pageSize?: (number|null); - - /** ListIndexEndpointsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetIndexRequest. */ + interface IGetIndexRequest { - /** ListIndexEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** GetIndexRequest name */ + name?: (string|null); } - /** Represents a ListIndexEndpointsRequest. */ - class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { + /** Represents a GetIndexRequest. */ + class GetIndexRequest implements IGetIndexRequest { /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new GetIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - - /** ListIndexEndpointsRequest parent. */ - public parent: string; - - /** ListIndexEndpointsRequest filter. */ - public filter: string; - - /** ListIndexEndpointsRequest pageSize. */ - public pageSize: number; - - /** ListIndexEndpointsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); - /** ListIndexEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** GetIndexRequest name. */ + public name: string; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsRequest instance + * @returns GetIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * 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 ListIndexEndpointsRequest + * @returns GetIndexRequest * @throws {Error} If the payload is not a reader or 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.GetIndexRequest; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsRequest + * @returns GetIndexRequest * @throws {Error} If the payload is not a 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.GetIndexRequest; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies a GetIndexRequest message. * @param message 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 a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsRequest + * @returns GetIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. - * @param message ListIndexEndpointsRequest + * 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.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this GetIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexEndpointsResponse. */ - interface IListIndexEndpointsResponse { + /** Properties of a ListIndexesRequest. */ + interface IListIndexesRequest { - /** ListIndexEndpointsResponse indexEndpoints */ - indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); + /** ListIndexesRequest parent */ + parent?: (string|null); - /** ListIndexEndpointsResponse nextPageToken */ - nextPageToken?: (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 ListIndexEndpointsResponse. */ - class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { + /** Represents a ListIndexesRequest. */ + class ListIndexesRequest implements IListIndexesRequest { /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new ListIndexesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - /** ListIndexEndpointsResponse indexEndpoints. */ - public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; + /** ListIndexesRequest parent. */ + public parent: string; - /** ListIndexEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** ListIndexesRequest filter. */ + public filter: string; + + /** ListIndexesRequest pageSize. */ + public pageSize: number; + + /** ListIndexesRequest pageToken. */ + public pageToken: string; + + /** ListIndexesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new ListIndexesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsResponse instance + * @returns ListIndexesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * 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 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 static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, 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 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 static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * 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 ListIndexEndpointsResponse + * @returns ListIndexesRequest * @throws {Error} If the payload is not a reader or 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.ListIndexesRequest; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsResponse + * @returns ListIndexesRequest * @throws {Error} If the payload is not a 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.ListIndexesRequest; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies a ListIndexesRequest message. * @param message 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 a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsResponse + * @returns ListIndexesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. - * @param message ListIndexEndpointsResponse + * 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 static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this ListIndexesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIndexEndpointRequest. */ - interface IUpdateIndexEndpointRequest { + /** Properties of a ListIndexesResponse. */ + interface IListIndexesResponse { - /** UpdateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesResponse indexes */ + indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); - /** UpdateIndexEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateIndexEndpointRequest. */ - class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { + /** Represents a ListIndexesResponse. */ + class ListIndexesResponse implements IListIndexesResponse { /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new ListIndexesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); - /** UpdateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesResponse indexes. */ + public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; - /** UpdateIndexEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new ListIndexesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexEndpointRequest instance + * @returns ListIndexesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * 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 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 */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, 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 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 */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * 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 UpdateIndexEndpointRequest + * @returns ListIndexesResponse * @throws {Error} If the payload is not a reader or 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.ListIndexesResponse; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesResponse * @throws {Error} If the payload is not a 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.ListIndexesResponse; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a ListIndexesResponse message. * @param message 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 ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * 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 ListIndexesResponse message. Also converts values to other types if specified. + * @param message ListIndexesResponse * @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.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIndexEndpointRequest. */ - interface IDeleteIndexEndpointRequest { + /** Properties of an UpdateIndexRequest. */ + interface IUpdateIndexRequest { - /** DeleteIndexEndpointRequest name */ - name?: (string|null); + /** UpdateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + + /** UpdateIndexRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteIndexEndpointRequest. */ - class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { + /** Represents an UpdateIndexRequest. */ + class UpdateIndexRequest implements IUpdateIndexRequest { /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new UpdateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); - /** DeleteIndexEndpointRequest name. */ - public name: string; + /** UpdateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + + /** UpdateIndexRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexEndpointRequest instance + * @returns UpdateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * 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 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 */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, 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 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 */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * 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 DeleteIndexEndpointRequest + * @returns UpdateIndexRequest * @throws {Error} If the payload is not a reader or 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.UpdateIndexRequest; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexEndpointRequest + * @returns UpdateIndexRequest * @throws {Error} If the payload is not a 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.UpdateIndexRequest; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies an UpdateIndexRequest message. * @param message 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 an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexEndpointRequest + * @returns UpdateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteIndexEndpointRequest + * 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 */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployIndexRequest. */ - interface IDeployIndexRequest { + /** Properties of an UpdateIndexOperationMetadata. */ + interface IUpdateIndexOperationMetadata { - /** DeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** UpdateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a DeployIndexRequest. */ - class DeployIndexRequest implements IDeployIndexRequest { + /** Represents an UpdateIndexOperationMetadata. */ + class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpdateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - /** DeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** UpdateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexRequest instance + * @returns UpdateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * 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 + * 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 */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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 */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * 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 DeployIndexRequest + * @returns UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexRequest + * @returns UpdateIndexOperationMetadata * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpdateIndexOperationMetadata message. * @param message 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 DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexRequest + * @returns UpdateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. - * @param message DeployIndexRequest + * 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 */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployIndexResponse. */ - interface IDeployIndexResponse { + /** Properties of a DeleteIndexRequest. */ + interface IDeleteIndexRequest { - /** DeployIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** DeleteIndexRequest name */ + name?: (string|null); } - /** Represents a DeployIndexResponse. */ - class DeployIndexResponse implements IDeployIndexResponse { + /** Represents a DeleteIndexRequest. */ + class DeleteIndexRequest implements IDeleteIndexRequest { /** - * Constructs a new DeployIndexResponse. + * Constructs a new DeleteIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); - /** DeployIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** DeleteIndexRequest name. */ + public name: string; /** - * Creates a new DeployIndexResponse instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexResponse instance + * @returns DeleteIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * 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 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.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, 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 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.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexResponse 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 DeployIndexResponse + * @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.DeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Decodes a DeployIndexResponse 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 DeployIndexResponse + * @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.DeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Verifies a DeployIndexResponse 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 DeployIndexResponse 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 DeployIndexResponse + * @returns DeleteIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. - * @param message DeployIndexResponse + * 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.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this DeleteIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployIndexOperationMetadata. */ - interface IDeployIndexOperationMetadata { + /** Properties of a NearestNeighborSearchOperationMetadata. */ + interface INearestNeighborSearchOperationMetadata { - /** DeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats */ + contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); - /** DeployIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** NearestNeighborSearchOperationMetadata dataBytesCount */ + dataBytesCount?: (number|Long|string|null); } - /** Represents a DeployIndexOperationMetadata. */ - class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { + /** Represents a NearestNeighborSearchOperationMetadata. */ + class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new NearestNeighborSearchOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - - /** DeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - /** DeployIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** NearestNeighborSearchOperationMetadata contentValidationStats. */ + public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + + /** NearestNeighborSearchOperationMetadata dataBytesCount. */ + public dataBytesCount: (number|Long|string); /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexOperationMetadata instance + * @returns NearestNeighborSearchOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * 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 + * 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.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexOperationMetadata 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 DeployIndexOperationMetadata + * @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.DeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Decodes a DeployIndexOperationMetadata 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 DeployIndexOperationMetadata + * @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.DeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Verifies a DeployIndexOperationMetadata 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 DeployIndexOperationMetadata 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 DeployIndexOperationMetadata + * @returns NearestNeighborSearchOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message DeployIndexOperationMetadata + * 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.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployIndexRequest. */ - interface IUndeployIndexRequest { + namespace NearestNeighborSearchOperationMetadata { - /** UndeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** Properties of a RecordError. */ + interface IRecordError { - /** UndeployIndexRequest deployedIndexId */ - deployedIndexId?: (string|null); + /** 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); + } + + /** 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 an UndeployIndexRequest. */ - class UndeployIndexRequest implements IUndeployIndexRequest { + /** Represents a JobService */ + class JobService extends $protobuf.rpc.Service { /** - * Constructs a new UndeployIndexRequest. - * @param [properties] Properties to set + * 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 */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** UndeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** + * 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 create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; - /** UndeployIndexRequest deployedIndexId. */ - public deployedIndexId: string; + /** + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob + */ + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; /** - * Creates a new UndeployIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UndeployIndexRequest instance + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; /** - * 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 + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): 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 + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; /** - * 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 + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): 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 + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; /** - * Verifies an UndeployIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UndeployIndexRequest + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; /** - * 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 + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest 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.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; /** - * Converts this UndeployIndexRequest to JSON. - * @returns JSON object + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; - /** Properties of an UndeployIndexResponse. */ - interface IUndeployIndexResponse { - } + /** + * 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; - /** Represents an UndeployIndexResponse. */ - class UndeployIndexResponse implements IUndeployIndexResponse { + /** + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @returns Promise + */ + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; /** - * Constructs a new UndeployIndexResponse. - * @param [properties] Properties to set + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; /** - * Creates a new UndeployIndexResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UndeployIndexResponse instance + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; /** - * 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 + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; /** - * 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 + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; /** - * 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 UndeployIndexResponse - * @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 + * @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.UndeployIndexResponse; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UndeployIndexResponse - * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; /** - * Verifies an UndeployIndexResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest 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 cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UndeployIndexResponse + * 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 createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + + /** + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + */ + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + + /** + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; /** - * 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 + * 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.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; /** - * Converts this UndeployIndexResponse to JSON. - * @returns JSON object + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UndeployIndexOperationMetadata. */ - interface IUndeployIndexOperationMetadata { - - /** UndeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents an UndeployIndexOperationMetadata. */ - class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; /** - * Constructs a new UndeployIndexOperationMetadata. - * @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.IUndeployIndexOperationMetadata); - - /** UndeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UndeployIndexOperationMetadata instance + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; /** - * 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 + * 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.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; /** - * 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 + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; /** - * 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 UndeployIndexOperationMetadata - * @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.UndeployIndexOperationMetadata; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UndeployIndexOperationMetadata - * @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.UndeployIndexOperationMetadata; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; /** - * Verifies an UndeployIndexOperationMetadata 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 an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UndeployIndexOperationMetadata + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; /** - * 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 + * 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.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; /** - * Converts this UndeployIndexOperationMetadata to JSON. - * @returns JSON object + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MutateDeployedIndexRequest. */ - interface IMutateDeployedIndexRequest { - - /** MutateDeployedIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); - - /** MutateDeployedIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); - } - - /** Represents a MutateDeployedIndexRequest. */ - class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; /** - * Constructs a new MutateDeployedIndexRequest. - * @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.IMutateDeployedIndexRequest); - - /** MutateDeployedIndexRequest indexEndpoint. */ - public indexEndpoint: string; - - /** MutateDeployedIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MutateDeployedIndexRequest instance + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; /** - * 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 + * 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.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; /** - * 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 + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; /** - * 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 MutateDeployedIndexRequest - * @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.MutateDeployedIndexRequest; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexRequest - * @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.MutateDeployedIndexRequest; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; /** - * Verifies a MutateDeployedIndexRequest 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 MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutateDeployedIndexRequest + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; /** - * 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 + * 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.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; /** - * Converts this MutateDeployedIndexRequest to JSON. - * @returns JSON object + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MutateDeployedIndexResponse. */ - interface IMutateDeployedIndexResponse { - - /** MutateDeployedIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); - } - - /** Represents a MutateDeployedIndexResponse. */ - class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; /** - * Constructs a new MutateDeployedIndexResponse. - * @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.IMutateDeployedIndexResponse); - - /** MutateDeployedIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MutateDeployedIndexResponse instance + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; /** - * 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 + * 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.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; /** - * 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 + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; /** - * 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 MutateDeployedIndexResponse - * @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.MutateDeployedIndexResponse; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexResponse - * @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.MutateDeployedIndexResponse; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; /** - * Verifies a MutateDeployedIndexResponse 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 MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutateDeployedIndexResponse + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; /** - * 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 + * 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.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; /** - * Converts this MutateDeployedIndexResponse to JSON. - * @returns JSON object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MutateDeployedIndexOperationMetadata. */ - interface IMutateDeployedIndexOperationMetadata { - - /** MutateDeployedIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** MutateDeployedIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; } - /** Represents a MutateDeployedIndexOperationMetadata. */ - class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { + namespace JobService { /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @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.IMutateDeployedIndexOperationMetadata); - - /** MutateDeployedIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** MutateDeployedIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns MutateDeployedIndexOperationMetadata 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.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; /** - * 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 + * 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.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; /** - * 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 + * 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.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * 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 + * 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.MutateDeployedIndexOperationMetadata; + type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * 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 + * 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.MutateDeployedIndexOperationMetadata; + type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; /** - * Verifies a MutateDeployedIndexOperationMetadata 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 MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutateDeployedIndexOperationMetadata + * 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.MutateDeployedIndexOperationMetadata; + type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; /** - * 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 + * 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.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this MutateDeployedIndexOperationMetadata 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 }; - } + type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Represents an IndexService */ - class IndexService extends $protobuf.rpc.Service { + /** + * 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; /** - * 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * 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. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listHyperparameterTuningJobs}. + * @param error Error, if any + * @param [response] ListHyperparameterTuningJobsResponse */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; + type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Operation */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Empty */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Index + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; + type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexesResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listBatchPredictionJobs}. + * @param error Error, if any + * @param [response] ListBatchPredictionJobsResponse */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; + type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. + * @param error Error, if any + * @param [response] Operation */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; + type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. + * @param error Error, if any + * @param [response] Empty */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; + type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; + type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#searchModelDeploymentMonitoringStatsAnomalies}. + * @param error Error, if any + * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; + type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; - } - - namespace IndexService { + type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. * @param error Error, if any - * @param [response] Operation + * @param [response] ListModelDeploymentMonitoringJobsResponse */ - type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. * @param error Error, if any - * @param [response] Index + * @param [response] Operation */ - type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; + type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteModelDeploymentMonitoringJob}. * @param error Error, if any - * @param [response] ListIndexesResponse + * @param [response] Operation */ - type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; + type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. * @param error Error, if any - * @param [response] Operation + * @param [response] Empty */ - type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#resumeModelDeploymentMonitoringJob}. * @param error Error, if any - * @param [response] Operation + * @param [response] Empty */ - type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a CreateIndexRequest. */ - interface ICreateIndexRequest { + /** Properties of a CreateCustomJobRequest. */ + interface ICreateCustomJobRequest { - /** CreateIndexRequest parent */ + /** CreateCustomJobRequest parent */ parent?: (string|null); - /** CreateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest customJob */ + customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); } - /** Represents a CreateIndexRequest. */ - class CreateIndexRequest implements ICreateIndexRequest { + /** Represents a CreateCustomJobRequest. */ + class CreateCustomJobRequest implements ICreateCustomJobRequest { /** - * Constructs a new CreateIndexRequest. + * Constructs a new CreateCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - /** CreateIndexRequest parent. */ + /** CreateCustomJobRequest parent. */ public parent: string; - /** CreateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest customJob. */ + public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); /** - * Creates a new CreateIndexRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexRequest instance + * @returns CreateCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * 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 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.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, 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 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.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexRequest 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 CreateIndexRequest + * @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.CreateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Decodes a CreateIndexRequest 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 CreateIndexRequest + * @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.CreateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Verifies a CreateIndexRequest 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 CreateIndexRequest 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 CreateIndexRequest + * @returns CreateCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * 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 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.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIndexRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIndexOperationMetadata. */ - interface ICreateIndexOperationMetadata { - - /** CreateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a GetCustomJobRequest. */ + interface IGetCustomJobRequest { - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name */ + name?: (string|null); } - /** Represents a CreateIndexOperationMetadata. */ - class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { + /** Represents a GetCustomJobRequest. */ + class GetCustomJobRequest implements IGetCustomJobRequest { /** - * Constructs a new CreateIndexOperationMetadata. + * Constructs a new GetCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - - /** CreateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name. */ + public name: string; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexOperationMetadata instance + * @returns GetCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * 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 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.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, 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 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.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexOperationMetadata 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 CreateIndexOperationMetadata + * @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.CreateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Decodes a CreateIndexOperationMetadata 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 CreateIndexOperationMetadata + * @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.CreateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Verifies a CreateIndexOperationMetadata 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 CreateIndexOperationMetadata 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 CreateIndexOperationMetadata + * @returns GetCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * 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 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.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIndexOperationMetadata to JSON. + * Converts this GetCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIndexRequest. */ - interface IGetIndexRequest { + /** Properties of a ListCustomJobsRequest. */ + interface IListCustomJobsRequest { - /** GetIndexRequest 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 GetIndexRequest. */ - class GetIndexRequest implements IGetIndexRequest { + /** Represents a ListCustomJobsRequest. */ + class ListCustomJobsRequest implements IListCustomJobsRequest { /** - * Constructs a new GetIndexRequest. + * Constructs a new ListCustomJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - /** GetIndexRequest 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 GetIndexRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexRequest instance + * @returns ListCustomJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * 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 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.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, 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 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.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexRequest 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 GetIndexRequest + * @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.GetIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Decodes a GetIndexRequest 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 GetIndexRequest + * @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.GetIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Verifies a GetIndexRequest 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 GetIndexRequest 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 GetIndexRequest + * @returns ListCustomJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * 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 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.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexRequest to JSON. + * Converts this ListCustomJobsRequest 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 ListCustomJobsResponse. */ + interface IListCustomJobsResponse { - /** ListIndexesRequest pageToken */ - pageToken?: (string|null); + /** ListCustomJobsResponse customJobs */ + customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - /** ListIndexesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListCustomJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListIndexesRequest. */ - class ListIndexesRequest implements IListIndexesRequest { + /** Represents a ListCustomJobsResponse. */ + class ListCustomJobsResponse implements IListCustomJobsResponse { /** - * Constructs a new ListIndexesRequest. + * Constructs a new ListCustomJobsResponse. * @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.IListCustomJobsResponse); - /** ListIndexesRequest pageToken. */ - public pageToken: string; + /** ListCustomJobsResponse customJobs. */ + public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; - /** ListIndexesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListCustomJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexesRequest instance + * @returns ListCustomJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * 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 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.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, 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 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.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexesRequest 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 ListIndexesRequest + * @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.ListIndexesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Decodes a ListIndexesRequest 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 ListIndexesRequest + * @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.ListIndexesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Verifies a ListIndexesRequest 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 ListIndexesRequest 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 ListIndexesRequest + * @returns ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * 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 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.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexesRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexesResponse. */ - interface IListIndexesResponse { - - /** ListIndexesResponse indexes */ - indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + /** Properties of a DeleteCustomJobRequest. */ + interface IDeleteCustomJobRequest { - /** ListIndexesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteCustomJobRequest name */ + name?: (string|null); } - /** Represents a ListIndexesResponse. */ - class ListIndexesResponse implements IListIndexesResponse { + /** Represents a DeleteCustomJobRequest. */ + class DeleteCustomJobRequest implements IDeleteCustomJobRequest { /** - * Constructs a new ListIndexesResponse. + * Constructs a new DeleteCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); - - /** ListIndexesResponse indexes. */ - public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); - /** ListIndexesResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteCustomJobRequest name. */ + public name: string; /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexesResponse instance + * @returns DeleteCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * 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 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.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, 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 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.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexesResponse 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 ListIndexesResponse + * @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.ListIndexesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Decodes a ListIndexesResponse 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 ListIndexesResponse + * @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.ListIndexesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Verifies a ListIndexesResponse 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 ListIndexesResponse 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 ListIndexesResponse + * @returns DeleteCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. - * @param message ListIndexesResponse + * 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.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this DeleteCustomJobRequest 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); + /** Properties of a CancelCustomJobRequest. */ + interface ICancelCustomJobRequest { - /** UpdateIndexRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CancelCustomJobRequest name */ + name?: (string|null); } - /** Represents an UpdateIndexRequest. */ - class UpdateIndexRequest implements IUpdateIndexRequest { + /** Represents a CancelCustomJobRequest. */ + class CancelCustomJobRequest implements ICancelCustomJobRequest { /** - * Constructs a new UpdateIndexRequest. + * Constructs a new CancelCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); - - /** UpdateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - /** UpdateIndexRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CancelCustomJobRequest name. */ + public name: string; /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexRequest instance + * @returns CancelCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * 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 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.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, 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 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.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexRequest 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 UpdateIndexRequest + * @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.UpdateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Decodes an UpdateIndexRequest 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 UpdateIndexRequest + * @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.UpdateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Verifies an UpdateIndexRequest 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 an UpdateIndexRequest 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 UpdateIndexRequest + * @returns CancelCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @param message UpdateIndexRequest + * 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.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIndexOperationMetadata. */ - interface IUpdateIndexOperationMetadata { + /** Properties of a CreateDataLabelingJobRequest. */ + interface ICreateDataLabelingJobRequest { - /** UpdateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreateDataLabelingJobRequest parent */ + parent?: (string|null); - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** CreateDataLabelingJobRequest dataLabelingJob */ + dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); } - /** Represents an UpdateIndexOperationMetadata. */ - class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { + /** Represents a CreateDataLabelingJobRequest. */ + class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new CreateDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); - /** UpdateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreateDataLabelingJobRequest parent. */ + public parent: string; - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** CreateDataLabelingJobRequest dataLabelingJob. */ + public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexOperationMetadata instance + * @returns CreateDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * 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 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.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, 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 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.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexOperationMetadata 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 UpdateIndexOperationMetadata + * @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.UpdateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Decodes an UpdateIndexOperationMetadata 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 UpdateIndexOperationMetadata + * @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.UpdateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Verifies an UpdateIndexOperationMetadata 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 an UpdateIndexOperationMetadata 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 UpdateIndexOperationMetadata + * @returns CreateDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateIndexOperationMetadata + * 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.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIndexRequest. */ - interface IDeleteIndexRequest { + /** Properties of a GetDataLabelingJobRequest. */ + interface IGetDataLabelingJobRequest { - /** DeleteIndexRequest name */ + /** GetDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a DeleteIndexRequest. */ - class DeleteIndexRequest implements IDeleteIndexRequest { + /** Represents a GetDataLabelingJobRequest. */ + class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { /** - * Constructs a new DeleteIndexRequest. + * Constructs a new GetDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - /** DeleteIndexRequest name. */ + /** GetDataLabelingJobRequest name. */ public name: string; /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexRequest instance + * @returns GetDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * 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 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.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, 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 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.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexRequest 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 DeleteIndexRequest + * @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.DeleteIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Decodes a DeleteIndexRequest 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 DeleteIndexRequest + * @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.DeleteIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Verifies a DeleteIndexRequest 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 DeleteIndexRequest 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 DeleteIndexRequest + * @returns GetDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * 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 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.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a NearestNeighborSearchOperationMetadata. */ - interface INearestNeighborSearchOperationMetadata { + /** Properties of a ListDataLabelingJobsRequest. */ + interface IListDataLabelingJobsRequest { - /** NearestNeighborSearchOperationMetadata contentValidationStats */ - contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + /** ListDataLabelingJobsRequest parent */ + parent?: (string|null); - /** NearestNeighborSearchOperationMetadata dataBytesCount */ - dataBytesCount?: (number|Long|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 NearestNeighborSearchOperationMetadata. */ - class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { + /** Represents a ListDataLabelingJobsRequest. */ + class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new ListDataLabelingJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - /** NearestNeighborSearchOperationMetadata contentValidationStats. */ - public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + /** ListDataLabelingJobsRequest parent. */ + public parent: string; - /** NearestNeighborSearchOperationMetadata dataBytesCount. */ - public dataBytesCount: (number|Long|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 NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NearestNeighborSearchOperationMetadata instance + * @returns ListDataLabelingJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * 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 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.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, 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 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.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NearestNeighborSearchOperationMetadata 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 NearestNeighborSearchOperationMetadata + * @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.NearestNeighborSearchOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Decodes a NearestNeighborSearchOperationMetadata 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 NearestNeighborSearchOperationMetadata + * @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.NearestNeighborSearchOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Verifies a NearestNeighborSearchOperationMetadata 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 NearestNeighborSearchOperationMetadata 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 NearestNeighborSearchOperationMetadata + * @returns ListDataLabelingJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * 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 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.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this ListDataLabelingJobsRequest 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); - } - - /** 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; + /** Properties of a ListDataLabelingJobsResponse. */ + interface IListDataLabelingJobsResponse { - /** - * 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; + /** ListDataLabelingJobsResponse dataLabelingJobs */ + dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); - /** - * 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; + /** ListDataLabelingJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * 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; + /** Represents a ListDataLabelingJobsResponse. */ + class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { - /** - * 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; + /** + * Constructs a new ListDataLabelingJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - /** - * 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); + /** ListDataLabelingJobsResponse dataLabelingJobs. */ + public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; - /** - * 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; + /** ListDataLabelingJobsResponse nextPageToken. */ + public nextPageToken: string; - /** - * 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 new ListDataLabelingJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataLabelingJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; - /** - * Converts this ContentValidationStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * 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.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a JobService */ - class JobService extends $protobuf.rpc.Service { + /** + * 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.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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 ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * 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. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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 create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Verifies a ListDataLabelingJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @returns Promise + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataLabelingJobsResponse */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * 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 getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @returns Promise + * Converts this ListDataLabelingJobsResponse to JSON. + * @returns JSON object */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteDataLabelingJobRequest. */ + interface IDeleteDataLabelingJobRequest { + + /** DeleteDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDataLabelingJobRequest. */ + class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * Constructs a new DeleteDataLabelingJobRequest. + * @param [properties] Properties to set */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + + /** DeleteDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @returns Promise + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDataLabelingJobRequest instance */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @returns Promise + * 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 deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @returns Promise + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Verifies a DeleteDataLabelingJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDataLabelingJobRequest */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * 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 getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @returns Promise + * Converts this DeleteDataLabelingJobRequest to JSON. + * @returns JSON object */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelDataLabelingJobRequest. */ + interface ICancelDataLabelingJobRequest { + + /** CancelDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a CancelDataLabelingJobRequest. */ + class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * Constructs a new CancelDataLabelingJobRequest. + * @param [properties] Properties to set */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + + /** CancelDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @returns Promise + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelDataLabelingJobRequest instance */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @returns Promise + * 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 deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, 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 + * 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 CancelDataLabelingJobRequest + * @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, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @returns Promise + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelDataLabelingJobRequest + * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Verifies a CancelDataLabelingJobRequest 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, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelDataLabelingJobRequest */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * 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 getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Converts this CancelDataLabelingJobRequest to JSON. + * @returns JSON object */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateHyperparameterTuningJobRequest. */ + interface ICreateHyperparameterTuningJobRequest { + + /** CreateHyperparameterTuningJobRequest parent */ + parent?: (string|null); + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ + hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + } + + /** Represents a CreateHyperparameterTuningJobRequest. */ + class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * Constructs a new CreateHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + + /** CreateHyperparameterTuningJobRequest parent. */ + public parent: string; + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ + public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @returns Promise + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateHyperparameterTuningJobRequest instance */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @returns Promise + * 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 deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, 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 + * 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 CreateHyperparameterTuningJobRequest + * @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, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateHyperparameterTuningJobRequest + * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Verifies a CreateHyperparameterTuningJobRequest 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, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @returns Promise + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateHyperparameterTuningJobRequest */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * 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 getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @returns Promise + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetHyperparameterTuningJobRequest. */ + interface IGetHyperparameterTuningJobRequest { + + /** GetHyperparameterTuningJobRequest name */ + name?: (string|null); + } + + /** Represents a GetHyperparameterTuningJobRequest. */ + class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * Constructs a new GetHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + + /** GetHyperparameterTuningJobRequest name. */ + public name: string; /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @returns Promise + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHyperparameterTuningJobRequest instance */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @returns Promise + * 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 deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, 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 + * 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 GetHyperparameterTuningJobRequest + * @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, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @returns Promise + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHyperparameterTuningJobRequest + * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Verifies a GetHyperparameterTuningJobRequest 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, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHyperparameterTuningJobRequest */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * 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 searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns Promise + * Converts this GetHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; + 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); + + /** ListHyperparameterTuningJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListHyperparameterTuningJobsRequest. */ + class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + + /** + * Constructs a new ListHyperparameterTuningJobsRequest. + * @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; - /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; + /** ListHyperparameterTuningJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListHyperparameterTuningJobsRequest instance */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * 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 listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns Promise + * 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 listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a ListHyperparameterTuningJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListHyperparameterTuningJobsRequest */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @returns JSON object */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListHyperparameterTuningJobsResponse. */ + interface IListHyperparameterTuningJobsResponse { + + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ + hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + + /** ListHyperparameterTuningJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListHyperparameterTuningJobsResponse. */ + class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { /** - * 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 ListHyperparameterTuningJobsResponse. + * @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.IListHyperparameterTuningJobsResponse); + + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ + public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + + /** ListHyperparameterTuningJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListHyperparameterTuningJobsResponse instance */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; - } - - namespace JobService { + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createCustomJob}. - * @param error Error, if any - * @param [response] CustomJob + * 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 */ - type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, 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 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 */ - type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, 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 ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteCustomJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelCustomJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies a ListHyperparameterTuningJobsResponse 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 ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListHyperparameterTuningJobsResponse */ - type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * 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 ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse, 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 ListHyperparameterTuningJobsResponse to JSON. + * @returns JSON object */ - type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteHyperparameterTuningJobRequest. */ + interface IDeleteHyperparameterTuningJobRequest { + + /** DeleteHyperparameterTuningJobRequest name */ + name?: (string|null); + } + + /** Represents a DeleteHyperparameterTuningJobRequest. */ + class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteDataLabelingJob}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new DeleteHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + + /** DeleteHyperparameterTuningJobRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelDataLabelingJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteHyperparameterTuningJobRequest instance */ - type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * 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 */ - type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, 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 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 */ - type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, 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 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 DeleteHyperparameterTuningJobRequest + * @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.DeleteHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteHyperparameterTuningJobRequest + * @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.DeleteHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies a DeleteHyperparameterTuningJobRequest 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 a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteHyperparameterTuningJobRequest */ - type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob + * 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 */ - type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, 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 DeleteHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelHyperparameterTuningJobRequest. */ + interface ICancelHyperparameterTuningJobRequest { + + /** CancelHyperparameterTuningJobRequest name */ + name?: (string|null); + } + + /** Represents a CancelHyperparameterTuningJobRequest. */ + class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new CancelHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + + /** CancelHyperparameterTuningJobRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelHyperparameterTuningJobRequest instance */ - type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * 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 */ - type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, 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 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 */ - type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, 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 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 */ - 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.CancelHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. - * @param error Error, if any - * @param [response] ListModelDeploymentMonitoringJobsResponse + * 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 */ - type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Verifies a CancelHyperparameterTuningJobRequest 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 a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelHyperparameterTuningJobRequest */ - type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, 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 CancelHyperparameterTuningJobRequest 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 { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** CreateCustomJobRequest parent */ + /** CreateBatchPredictionJobRequest parent */ parent?: (string|null); - /** CreateCustomJobRequest customJob */ - customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); } - /** Represents a CreateCustomJobRequest. */ - class CreateCustomJobRequest implements ICreateCustomJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); - /** CreateCustomJobRequest parent. */ + /** CreateBatchPredictionJobRequest parent. */ public parent: string; - /** CreateCustomJobRequest customJob. */ - public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * 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 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.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, 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 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.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomJobRequest 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 CreateCustomJobRequest + * @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.CreateCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Decodes a CreateCustomJobRequest 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 CreateCustomJobRequest + * @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.CreateCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Verifies a CreateCustomJobRequest 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 CreateCustomJobRequest 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 CreateCustomJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * 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 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.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCustomJobRequest. */ - interface IGetCustomJobRequest { + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** GetCustomJobRequest name */ + /** GetBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a GetCustomJobRequest. */ - class GetCustomJobRequest implements IGetCustomJobRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new GetCustomJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); - /** GetCustomJobRequest name. */ + /** GetBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomJobRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * 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 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.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, 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 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.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomJobRequest 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 GetCustomJobRequest + * @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.GetCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Decodes a GetCustomJobRequest 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 GetCustomJobRequest + * @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.GetCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Verifies a GetCustomJobRequest 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 GetCustomJobRequest 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 GetCustomJobRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * 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 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.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomJobsRequest. */ - interface IListCustomJobsRequest { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListCustomJobsRequest parent */ + /** ListBatchPredictionJobsRequest parent */ parent?: (string|null); - /** ListCustomJobsRequest filter */ + /** ListBatchPredictionJobsRequest filter */ filter?: (string|null); - /** ListCustomJobsRequest pageSize */ + /** ListBatchPredictionJobsRequest pageSize */ pageSize?: (number|null); - /** ListCustomJobsRequest pageToken */ + /** ListBatchPredictionJobsRequest pageToken */ pageToken?: (string|null); - /** ListCustomJobsRequest readMask */ + /** ListBatchPredictionJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListCustomJobsRequest. */ - class ListCustomJobsRequest implements IListCustomJobsRequest { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - /** ListCustomJobsRequest parent. */ + /** ListBatchPredictionJobsRequest parent. */ public parent: string; - /** ListCustomJobsRequest filter. */ + /** ListBatchPredictionJobsRequest filter. */ public filter: string; - /** ListCustomJobsRequest pageSize. */ + /** ListBatchPredictionJobsRequest pageSize. */ public pageSize: number; - /** ListCustomJobsRequest pageToken. */ + /** ListBatchPredictionJobsRequest pageToken. */ public pageToken: string; - /** ListCustomJobsRequest readMask. */ + /** ListBatchPredictionJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsRequest instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * 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 + * 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.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsRequest 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 ListCustomJobsRequest + * @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.ListCustomJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Decodes a ListCustomJobsRequest 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 ListCustomJobsRequest + * @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.ListCustomJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Verifies a ListCustomJobsRequest 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 ListCustomJobsRequest 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 ListCustomJobsRequest + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @param message ListCustomJobsRequest + * 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.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomJobsResponse. */ - interface IListCustomJobsResponse { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** ListCustomJobsResponse customJobs */ - customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); - /** ListCustomJobsResponse nextPageToken */ + /** ListBatchPredictionJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListCustomJobsResponse. */ - class ListCustomJobsResponse implements IListCustomJobsResponse { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); - /** ListCustomJobsResponse customJobs. */ - public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; - /** ListCustomJobsResponse nextPageToken. */ + /** ListBatchPredictionJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsResponse instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * 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 + * 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.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsResponse 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 ListCustomJobsResponse + * @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.ListCustomJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Decodes a ListCustomJobsResponse 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 ListCustomJobsResponse + * @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.ListCustomJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Verifies a ListCustomJobsResponse 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 ListCustomJobsResponse 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 ListCustomJobsResponse + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @param message ListCustomJobsResponse + * 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.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteCustomJobRequest. */ - interface IDeleteCustomJobRequest { + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** DeleteCustomJobRequest name */ + /** DeleteBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteCustomJobRequest. */ - class DeleteCustomJobRequest implements IDeleteCustomJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); - /** DeleteCustomJobRequest name. */ + /** DeleteBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCustomJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * 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 + * 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.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCustomJobRequest 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 DeleteCustomJobRequest + * @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.DeleteCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Decodes a DeleteCustomJobRequest 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 DeleteCustomJobRequest + * @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.DeleteCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Verifies a DeleteCustomJobRequest 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 a DeleteCustomJobRequest 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 DeleteCustomJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @param message DeleteCustomJobRequest + * 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.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelCustomJobRequest. */ - interface ICancelCustomJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** CancelCustomJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a CancelCustomJobRequest. */ - class CancelCustomJobRequest implements ICancelCustomJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); - /** CancelCustomJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelCustomJobRequest instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * 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 + * 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.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * 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 CancelCustomJobRequest + * @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.CancelCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelCustomJobRequest + * @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.CancelCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Verifies a CancelCustomJobRequest message. + * 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 CancelCustomJobRequest 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. * @param object Plain object - * @returns CancelCustomJobRequest + * @returns CancelBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @param message CancelCustomJobRequest + * 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.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelCustomJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDataLabelingJobRequest. */ - interface ICreateDataLabelingJobRequest { + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { - /** CreateDataLabelingJobRequest parent */ + /** CreateModelDeploymentMonitoringJobRequest parent */ parent?: (string|null); - /** CreateDataLabelingJobRequest dataLabelingJob */ - dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); } - /** Represents a CreateDataLabelingJobRequest. */ - class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); - /** CreateDataLabelingJobRequest parent. */ + /** CreateModelDeploymentMonitoringJobRequest parent. */ public parent: string; - /** CreateDataLabelingJobRequest dataLabelingJob. */ - public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataLabelingJobRequest instance + * @returns CreateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * 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 + * 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.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataLabelingJobRequest 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 CreateDataLabelingJobRequest + * @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.CreateDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Decodes a CreateDataLabelingJobRequest 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 CreateDataLabelingJobRequest + * @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.CreateDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a CreateDataLabelingJobRequest 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 CreateDataLabelingJobRequest 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 CreateDataLabelingJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CreateDataLabelingJobRequest + * 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.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDataLabelingJobRequest. */ - interface IGetDataLabelingJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** GetDataLabelingJobRequest 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 GetDataLabelingJobRequest. */ - class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** GetDataLabelingJobRequest 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 GetDataLabelingJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataLabelingJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * 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 + * 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.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataLabelingJobRequest 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 GetDataLabelingJobRequest + * @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.GetDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a GetDataLabelingJobRequest 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 GetDataLabelingJobRequest + * @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.GetDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a GetDataLabelingJobRequest 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 GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetDataLabelingJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + /** + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + + /** + * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest 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); + } + + /** 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; - /** - * 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.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this GetDataLabelingJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a ListDataLabelingJobsRequest. */ - interface IListDataLabelingJobsRequest { + /** + * 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); - /** ListDataLabelingJobsRequest parent */ - parent?: (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; - /** ListDataLabelingJobsRequest filter */ - filter?: (string|null); + /** + * 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 }; - /** ListDataLabelingJobsRequest pageSize */ - pageSize?: (number|null); + /** + * Converts this StatsAnomaliesObjective to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** ListDataLabelingJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { - /** ListDataLabelingJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); - /** ListDataLabelingJobsRequest orderBy */ - orderBy?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListDataLabelingJobsRequest. */ - class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - - /** ListDataLabelingJobsRequest parent. */ - public parent: string; - - /** ListDataLabelingJobsRequest filter. */ - public filter: string; - - /** ListDataLabelingJobsRequest pageSize. */ - public pageSize: number; - - /** ListDataLabelingJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** ListDataLabelingJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; - /** ListDataLabelingJobsRequest orderBy. */ - public orderBy: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * 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 + * 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.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsRequest 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 ListDataLabelingJobsRequest + * @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.ListDataLabelingJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a ListDataLabelingJobsRequest 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 ListDataLabelingJobsRequest + * @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.ListDataLabelingJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a ListDataLabelingJobsRequest 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 ListDataLabelingJobsRequest 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 ListDataLabelingJobsRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsRequest + * 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.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataLabelingJobsResponse. */ - interface IListDataLabelingJobsResponse { - - /** ListDataLabelingJobsResponse dataLabelingJobs */ - dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ListDataLabelingJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ListDataLabelingJobsResponse. */ - class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - - /** ListDataLabelingJobsResponse dataLabelingJobs. */ - public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); - /** ListDataLabelingJobsResponse nextPageToken. */ - public nextPageToken: string; + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsResponse instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * 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 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.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, 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 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.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsResponse 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 ListDataLabelingJobsResponse + * @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.ListDataLabelingJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ListDataLabelingJobsResponse 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 ListDataLabelingJobsResponse + * @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.ListDataLabelingJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ListDataLabelingJobsResponse 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 a ListDataLabelingJobsResponse 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 ListDataLabelingJobsResponse + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * 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 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.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDataLabelingJobRequest. */ - interface IDeleteDataLabelingJobRequest { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** DeleteDataLabelingJobRequest name */ - name?: (string|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteDataLabelingJobRequest. */ - class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - /** DeleteDataLabelingJobRequest name. */ - public name: string; + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; + + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataLabelingJobRequest instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * 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 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.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, 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 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.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataLabelingJobRequest 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 DeleteDataLabelingJobRequest + * @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.DeleteDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a DeleteDataLabelingJobRequest 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 DeleteDataLabelingJobRequest + * @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.DeleteDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a DeleteDataLabelingJobRequest 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 DeleteDataLabelingJobRequest 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 DeleteDataLabelingJobRequest + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * 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 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.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelDataLabelingJobRequest. */ - interface ICancelDataLabelingJobRequest { + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** CancelDataLabelingJobRequest name */ - name?: (string|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelDataLabelingJobRequest. */ - class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - /** CancelDataLabelingJobRequest name. */ - public name: string; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDataLabelingJobRequest instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * 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 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.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, 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 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.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * 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 CancelDataLabelingJobRequest + * @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.CancelDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDataLabelingJobRequest + * @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.CancelDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a CancelDataLabelingJobRequest message. + * 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 CancelDataLabelingJobRequest 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. * @param object Plain object - * @returns CancelDataLabelingJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * 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 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.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateHyperparameterTuningJobRequest. */ - interface ICreateHyperparameterTuningJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** CreateHyperparameterTuningJobRequest parent */ - parent?: (string|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateHyperparameterTuningJobRequest. */ - class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - /** CreateHyperparameterTuningJobRequest parent. */ - public parent: string; + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ - public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHyperparameterTuningJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * 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 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.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, 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 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.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHyperparameterTuningJobRequest 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 CreateHyperparameterTuningJobRequest + * @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.CreateHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Decodes a CreateHyperparameterTuningJobRequest 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 CreateHyperparameterTuningJobRequest + * @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.CreateHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Verifies a CreateHyperparameterTuningJobRequest 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 CreateHyperparameterTuningJobRequest 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 CreateHyperparameterTuningJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CreateHyperparameterTuningJobRequest + * 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.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetHyperparameterTuningJobRequest. */ - interface IGetHyperparameterTuningJobRequest { + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** GetHyperparameterTuningJobRequest name */ + /** DeleteModelDeploymentMonitoringJobRequest name */ name?: (string|null); } - /** Represents a GetHyperparameterTuningJobRequest. */ - class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); - /** GetHyperparameterTuningJobRequest name. */ + /** DeleteModelDeploymentMonitoringJobRequest name. */ public name: string; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHyperparameterTuningJobRequest instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * 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 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.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, 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 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.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHyperparameterTuningJobRequest 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 GetHyperparameterTuningJobRequest + * @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.GetHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a GetHyperparameterTuningJobRequest 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 GetHyperparameterTuningJobRequest + * @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.GetHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a GetHyperparameterTuningJobRequest 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 GetHyperparameterTuningJobRequest 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 GetHyperparameterTuningJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * 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 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.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest 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 PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** ListHyperparameterTuningJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ListHyperparameterTuningJobsRequest. */ - class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @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.IPauseModelDeploymentMonitoringJobRequest); - /** ListHyperparameterTuningJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsRequest instance + * @returns PauseModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * 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 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.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, 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 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.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsRequest 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 ListHyperparameterTuningJobsRequest + * @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.ListHyperparameterTuningJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Decodes a ListHyperparameterTuningJobsRequest 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 ListHyperparameterTuningJobsRequest + * @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.ListHyperparameterTuningJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Verifies a ListHyperparameterTuningJobsRequest 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 ListHyperparameterTuningJobsRequest 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 ListHyperparameterTuningJobsRequest + * @returns PauseModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * 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 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.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListHyperparameterTuningJobsResponse. */ - interface IListHyperparameterTuningJobsResponse { - - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ - hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** ListHyperparameterTuningJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ListHyperparameterTuningJobsResponse. */ - class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); - - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ - public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - /** ListHyperparameterTuningJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsResponse instance + * @returns ResumeModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * 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 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.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, 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 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.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsResponse 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 ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Decodes a ListHyperparameterTuningJobsResponse 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 ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Verifies a ListHyperparameterTuningJobsResponse 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 ListHyperparameterTuningJobsResponse 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 ListHyperparameterTuningJobsResponse + * @returns ResumeModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * 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 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.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteHyperparameterTuningJobRequest. */ - interface IDeleteHyperparameterTuningJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** DeleteHyperparameterTuningJobRequest name */ - name?: (string|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteHyperparameterTuningJobRequest. */ - class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** DeleteHyperparameterTuningJobRequest name. */ - public name: string; + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteHyperparameterTuningJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * 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 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.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, 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 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.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteHyperparameterTuningJobRequest 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 DeleteHyperparameterTuningJobRequest + * @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.DeleteHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Decodes a DeleteHyperparameterTuningJobRequest 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 DeleteHyperparameterTuningJobRequest + * @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.DeleteHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Verifies a DeleteHyperparameterTuningJobRequest 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 DeleteHyperparameterTuningJobRequest 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 DeleteHyperparameterTuningJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message DeleteHyperparameterTuningJobRequest + * 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.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelHyperparameterTuningJobRequest. */ - interface ICancelHyperparameterTuningJobRequest { + /** 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 + } - /** CancelHyperparameterTuningJobRequest name */ + /** 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 CancelHyperparameterTuningJobRequest. */ - class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new ModelDeploymentMonitoringJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - /** CancelHyperparameterTuningJobRequest name. */ + /** 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); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; + + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; + + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; + + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); + /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns CancelHyperparameterTuningJobRequest instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * 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 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.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, 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 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.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * 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 CancelHyperparameterTuningJobRequest + * @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.CancelHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelHyperparameterTuningJobRequest + * @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.CancelHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * 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); /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelHyperparameterTuningJobRequest + * @returns ModelDeploymentMonitoringJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * 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 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.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + namespace ModelDeploymentMonitoringJob { + + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { + + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 }; + + /** + * Converts this LatestMonitoringPipelineMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 + } + } + + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** CreateBatchPredictionJobRequest parent */ - parent?: (string|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - /** CreateBatchPredictionJobRequest parent. */ - public parent: string; + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * 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 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.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, 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 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.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * 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 CreateBatchPredictionJobRequest + * @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.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @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.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies a CreateBatchPredictionJobRequest message. + * 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); /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * 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 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.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + namespace ModelDeploymentMonitoringBigQueryTable { - /** GetBatchPredictionJobRequest name */ - name?: (string|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + } + + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - /** GetBatchPredictionJobRequest name. */ - public name: string; + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * 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 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.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, 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 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.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest 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 GetBatchPredictionJobRequest + * @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.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes a GetBatchPredictionJobRequest 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 GetBatchPredictionJobRequest + * @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.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies a GetBatchPredictionJobRequest 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 GetBatchPredictionJobRequest 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 GetBatchPredictionJobRequest + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * 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 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.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig 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 ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** ListBatchPredictionJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @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.IModelDeploymentMonitoringScheduleConfig); - /** ListBatchPredictionJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns ModelDeploymentMonitoringScheduleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * 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 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.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, 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 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.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest 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 ListBatchPredictionJobsRequest + * @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.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Decodes a ListBatchPredictionJobsRequest 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 ListBatchPredictionJobsRequest + * @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.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Verifies a ListBatchPredictionJobsRequest 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 ListBatchPredictionJobsRequest 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 ListBatchPredictionJobsRequest + * @returns ModelDeploymentMonitoringScheduleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * 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 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.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - /** ListBatchPredictionJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); + + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); + + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ModelMonitoringStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - /** ListBatchPredictionJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; + + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; + + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ModelMonitoringStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * 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 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.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, 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 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.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse 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 ListBatchPredictionJobsResponse + * @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.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Decodes a ListBatchPredictionJobsResponse 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 ListBatchPredictionJobsResponse + * @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.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Verifies a ListBatchPredictionJobsResponse 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 ListBatchPredictionJobsResponse 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 ListBatchPredictionJobsResponse + * @returns ModelMonitoringStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * 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 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.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + namespace ModelMonitoringStatsAnomalies { - /** DeleteBatchPredictionJobRequest name */ - name?: (string|null); - } + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** - * Constructs a new DeleteBatchPredictionJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** DeleteBatchPredictionJobRequest name. */ - public name: string; + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + } - /** - * 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.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - /** - * 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.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** - * 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 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.DeleteBatchPredictionJobRequest; + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.DeleteBatchPredictionJobRequest; + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** - * 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); + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteBatchPredictionJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; - /** - * 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.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 DeleteBatchPredictionJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** CancelBatchPredictionJobRequest name */ - name?: (string|null); + /** 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); + + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new ModelMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - /** CancelBatchPredictionJobRequest name. */ - public name: string; + /** 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); + + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns ModelMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * 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 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.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, 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 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.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest + * @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.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Decodes a CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest + * @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.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Verifies a CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest + * @returns ModelMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * 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 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.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { + namespace ModelMonitoringObjectiveConfig { - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - } + /** TrainingDataset dataset */ + dataset?: (string|null); - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** TrainingDataset targetField */ + targetField?: (string|null); - /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + } - /** - * 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.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { - /** - * 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.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); - /** - * 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 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.CreateModelDeploymentMonitoringJobRequest; + /** TrainingDataset dataset. */ + public dataset?: (string|null); - /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.CreateModelDeploymentMonitoringJobRequest; + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** - * 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); + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + /** TrainingDataset dataFormat. */ + public dataFormat: string; - /** - * 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.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TrainingDataset targetField. */ + public targetField: string; - /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ - pageSize?: (number|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ - pageToken?: (string|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); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|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 }; - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + } - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ - public pageSize: number; + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ - public pageToken: string; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|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; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * 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; - /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + /** + * 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; - /** - * 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.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + /** + * 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); - /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + /** + * 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; - /** - * 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 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 }; - /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { + + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + } + + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** + * 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 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 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 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 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; - /** - * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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); - /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** + * 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 }; - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); + + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); } - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { /** - * Constructs a new StatsAnomaliesObjective. + * Constructs a new ExplanationConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. + * Creates a new ExplanationConfig instance using the specified properties. * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance + * @returns ExplanationConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; /** - * 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 + * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, 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 + * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * 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 StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; /** - * Verifies a StatsAnomaliesObjective message. + * 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 a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StatsAnomaliesObjective + * @returns ExplanationConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective + * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StatsAnomaliesObjective to JSON. + * Converts this ExplanationConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + namespace ExplanationConfig { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); - /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** - * 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.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** - * 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.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); - /** - * 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 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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); - /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + /** + * 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; - /** - * 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.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * 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 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.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, 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 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.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest 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 GetModelDeploymentMonitoringJobRequest + * @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.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Decodes a GetModelDeploymentMonitoringJobRequest 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 GetModelDeploymentMonitoringJobRequest + * @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.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Verifies a GetModelDeploymentMonitoringJobRequest 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 GetModelDeploymentMonitoringJobRequest 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 GetModelDeploymentMonitoringJobRequest + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * 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 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.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { + namespace ModelMonitoringAlertConfig { - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** 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 ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; - - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; - - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + /** ThresholdConfig value. */ + public value?: (number|null); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * 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 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.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, 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 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.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest 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 ListModelDeploymentMonitoringJobsRequest + * @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.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest 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 ListModelDeploymentMonitoringJobsRequest + * @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.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest 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 ListModelDeploymentMonitoringJobsRequest 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 ListModelDeploymentMonitoringJobsRequest + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * 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 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.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { - - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * 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 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.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, 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 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.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse 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 ListModelDeploymentMonitoringJobsResponse + * @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.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse 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 ListModelDeploymentMonitoringJobsResponse + * @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.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse 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 a ListModelDeploymentMonitoringJobsResponse 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 ListModelDeploymentMonitoringJobsResponse + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * 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 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.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + namespace SamplingStrategy { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } + + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { + + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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); + + /** + * 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; + + /** + * 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 }; + + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a LineageSubgraph. */ + interface ILineageSubgraph { + + /** LineageSubgraph artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); + + /** LineageSubgraph executions */ + executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); + + /** LineageSubgraph events */ + events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); + } + + /** Represents a LineageSubgraph. */ + class LineageSubgraph implements ILineageSubgraph { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new LineageSubgraph. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ILineageSubgraph); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** LineageSubgraph artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** LineageSubgraph executions. */ + public executions: google.cloud.aiplatform.v1beta1.IExecution[]; + + /** LineageSubgraph events. */ + public events: google.cloud.aiplatform.v1beta1.IEvent[]; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new LineageSubgraph instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns LineageSubgraph instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ILineageSubgraph): google.cloud.aiplatform.v1beta1.LineageSubgraph; /** - * 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 LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph 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.ILineageSubgraph, 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 LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph 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.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a LineageSubgraph 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 LineageSubgraph * @throws {Error} If the payload is not a reader or 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.LineageSubgraph; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns LineageSubgraph * @throws {Error} If the payload is not a 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.LineageSubgraph; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a LineageSubgraph message. * @param message 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 LineageSubgraph message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LineageSubgraph; /** - * 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 LineageSubgraph message. Also converts values to other types if specified. + * @param message LineageSubgraph * @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.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this LineageSubgraph to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a MetadataSchema. */ + interface IMetadataSchema { - /** DeleteModelDeploymentMonitoringJobRequest name */ + /** MetadataSchema name */ name?: (string|null); + + /** MetadataSchema schemaVersion */ + schemaVersion?: (string|null); + + /** MetadataSchema schema */ + schema?: (string|null); + + /** MetadataSchema schemaType */ + schemaType?: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null); + + /** MetadataSchema createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description */ + description?: (string|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a MetadataSchema. */ + class MetadataSchema implements IMetadataSchema { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new MetadataSchema. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema); - /** DeleteModelDeploymentMonitoringJobRequest name. */ + /** MetadataSchema name. */ public name: string; + /** MetadataSchema schemaVersion. */ + public schemaVersion: string; + + /** MetadataSchema schema. */ + public schema: string; + + /** MetadataSchema schemaType. */ + public schemaType: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType); + + /** MetadataSchema createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description. */ + public description: string; + /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new MetadataSchema instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns MetadataSchema instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * 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 MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema 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.IMetadataSchema, 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 MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema 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.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a MetadataSchema 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 MetadataSchema * @throws {Error} If the payload is not a reader or 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.MetadataSchema; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns MetadataSchema * @throws {Error} If the payload is not a 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.MetadataSchema; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a MetadataSchema message. * @param message 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 MetadataSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataSchema; /** - * 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 MetadataSchema message. Also converts values to other types if specified. + * @param message MetadataSchema * @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.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this MetadataSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + namespace MetadataSchema { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** MetadataSchemaType enum. */ + enum MetadataSchemaType { + METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, + ARTIFACT_TYPE = 1, + EXECUTION_TYPE = 2, + CONTEXT_TYPE = 3 + } } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a MetadataService */ + class MetadataService extends $protobuf.rpc.Service { + + /** + * Constructs a new MetadataService 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 MetadataService 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): MetadataService; + + /** + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback): void; + + /** + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @returns Promise + */ + public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): Promise; + + /** + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataStore + */ + public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback): void; + + /** + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @returns Promise + */ + public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): Promise; + + /** + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + */ + public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback): void; + + /** + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @returns Promise + */ + public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): Promise; + + /** + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback): void; + + /** + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @returns Promise + */ + public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): Promise; + + /** + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact + */ + public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback): void; + + /** + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @returns Promise + */ + public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): Promise; + + /** + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact + */ + public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback): void; + + /** + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @returns Promise + */ + public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): Promise; + + /** + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse + */ + public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback): void; + + /** + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @returns Promise + */ + public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): Promise; + + /** + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact + */ + public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback): void; /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); - - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): Promise; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest 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.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback): void; /** - * 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 + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): Promise; /** - * 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 + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest 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.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback): void; /** - * 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 PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): Promise; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback): void; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest): Promise; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback): void; /** - * 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 + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest): Promise; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContextsResponse */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { - - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } - - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback): void; /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest): Promise; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback): void; /** - * 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 + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): Promise; /** - * 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 + * Calls DeleteContext. + * @param request DeleteContextRequest 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.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback): void; /** - * 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 ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): Promise; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback): void; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): Promise; /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; /** - * 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 + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): Promise; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback): void; /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @param [properties] Properties to set + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): Promise; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback): void; /** - * 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 + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): Promise; /** - * 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 + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback): void; /** - * 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 UpdateModelDeploymentMonitoringJobOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): Promise; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback): void; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): Promise; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback): void; /** - * 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 + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): Promise; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. - * @returns JSON object + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a LineageSubgraph. */ - interface ILineageSubgraph { - - /** LineageSubgraph artifacts */ - artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); - - /** LineageSubgraph executions */ - executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); - - /** LineageSubgraph events */ - events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); - } - - /** Represents a LineageSubgraph. */ - class LineageSubgraph implements ILineageSubgraph { + public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback): void; /** - * Constructs a new LineageSubgraph. - * @param [properties] Properties to set + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ILineageSubgraph); - - /** LineageSubgraph artifacts. */ - public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - - /** LineageSubgraph executions. */ - public executions: google.cloud.aiplatform.v1beta1.IExecution[]; - - /** LineageSubgraph events. */ - public events: google.cloud.aiplatform.v1beta1.IEvent[]; + public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): Promise; /** - * Creates a new LineageSubgraph instance using the specified properties. - * @param [properties] Properties to set - * @returns LineageSubgraph instance + * Calls DeleteExecution. + * @param request DeleteExecutionRequest 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.ILineageSubgraph): google.cloud.aiplatform.v1beta1.LineageSubgraph; + public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback): void; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): Promise; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest 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.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback): void; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.LineageSubgraph; + public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): Promise; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.LineageSubgraph; + public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback): void; /** - * Verifies a LineageSubgraph message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): Promise; /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LineageSubgraph + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LineageSubgraph; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @param message LineageSubgraph - * @param [options] Conversion options - * @returns Plain object + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): Promise; /** - * Converts this LineageSubgraph to JSON. - * @returns JSON object + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MetadataSchema. */ - interface IMetadataSchema { - - /** MetadataSchema name */ - name?: (string|null); - - /** MetadataSchema schemaVersion */ - schemaVersion?: (string|null); - - /** MetadataSchema schema */ - schema?: (string|null); - - /** MetadataSchema schemaType */ - schemaType?: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null); - - /** MetadataSchema createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataSchema description */ - description?: (string|null); - } - - /** Represents a MetadataSchema. */ - class MetadataSchema implements IMetadataSchema { + public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback): void; /** - * Constructs a new MetadataSchema. - * @param [properties] Properties to set + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema); - - /** MetadataSchema name. */ - public name: string; - - /** MetadataSchema schemaVersion. */ - public schemaVersion: string; + public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): Promise; - /** MetadataSchema schema. */ - public schema: string; + /** + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema + */ + public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback): void; - /** MetadataSchema schemaType. */ - public schemaType: (google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType); + /** + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @returns Promise + */ + public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): Promise; - /** MetadataSchema createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + */ + public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback): void; - /** MetadataSchema description. */ - public description: string; + /** + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @returns Promise + */ + public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): Promise; /** - * Creates a new MetadataSchema instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataSchema instance + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataSchema): google.cloud.aiplatform.v1beta1.MetadataSchema; + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback): void; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): Promise; + } + + namespace MetadataService { /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a MetadataSchema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataSchema - * @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.MetadataService#getMetadataStore}. + * @param error Error, if any + * @param [response] MetadataStore */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataSchema; + type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataStore) => void; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataSchema - * @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.MetadataService#listMetadataStores}. + * @param error Error, if any + * @param [response] ListMetadataStoresResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataSchema; + type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) => void; /** - * Verifies a MetadataSchema 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.MetadataService#deleteMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataSchema + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataSchema; + type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. - * @param message MetadataSchema - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Converts this MetadataSchema to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listArtifacts}. + * @param error Error, if any + * @param [response] ListArtifactsResponse */ - public toJSON(): { [k: string]: any }; - } - - namespace MetadataSchema { - - /** MetadataSchemaType enum. */ - enum MetadataSchemaType { - METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, - ARTIFACT_TYPE = 1, - EXECUTION_TYPE = 2, - CONTEXT_TYPE = 3 - } - } - - /** Represents a MetadataService */ - class MetadataService extends $protobuf.rpc.Service { + type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListArtifactsResponse) => void; /** - * Constructs a new MetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; /** - * Creates new MetadataService 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. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteArtifact}. + * @param error Error, if any + * @param [response] Operation */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; + type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeArtifacts}. + * @param error Error, if any + * @param [response] Operation */ - public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback): void; + type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createContext}. + * @param error Error, if any + * @param [response] Context */ - public createMetadataStore(request: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): Promise; + type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataStore + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getContext}. + * @param error Error, if any + * @param [response] Context */ - public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback): void; + type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listContexts}. + * @param error Error, if any + * @param [response] ListContextsResponse */ - public getMetadataStore(request: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): Promise; + type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListContextsResponse) => void; /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateContext}. + * @param error Error, if any + * @param [response] Context */ - public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback): void; + type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteContext}. + * @param error Error, if any + * @param [response] Operation */ - public listMetadataStores(request: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): Promise; + type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeContexts}. + * @param error Error, if any + * @param [response] Operation */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback): void; + type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextArtifactsAndExecutions}. + * @param error Error, if any + * @param [response] AddContextArtifactsAndExecutionsResponse */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): Promise; + type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) => void; /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextChildren}. + * @param error Error, if any + * @param [response] AddContextChildrenResponse */ - public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback): void; + type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) => void; /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryContextLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public createArtifact(request: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): Promise; + type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createExecution}. + * @param error Error, if any + * @param [response] Execution */ - public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback): void; + type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getExecution}. + * @param error Error, if any + * @param [response] Execution */ - public getArtifact(request: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): Promise; + type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listExecutions}. + * @param error Error, if any + * @param [response] ListExecutionsResponse */ - public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback): void; + type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListExecutionsResponse) => void; /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateExecution}. + * @param error Error, if any + * @param [response] Execution */ - public listArtifacts(request: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): Promise; + type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteExecution}. + * @param error Error, if any + * @param [response] Operation */ - public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback): void; + type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeExecutions}. + * @param error Error, if any + * @param [response] Operation */ - public updateArtifact(request: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): Promise; + type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addExecutionEvents}. + * @param error Error, if any + * @param [response] AddExecutionEventsResponse */ - public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback): void; + type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) => void; /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryExecutionInputsAndOutputs}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public deleteArtifact(request: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): Promise; + type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback): void; + type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public purgeArtifacts(request: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): Promise; + type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataSchemas}. + * @param error Error, if any + * @param [response] ListMetadataSchemasResponse */ - public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback): void; + type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) => void; /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryArtifactLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public createContext(request: google.cloud.aiplatform.v1beta1.ICreateContextRequest): Promise; + type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + } + + /** Properties of a CreateMetadataStoreRequest. */ + interface ICreateMetadataStoreRequest { + + /** CreateMetadataStoreRequest parent */ + parent?: (string|null); + + /** CreateMetadataStoreRequest metadataStore */ + metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + + /** CreateMetadataStoreRequest metadataStoreId */ + metadataStoreId?: (string|null); + } + + /** Represents a CreateMetadataStoreRequest. */ + class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Constructs a new CreateMetadataStoreRequest. + * @param [properties] Properties to set */ - public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest); + + /** CreateMetadataStoreRequest parent. */ + public parent: string; + + /** CreateMetadataStoreRequest metadataStore. */ + public metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + + /** CreateMetadataStoreRequest metadataStoreId. */ + public metadataStoreId: string; /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @returns Promise + * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMetadataStoreRequest instance */ - public getContext(request: google.cloud.aiplatform.v1beta1.IGetContextRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContextsResponse + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @returns Promise + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listContexts(request: google.cloud.aiplatform.v1beta1.IListContextsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @returns Promise + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateContext(request: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a CreateMetadataStoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @returns Promise + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMetadataStoreRequest */ - public deleteContext(request: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * @param message CreateMetadataStoreRequest + * @param [options] Conversion options + * @returns Plain object */ - public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @returns Promise + * Converts this CreateMetadataStoreRequest to JSON. + * @returns JSON object */ - public purgeContexts(request: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateMetadataStoreOperationMetadata. */ + interface ICreateMetadataStoreOperationMetadata { + + /** CreateMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a CreateMetadataStoreOperationMetadata. */ + class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * Constructs a new CreateMetadataStoreOperationMetadata. + * @param [properties] Properties to set */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata); + + /** CreateMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns Promise + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMetadataStoreOperationMetadata instance */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @returns Promise + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public addContextChildren(request: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMetadataStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @returns Promise + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMetadataStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Verifies a CreateMetadataStoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @returns Promise + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMetadataStoreOperationMetadata */ - public createExecution(request: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateMetadataStoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @returns Promise + * Converts this CreateMetadataStoreOperationMetadata to JSON. + * @returns JSON object */ - public getExecution(request: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetMetadataStoreRequest. */ + interface IGetMetadataStoreRequest { + + /** GetMetadataStoreRequest name */ + name?: (string|null); + } + + /** Represents a GetMetadataStoreRequest. */ + class GetMetadataStoreRequest implements IGetMetadataStoreRequest { /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse + * Constructs a new GetMetadataStoreRequest. + * @param [properties] Properties to set */ - public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest); + + /** GetMetadataStoreRequest name. */ + public name: string; /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @returns Promise + * Creates a new GetMetadataStoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMetadataStoreRequest instance */ - public listExecutions(request: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @returns Promise + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateExecution(request: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @returns Promise + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteExecution(request: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a GetMetadataStoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @returns Promise + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMetadataStoreRequest */ - public purgeExecutions(request: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * @param message GetMetadataStoreRequest + * @param [options] Conversion options + * @returns Plain object */ - public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @returns Promise + * Converts this GetMetadataStoreRequest to JSON. + * @returns JSON object */ - public addExecutionEvents(request: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListMetadataStoresRequest. */ + interface IListMetadataStoresRequest { + + /** ListMetadataStoresRequest parent */ + parent?: (string|null); + + /** ListMetadataStoresRequest pageSize */ + pageSize?: (number|null); + + /** ListMetadataStoresRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListMetadataStoresRequest. */ + class ListMetadataStoresRequest implements IListMetadataStoresRequest { /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Constructs a new ListMetadataStoresRequest. + * @param [properties] Properties to set */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest); + + /** ListMetadataStoresRequest parent. */ + public parent: string; + + /** ListMetadataStoresRequest pageSize. */ + public pageSize: number; + + /** ListMetadataStoresRequest pageToken. */ + public pageToken: string; /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns Promise + * Creates a new ListMetadataStoresRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataStoresRequest instance */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @returns Promise + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createMetadataSchema(request: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataStoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @returns Promise + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataStoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getMetadataSchema(request: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * Verifies a ListMetadataStoresRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @returns Promise + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataStoresRequest */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * @param message ListMetadataStoresRequest + * @param [options] Conversion options + * @returns Plain object */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @returns Promise + * Converts this ListMetadataStoresRequest to JSON. + * @returns JSON object */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace MetadataService { + /** Properties of a ListMetadataStoresResponse. */ + interface IListMetadataStoresResponse { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListMetadataStoresResponse metadataStores */ + metadataStores?: (google.cloud.aiplatform.v1beta1.IMetadataStore[]|null); + + /** ListMetadataStoresResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListMetadataStoresResponse. */ + class ListMetadataStoresResponse implements IListMetadataStoresResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataStore}. - * @param error Error, if any - * @param [response] MetadataStore + * Constructs a new ListMetadataStoresResponse. + * @param [properties] Properties to set */ - type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataStore) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse); + + /** ListMetadataStoresResponse metadataStores. */ + public metadataStores: google.cloud.aiplatform.v1beta1.IMetadataStore[]; + + /** ListMetadataStoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataStores}. - * @param error Error, if any - * @param [response] ListMetadataStoresResponse + * Creates a new ListMetadataStoresResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataStoresResponse instance */ - type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteMetadataStore}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createArtifact}. - * @param error Error, if any - * @param [response] Artifact + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getArtifact}. - * @param error Error, if any - * @param [response] Artifact + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataStoresResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listArtifacts}. - * @param error Error, if any - * @param [response] ListArtifactsResponse + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataStoresResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListArtifactsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateArtifact}. - * @param error Error, if any - * @param [response] Artifact + * Verifies a ListMetadataStoresResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Artifact) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteArtifact}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataStoresResponse */ - type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeArtifacts}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * @param message ListMetadataStoresResponse + * @param [options] Conversion options + * @returns Plain object */ - type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createContext}. - * @param error Error, if any - * @param [response] Context + * Converts this ListMetadataStoresResponse to JSON. + * @returns JSON object */ - type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteMetadataStoreRequest. */ + interface IDeleteMetadataStoreRequest { + + /** DeleteMetadataStoreRequest name */ + name?: (string|null); + + /** DeleteMetadataStoreRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteMetadataStoreRequest. */ + class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getContext}. - * @param error Error, if any - * @param [response] Context + * Constructs a new DeleteMetadataStoreRequest. + * @param [properties] Properties to set */ - type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest); + + /** DeleteMetadataStoreRequest name. */ + public name: string; + + /** DeleteMetadataStoreRequest force. */ + public force: boolean; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listContexts}. - * @param error Error, if any - * @param [response] ListContextsResponse + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMetadataStoreRequest instance */ - type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListContextsResponse) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateContext}. - * @param error Error, if any - * @param [response] Context + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Context) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteContext}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeContexts}. - * @param error Error, if any - * @param [response] Operation + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextArtifactsAndExecutions}. - * @param error Error, if any - * @param [response] AddContextArtifactsAndExecutionsResponse + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMetadataStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextChildren}. - * @param error Error, if any - * @param [response] AddContextChildrenResponse + * Verifies a DeleteMetadataStoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryContextLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMetadataStoreRequest */ - type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createExecution}. - * @param error Error, if any - * @param [response] Execution + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreRequest + * @param [options] Conversion options + * @returns Plain object */ - type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getExecution}. - * @param error Error, if any - * @param [response] Execution + * Converts this DeleteMetadataStoreRequest to JSON. + * @returns JSON object */ - type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteMetadataStoreOperationMetadata. */ + interface IDeleteMetadataStoreOperationMetadata { + + /** DeleteMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a DeleteMetadataStoreOperationMetadata. */ + class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listExecutions}. - * @param error Error, if any - * @param [response] ListExecutionsResponse + * Constructs a new DeleteMetadataStoreOperationMetadata. + * @param [properties] Properties to set */ - type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListExecutionsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata); + + /** DeleteMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateExecution}. - * @param error Error, if any - * @param [response] Execution + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMetadataStoreOperationMetadata instance */ - type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Execution) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteExecution}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeExecutions}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addExecutionEvents}. - * @param error Error, if any - * @param [response] AddExecutionEventsResponse + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMetadataStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryExecutionInputsAndOutputs}. - * @param error Error, if any - * @param [response] LineageSubgraph + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMetadataStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema + * Verifies a DeleteMetadataStoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMetadataStoreOperationMetadata */ - type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.MetadataSchema) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataSchemas}. - * @param error Error, if any - * @param [response] ListMetadataSchemasResponse + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryArtifactLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph + * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * @returns JSON object */ - type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.LineageSubgraph) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateMetadataStoreRequest. */ - interface ICreateMetadataStoreRequest { + /** Properties of a CreateArtifactRequest. */ + interface ICreateArtifactRequest { - /** CreateMetadataStoreRequest parent */ + /** CreateArtifactRequest parent */ parent?: (string|null); - /** CreateMetadataStoreRequest metadataStore */ - metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); + /** CreateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** CreateMetadataStoreRequest metadataStoreId */ - metadataStoreId?: (string|null); + /** CreateArtifactRequest artifactId */ + artifactId?: (string|null); } - /** Represents a CreateMetadataStoreRequest. */ - class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { + /** Represents a CreateArtifactRequest. */ + class CreateArtifactRequest implements ICreateArtifactRequest { /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new CreateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest); - /** CreateMetadataStoreRequest parent. */ + /** CreateArtifactRequest parent. */ public parent: string; - /** CreateMetadataStoreRequest metadataStore. */ - public metadataStore?: (google.cloud.aiplatform.v1beta1.IMetadataStore|null); - - /** CreateMetadataStoreRequest metadataStoreId. */ - public metadataStoreId: string; + /** CreateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + + /** CreateArtifactRequest artifactId. */ + public artifactId: string; /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreRequest instance + * @returns CreateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreRequest + * @returns CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreRequest + * @returns CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies a CreateArtifactRequest message. * @param message 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 CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreRequest + * @returns CreateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. - * @param message CreateMetadataStoreRequest + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * @param message CreateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this CreateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateMetadataStoreOperationMetadata. */ - interface ICreateMetadataStoreOperationMetadata { + /** Properties of a GetArtifactRequest. */ + interface IGetArtifactRequest { - /** CreateMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetArtifactRequest name */ + name?: (string|null); } - /** Represents a CreateMetadataStoreOperationMetadata. */ - class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { + /** Represents a GetArtifactRequest. */ + class GetArtifactRequest implements IGetArtifactRequest { /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new GetArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest); - /** CreateMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetArtifactRequest name. */ + public name: string; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreOperationMetadata instance + * @returns GetArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): google.cloud.aiplatform.v1beta1.GetArtifactRequest; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreOperationMetadata + * @returns GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetArtifactRequest; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreOperationMetadata + * @returns GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetArtifactRequest; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a GetArtifactRequest message. * @param message 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 CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreOperationMetadata + * @returns GetArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetArtifactRequest; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateMetadataStoreOperationMetadata + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * @param message GetArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this GetArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetMetadataStoreRequest. */ - interface IGetMetadataStoreRequest { + /** Properties of a ListArtifactsRequest. */ + interface IListArtifactsRequest { - /** GetMetadataStoreRequest name */ - name?: (string|null); + /** ListArtifactsRequest parent */ + parent?: (string|null); + + /** ListArtifactsRequest pageSize */ + pageSize?: (number|null); + + /** ListArtifactsRequest pageToken */ + pageToken?: (string|null); + + /** ListArtifactsRequest filter */ + filter?: (string|null); } - /** Represents a GetMetadataStoreRequest. */ - class GetMetadataStoreRequest implements IGetMetadataStoreRequest { + /** Represents a ListArtifactsRequest. */ + class ListArtifactsRequest implements IListArtifactsRequest { /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new ListArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest); - /** GetMetadataStoreRequest name. */ - public name: string; + /** ListArtifactsRequest parent. */ + public parent: string; + + /** ListArtifactsRequest pageSize. */ + public pageSize: number; + + /** ListArtifactsRequest pageToken. */ + public pageToken: string; + + /** ListArtifactsRequest filter. */ + public filter: string; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataStoreRequest instance + * @returns ListArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataStoreRequest + * @returns ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataStoreRequest + * @returns ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a ListArtifactsRequest message. * @param message 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 GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataStoreRequest + * @returns ListArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. - * @param message GetMetadataStoreRequest + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * @param message ListArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListMetadataStoresRequest. */ - interface IListMetadataStoresRequest { - - /** ListMetadataStoresRequest parent */ - parent?: (string|null); + /** Properties of a ListArtifactsResponse. */ + interface IListArtifactsResponse { - /** ListMetadataStoresRequest pageSize */ - pageSize?: (number|null); + /** ListArtifactsResponse artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); - /** ListMetadataStoresRequest pageToken */ - pageToken?: (string|null); + /** ListArtifactsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListMetadataStoresRequest. */ - class ListMetadataStoresRequest implements IListMetadataStoresRequest { + /** Represents a ListArtifactsResponse. */ + class ListArtifactsResponse implements IListArtifactsResponse { /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new ListArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest); - - /** ListMetadataStoresRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse); - /** ListMetadataStoresRequest pageSize. */ - public pageSize: number; + /** ListArtifactsResponse artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - /** ListMetadataStoresRequest pageToken. */ - public pageToken: string; + /** ListArtifactsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresRequest instance + * @returns ListArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresRequest + * @returns ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresRequest + * @returns ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a ListArtifactsResponse message. * @param message 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 ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresRequest + * @returns ListArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. - * @param message ListMetadataStoresRequest + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * @param message ListArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this ListArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListMetadataStoresResponse. */ - interface IListMetadataStoresResponse { + /** Properties of an UpdateArtifactRequest. */ + interface IUpdateArtifactRequest { - /** ListMetadataStoresResponse metadataStores */ - metadataStores?: (google.cloud.aiplatform.v1beta1.IMetadataStore[]|null); + /** UpdateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** ListMetadataStoresResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateArtifactRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a ListMetadataStoresResponse. */ - class ListMetadataStoresResponse implements IListMetadataStoresResponse { + /** Represents an UpdateArtifactRequest. */ + class UpdateArtifactRequest implements IUpdateArtifactRequest { /** - * Constructs a new ListMetadataStoresResponse. + * Constructs a new UpdateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest); - /** ListMetadataStoresResponse metadataStores. */ - public metadataStores: google.cloud.aiplatform.v1beta1.IMetadataStore[]; + /** UpdateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); - /** ListMetadataStoresResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateArtifactRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresResponse instance + * @returns UpdateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresResponse + * @returns UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresResponse + * @returns UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Verifies a ListMetadataStoresResponse message. + * Verifies an UpdateArtifactRequest message. * @param message 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 ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresResponse + * @returns UpdateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @param message ListMetadataStoresResponse + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @param message UpdateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresResponse to JSON. + * Converts this UpdateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteMetadataStoreRequest. */ - interface IDeleteMetadataStoreRequest { + /** Properties of a DeleteArtifactRequest. */ + interface IDeleteArtifactRequest { - /** DeleteMetadataStoreRequest name */ + /** DeleteArtifactRequest name */ name?: (string|null); - /** DeleteMetadataStoreRequest force */ - force?: (boolean|null); + /** DeleteArtifactRequest etag */ + etag?: (string|null); } - /** Represents a DeleteMetadataStoreRequest. */ - class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { + /** Represents a DeleteArtifactRequest. */ + class DeleteArtifactRequest implements IDeleteArtifactRequest { /** - * Constructs a new DeleteMetadataStoreRequest. + * Constructs a new DeleteArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest); - /** DeleteMetadataStoreRequest name. */ + /** DeleteArtifactRequest name. */ public name: string; - /** DeleteMetadataStoreRequest force. */ - public force: boolean; + /** DeleteArtifactRequest etag. */ + public etag: string; /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreRequest instance + * @returns DeleteArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreRequest + * @returns DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreRequest + * @returns DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Verifies a DeleteMetadataStoreRequest message. + * Verifies a DeleteArtifactRequest message. * @param message 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 DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreRequest + * @returns DeleteArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreRequest + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * @param message DeleteArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreRequest to JSON. + * Converts this DeleteArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteMetadataStoreOperationMetadata. */ - interface IDeleteMetadataStoreOperationMetadata { + /** Properties of a PurgeArtifactsRequest. */ + interface IPurgeArtifactsRequest { - /** DeleteMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PurgeArtifactsRequest parent */ + parent?: (string|null); + + /** PurgeArtifactsRequest filter */ + filter?: (string|null); + + /** PurgeArtifactsRequest force */ + force?: (boolean|null); } - /** Represents a DeleteMetadataStoreOperationMetadata. */ - class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { + /** Represents a PurgeArtifactsRequest. */ + class PurgeArtifactsRequest implements IPurgeArtifactsRequest { /** - * Constructs a new DeleteMetadataStoreOperationMetadata. + * Constructs a new PurgeArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest); - /** DeleteMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PurgeArtifactsRequest parent. */ + public parent: string; + + /** PurgeArtifactsRequest filter. */ + public filter: string; + + /** PurgeArtifactsRequest force. */ + public force: boolean; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreOperationMetadata instance + * @returns PurgeArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreOperationMetadata + * @returns PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreOperationMetadata + * @returns PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies a PurgeArtifactsRequest message. * @param message 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 DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreOperationMetadata + * @returns PurgeArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreOperationMetadata + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * @param message PurgeArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateArtifactRequest. */ - interface ICreateArtifactRequest { - - /** CreateArtifactRequest parent */ - parent?: (string|null); + /** Properties of a PurgeArtifactsResponse. */ + interface IPurgeArtifactsResponse { - /** CreateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** PurgeArtifactsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** CreateArtifactRequest artifactId */ - artifactId?: (string|null); + /** PurgeArtifactsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a CreateArtifactRequest. */ - class CreateArtifactRequest implements ICreateArtifactRequest { + /** Represents a PurgeArtifactsResponse. */ + class PurgeArtifactsResponse implements IPurgeArtifactsResponse { /** - * Constructs a new CreateArtifactRequest. + * Constructs a new PurgeArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest); - - /** CreateArtifactRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse); - /** CreateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** PurgeArtifactsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** CreateArtifactRequest artifactId. */ - public artifactId: string; + /** PurgeArtifactsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateArtifactRequest instance + * @returns PurgeArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateArtifactRequest + * @returns PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateArtifactRequest + * @returns PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Verifies a CreateArtifactRequest message. + * Verifies a PurgeArtifactsResponse message. * @param message 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 CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateArtifactRequest + * @returns PurgeArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @param message CreateArtifactRequest + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * @param message PurgeArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetArtifactRequest. */ - interface IGetArtifactRequest { + /** Properties of a PurgeArtifactsMetadata. */ + interface IPurgeArtifactsMetadata { - /** GetArtifactRequest name */ - name?: (string|null); + /** PurgeArtifactsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetArtifactRequest. */ - class GetArtifactRequest implements IGetArtifactRequest { + /** Represents a PurgeArtifactsMetadata. */ + class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { /** - * Constructs a new GetArtifactRequest. + * Constructs a new PurgeArtifactsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata); - /** GetArtifactRequest name. */ - public name: string; + /** PurgeArtifactsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetArtifactRequest instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetArtifactRequest instance + * @returns PurgeArtifactsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetArtifactRequest): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetArtifactRequest + * @returns PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetArtifactRequest + * @returns PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Verifies a GetArtifactRequest message. + * Verifies a PurgeArtifactsMetadata message. * @param message 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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetArtifactRequest + * @returns PurgeArtifactsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @param message GetArtifactRequest + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * @param message PurgeArtifactsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListArtifactsRequest. */ - interface IListArtifactsRequest { + /** Properties of a CreateContextRequest. */ + interface ICreateContextRequest { - /** ListArtifactsRequest parent */ + /** CreateContextRequest parent */ parent?: (string|null); - /** ListArtifactsRequest pageSize */ - pageSize?: (number|null); - - /** ListArtifactsRequest pageToken */ - pageToken?: (string|null); + /** CreateContextRequest context */ + context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** ListArtifactsRequest filter */ - filter?: (string|null); + /** CreateContextRequest contextId */ + contextId?: (string|null); } - /** Represents a ListArtifactsRequest. */ - class ListArtifactsRequest implements IListArtifactsRequest { + /** Represents a CreateContextRequest. */ + class CreateContextRequest implements ICreateContextRequest { /** - * Constructs a new ListArtifactsRequest. + * Constructs a new CreateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest); - /** ListArtifactsRequest parent. */ + /** CreateContextRequest parent. */ public parent: string; - /** ListArtifactsRequest pageSize. */ - public pageSize: number; - - /** ListArtifactsRequest pageToken. */ - public pageToken: string; + /** CreateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** ListArtifactsRequest filter. */ - public filter: string; + /** CreateContextRequest contextId. */ + public contextId: string; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsRequest instance + * @returns CreateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsRequest): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsRequest + * @returns CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsRequest + * @returns CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Verifies a ListArtifactsRequest message. + * Verifies a CreateContextRequest message. * @param message 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 ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsRequest + * @returns CreateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateContextRequest; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. - * @param message ListArtifactsRequest + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * @param message CreateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListArtifactsResponse. */ - interface IListArtifactsResponse { - - /** ListArtifactsResponse artifacts */ - artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); + /** Properties of a GetContextRequest. */ + interface IGetContextRequest { - /** ListArtifactsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetContextRequest name */ + name?: (string|null); } - /** Represents a ListArtifactsResponse. */ - class ListArtifactsResponse implements IListArtifactsResponse { + /** Represents a GetContextRequest. */ + class GetContextRequest implements IGetContextRequest { /** - * Constructs a new ListArtifactsResponse. + * Constructs a new GetContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse); - - /** ListArtifactsResponse artifacts. */ - public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest); - /** ListArtifactsResponse nextPageToken. */ - public nextPageToken: string; + /** GetContextRequest name. */ + public name: string; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new GetContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsResponse instance + * @returns GetContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListArtifactsResponse): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsResponse + * @returns GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsResponse + * @returns GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Verifies a ListArtifactsResponse message. + * Verifies a GetContextRequest message. * @param message 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 ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsResponse + * @returns GetContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetContextRequest; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. - * @param message ListArtifactsResponse + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @param message GetContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this GetContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateArtifactRequest. */ - interface IUpdateArtifactRequest { + /** Properties of a ListContextsRequest. */ + interface IListContextsRequest { - /** UpdateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** ListContextsRequest parent */ + parent?: (string|null); - /** UpdateArtifactRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListContextsRequest pageSize */ + pageSize?: (number|null); - /** UpdateArtifactRequest allowMissing */ - allowMissing?: (boolean|null); + /** ListContextsRequest pageToken */ + pageToken?: (string|null); + + /** ListContextsRequest filter */ + filter?: (string|null); } - /** Represents an UpdateArtifactRequest. */ - class UpdateArtifactRequest implements IUpdateArtifactRequest { + /** Represents a ListContextsRequest. */ + class ListContextsRequest implements IListContextsRequest { /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new ListContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest); - /** UpdateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1beta1.IArtifact|null); + /** ListContextsRequest parent. */ + public parent: string; - /** UpdateArtifactRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListContextsRequest pageSize. */ + public pageSize: number; - /** UpdateArtifactRequest allowMissing. */ - public allowMissing: boolean; + /** ListContextsRequest pageToken. */ + public pageToken: string; + + /** ListContextsRequest filter. */ + public filter: string; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateArtifactRequest instance + * @returns ListContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateArtifactRequest + * @returns ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateArtifactRequest + * @returns ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a ListContextsRequest message. * @param message 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 UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateArtifactRequest + * @returns ListContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsRequest; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. - * @param message UpdateArtifactRequest + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * @param message ListContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this ListContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteArtifactRequest. */ - interface IDeleteArtifactRequest { + /** Properties of a ListContextsResponse. */ + interface IListContextsResponse { - /** DeleteArtifactRequest name */ - name?: (string|null); + /** ListContextsResponse contexts */ + contexts?: (google.cloud.aiplatform.v1beta1.IContext[]|null); - /** DeleteArtifactRequest etag */ - etag?: (string|null); + /** ListContextsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteArtifactRequest. */ - class DeleteArtifactRequest implements IDeleteArtifactRequest { + /** Represents a ListContextsResponse. */ + class ListContextsResponse implements IListContextsResponse { /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new ListContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse); - /** DeleteArtifactRequest name. */ - public name: string; + /** ListContextsResponse contexts. */ + public contexts: google.cloud.aiplatform.v1beta1.IContext[]; - /** DeleteArtifactRequest etag. */ - public etag: string; + /** ListContextsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * Creates a new ListContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteArtifactRequest instance + * @returns ListContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteArtifactRequest + * @returns ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteArtifactRequest + * @returns ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a ListContextsResponse message. * @param message 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 DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteArtifactRequest + * @returns ListContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsResponse; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. - * @param message DeleteArtifactRequest + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * @param message ListContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this ListContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeArtifactsRequest. */ - interface IPurgeArtifactsRequest { + /** Properties of an UpdateContextRequest. */ + interface IUpdateContextRequest { - /** PurgeArtifactsRequest parent */ - parent?: (string|null); + /** UpdateContextRequest context */ + context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** PurgeArtifactsRequest filter */ - filter?: (string|null); + /** UpdateContextRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** PurgeArtifactsRequest force */ - force?: (boolean|null); + /** UpdateContextRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a PurgeArtifactsRequest. */ - class PurgeArtifactsRequest implements IPurgeArtifactsRequest { + /** Represents an UpdateContextRequest. */ + class UpdateContextRequest implements IUpdateContextRequest { /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new UpdateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest); - /** PurgeArtifactsRequest parent. */ - public parent: string; + /** UpdateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1beta1.IContext|null); - /** PurgeArtifactsRequest filter. */ - public filter: string; + /** UpdateContextRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** PurgeArtifactsRequest force. */ - public force: boolean; + /** UpdateContextRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new UpdateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsRequest instance + * @returns UpdateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsRequest + * @returns UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsRequest + * @returns UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies an UpdateContextRequest message. * @param message 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 PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsRequest + * @returns UpdateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateContextRequest; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. - * @param message PurgeArtifactsRequest + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * @param message UpdateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this UpdateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeArtifactsResponse. */ - interface IPurgeArtifactsResponse { + /** Properties of a DeleteContextRequest. */ + interface IDeleteContextRequest { - /** PurgeArtifactsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** DeleteContextRequest name */ + name?: (string|null); - /** PurgeArtifactsResponse purgeSample */ - purgeSample?: (string[]|null); + /** DeleteContextRequest force */ + force?: (boolean|null); + + /** DeleteContextRequest etag */ + etag?: (string|null); } - /** Represents a PurgeArtifactsResponse. */ - class PurgeArtifactsResponse implements IPurgeArtifactsResponse { + /** Represents a DeleteContextRequest. */ + class DeleteContextRequest implements IDeleteContextRequest { /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new DeleteContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest); - /** PurgeArtifactsResponse purgeCount. */ - public purgeCount: (number|Long|string); + /** DeleteContextRequest name. */ + public name: string; - /** PurgeArtifactsResponse purgeSample. */ - public purgeSample: string[]; + /** DeleteContextRequest force. */ + public force: boolean; + + /** DeleteContextRequest etag. */ + public etag: string; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * Creates a new DeleteContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsResponse instance + * @returns DeleteContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsResponse + * @returns DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsResponse + * @returns DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies a DeleteContextRequest message. * @param message 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 PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsResponse + * @returns DeleteContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteContextRequest; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. - * @param message PurgeArtifactsResponse + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * @param message DeleteContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this DeleteContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeArtifactsMetadata. */ - interface IPurgeArtifactsMetadata { + /** Properties of a PurgeContextsRequest. */ + interface IPurgeContextsRequest { - /** PurgeArtifactsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PurgeContextsRequest parent */ + parent?: (string|null); + + /** PurgeContextsRequest filter */ + filter?: (string|null); + + /** PurgeContextsRequest force */ + force?: (boolean|null); } - /** Represents a PurgeArtifactsMetadata. */ - class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { + /** Represents a PurgeContextsRequest. */ + class PurgeContextsRequest implements IPurgeContextsRequest { /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new PurgeContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest); - /** PurgeArtifactsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PurgeContextsRequest parent. */ + public parent: string; + + /** PurgeContextsRequest filter. */ + public filter: string; + + /** PurgeContextsRequest force. */ + public force: boolean; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * Creates a new PurgeContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeArtifactsMetadata instance + * @returns PurgeContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeArtifactsMetadata + * @returns PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsMetadata + * @returns PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a PurgeContextsRequest message. * @param message 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 PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeArtifactsMetadata + * @returns PurgeContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. - * @param message PurgeArtifactsMetadata + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * @param message PurgeContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this PurgeContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateContextRequest. */ - interface ICreateContextRequest { - - /** CreateContextRequest parent */ - parent?: (string|null); + /** Properties of a PurgeContextsResponse. */ + interface IPurgeContextsResponse { - /** CreateContextRequest context */ - context?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** PurgeContextsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** CreateContextRequest contextId */ - contextId?: (string|null); + /** PurgeContextsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a CreateContextRequest. */ - class CreateContextRequest implements ICreateContextRequest { + /** Represents a PurgeContextsResponse. */ + class PurgeContextsResponse implements IPurgeContextsResponse { /** - * Constructs a new CreateContextRequest. + * Constructs a new PurgeContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest); - - /** CreateContextRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse); - /** CreateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** PurgeContextsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** CreateContextRequest contextId. */ - public contextId: string; + /** PurgeContextsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateContextRequest instance + * @returns PurgeContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateContextRequest): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateContextRequest + * @returns PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateContextRequest + * @returns PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Verifies a CreateContextRequest message. + * Verifies a PurgeContextsResponse message. * @param message 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 CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateContextRequest + * @returns PurgeContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. - * @param message CreateContextRequest + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * @param message PurgeContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateContextRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetContextRequest. */ - interface IGetContextRequest { + /** Properties of a PurgeContextsMetadata. */ + interface IPurgeContextsMetadata { - /** GetContextRequest name */ - name?: (string|null); + /** PurgeContextsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetContextRequest. */ - class GetContextRequest implements IGetContextRequest { + /** Represents a PurgeContextsMetadata. */ + class PurgeContextsMetadata implements IPurgeContextsMetadata { /** - * Constructs a new GetContextRequest. + * Constructs a new PurgeContextsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata); - /** GetContextRequest name. */ - public name: string; + /** PurgeContextsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetContextRequest instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetContextRequest instance + * @returns PurgeContextsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetContextRequest): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetContextRequest + * @returns PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetContextRequest + * @returns PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Verifies a GetContextRequest message. + * Verifies a PurgeContextsMetadata message. * @param message 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 GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetContextRequest + * @returns PurgeContextsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. - * @param message GetContextRequest + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * @param message PurgeContextsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetContextRequest to JSON. + * Converts this PurgeContextsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContextsRequest. */ - interface IListContextsRequest { - - /** ListContextsRequest parent */ - parent?: (string|null); + /** Properties of an AddContextArtifactsAndExecutionsRequest. */ + interface IAddContextArtifactsAndExecutionsRequest { - /** ListContextsRequest pageSize */ - pageSize?: (number|null); + /** AddContextArtifactsAndExecutionsRequest context */ + context?: (string|null); - /** ListContextsRequest pageToken */ - pageToken?: (string|null); + /** AddContextArtifactsAndExecutionsRequest artifacts */ + artifacts?: (string[]|null); - /** ListContextsRequest filter */ - filter?: (string|null); + /** AddContextArtifactsAndExecutionsRequest executions */ + executions?: (string[]|null); } - /** Represents a ListContextsRequest. */ - class ListContextsRequest implements IListContextsRequest { + /** Represents an AddContextArtifactsAndExecutionsRequest. */ + class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { /** - * Constructs a new ListContextsRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest); - - /** ListContextsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest); - /** ListContextsRequest pageSize. */ - public pageSize: number; + /** AddContextArtifactsAndExecutionsRequest context. */ + public context: string; - /** ListContextsRequest pageToken. */ - public pageToken: string; + /** AddContextArtifactsAndExecutionsRequest artifacts. */ + public artifacts: string[]; - /** ListContextsRequest filter. */ - public filter: string; + /** AddContextArtifactsAndExecutionsRequest executions. */ + public executions: string[]; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListContextsRequest instance + * @returns AddContextArtifactsAndExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsRequest): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContextsRequest + * @returns AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContextsRequest + * @returns AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Verifies a ListContextsRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @param message 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 ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContextsRequest + * @returns AddContextArtifactsAndExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. - * @param message ListContextsRequest + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContextsRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContextsResponse. */ - interface IListContextsResponse { - - /** ListContextsResponse contexts */ - contexts?: (google.cloud.aiplatform.v1beta1.IContext[]|null); - - /** ListContextsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of an AddContextArtifactsAndExecutionsResponse. */ + interface IAddContextArtifactsAndExecutionsResponse { } - /** Represents a ListContextsResponse. */ - class ListContextsResponse implements IListContextsResponse { + /** Represents an AddContextArtifactsAndExecutionsResponse. */ + class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { /** - * Constructs a new ListContextsResponse. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse); - - /** ListContextsResponse contexts. */ - public contexts: google.cloud.aiplatform.v1beta1.IContext[]; - - /** ListContextsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse); /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListContextsResponse instance + * @returns AddContextArtifactsAndExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListContextsResponse): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContextsResponse + * @returns AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContextsResponse + * @returns AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Verifies a ListContextsResponse message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @param message 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 ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContextsResponse + * @returns AddContextArtifactsAndExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. - * @param message ListContextsResponse + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContextsResponse to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateContextRequest. */ - interface IUpdateContextRequest { - - /** UpdateContextRequest context */ - context?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** Properties of an AddContextChildrenRequest. */ + interface IAddContextChildrenRequest { - /** UpdateContextRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** AddContextChildrenRequest context */ + context?: (string|null); - /** UpdateContextRequest allowMissing */ - allowMissing?: (boolean|null); + /** AddContextChildrenRequest childContexts */ + childContexts?: (string[]|null); } - /** Represents an UpdateContextRequest. */ - class UpdateContextRequest implements IUpdateContextRequest { + /** Represents an AddContextChildrenRequest. */ + class AddContextChildrenRequest implements IAddContextChildrenRequest { /** - * Constructs a new UpdateContextRequest. + * Constructs a new AddContextChildrenRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest); - - /** UpdateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1beta1.IContext|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest); - /** UpdateContextRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** AddContextChildrenRequest context. */ + public context: string; - /** UpdateContextRequest allowMissing. */ - public allowMissing: boolean; + /** AddContextChildrenRequest childContexts. */ + public childContexts: string[]; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateContextRequest instance + * @returns AddContextChildrenRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateContextRequest): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateContextRequest + * @returns AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateContextRequest + * @returns AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Verifies an UpdateContextRequest message. + * Verifies an AddContextChildrenRequest message. * @param message 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 UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateContextRequest + * @returns AddContextChildrenRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. - * @param message UpdateContextRequest + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * @param message AddContextChildrenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateContextRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteContextRequest. */ - interface IDeleteContextRequest { - - /** DeleteContextRequest name */ - name?: (string|null); - - /** DeleteContextRequest force */ - force?: (boolean|null); - - /** DeleteContextRequest etag */ - etag?: (string|null); + /** Properties of an AddContextChildrenResponse. */ + interface IAddContextChildrenResponse { } - /** Represents a DeleteContextRequest. */ - class DeleteContextRequest implements IDeleteContextRequest { + /** Represents an AddContextChildrenResponse. */ + class AddContextChildrenResponse implements IAddContextChildrenResponse { /** - * Constructs a new DeleteContextRequest. + * Constructs a new AddContextChildrenResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest); - - /** DeleteContextRequest name. */ - public name: string; - - /** DeleteContextRequest force. */ - public force: boolean; - - /** DeleteContextRequest etag. */ - public etag: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse); /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteContextRequest instance + * @returns AddContextChildrenResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteContextRequest): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteContextRequest + * @returns AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteContextRequest + * @returns AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Verifies a DeleteContextRequest message. + * Verifies an AddContextChildrenResponse message. * @param message 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 DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteContextRequest + * @returns AddContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteContextRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. - * @param message DeleteContextRequest + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * @param message AddContextChildrenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this AddContextChildrenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeContextsRequest. */ - interface IPurgeContextsRequest { - - /** PurgeContextsRequest parent */ - parent?: (string|null); - - /** PurgeContextsRequest filter */ - filter?: (string|null); + /** Properties of a QueryContextLineageSubgraphRequest. */ + interface IQueryContextLineageSubgraphRequest { - /** PurgeContextsRequest force */ - force?: (boolean|null); + /** QueryContextLineageSubgraphRequest context */ + context?: (string|null); } - /** Represents a PurgeContextsRequest. */ - class PurgeContextsRequest implements IPurgeContextsRequest { + /** Represents a QueryContextLineageSubgraphRequest. */ + class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { /** - * Constructs a new PurgeContextsRequest. + * Constructs a new QueryContextLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest); - - /** PurgeContextsRequest parent. */ - public parent: string; - - /** PurgeContextsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest); - /** PurgeContextsRequest force. */ - public force: boolean; + /** QueryContextLineageSubgraphRequest context. */ + public context: string; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsRequest instance + * @returns QueryContextLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsRequest + * @returns QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsRequest + * @returns QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Verifies a PurgeContextsRequest message. + * Verifies a QueryContextLineageSubgraphRequest message. * @param message 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 PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsRequest + * @returns QueryContextLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. - * @param message PurgeContextsRequest + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryContextLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeContextsResponse. */ - interface IPurgeContextsResponse { + /** Properties of a CreateExecutionRequest. */ + interface ICreateExecutionRequest { - /** PurgeContextsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** CreateExecutionRequest parent */ + parent?: (string|null); - /** PurgeContextsResponse purgeSample */ - purgeSample?: (string[]|null); + /** CreateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** CreateExecutionRequest executionId */ + executionId?: (string|null); } - /** Represents a PurgeContextsResponse. */ - class PurgeContextsResponse implements IPurgeContextsResponse { + /** Represents a CreateExecutionRequest. */ + class CreateExecutionRequest implements ICreateExecutionRequest { /** - * Constructs a new PurgeContextsResponse. + * Constructs a new CreateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest); - /** PurgeContextsResponse purgeCount. */ - public purgeCount: (number|Long|string); + /** CreateExecutionRequest parent. */ + public parent: string; - /** PurgeContextsResponse purgeSample. */ - public purgeSample: string[]; + /** CreateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** CreateExecutionRequest executionId. */ + public executionId: string; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new CreateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsResponse instance + * @returns CreateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsResponse + * @returns CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsResponse + * @returns CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Verifies a PurgeContextsResponse message. + * Verifies a CreateExecutionRequest message. * @param message 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 PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsResponse + * @returns CreateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. - * @param message PurgeContextsResponse + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * @param message CreateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this CreateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeContextsMetadata. */ - interface IPurgeContextsMetadata { + /** Properties of a GetExecutionRequest. */ + interface IGetExecutionRequest { - /** PurgeContextsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetExecutionRequest name */ + name?: (string|null); } - /** Represents a PurgeContextsMetadata. */ - class PurgeContextsMetadata implements IPurgeContextsMetadata { + /** Represents a GetExecutionRequest. */ + class GetExecutionRequest implements IGetExecutionRequest { /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new GetExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest); - /** PurgeContextsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetExecutionRequest name. */ + public name: string; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsMetadata instance + * @returns GetExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsMetadata + * @returns GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsMetadata + * @returns GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a GetExecutionRequest message. * @param message 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 PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsMetadata + * @returns GetExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetExecutionRequest; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. - * @param message PurgeContextsMetadata + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * @param message GetExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this GetExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddContextArtifactsAndExecutionsRequest. */ - interface IAddContextArtifactsAndExecutionsRequest { + /** Properties of a ListExecutionsRequest. */ + interface IListExecutionsRequest { - /** AddContextArtifactsAndExecutionsRequest context */ - context?: (string|null); + /** ListExecutionsRequest parent */ + parent?: (string|null); - /** AddContextArtifactsAndExecutionsRequest artifacts */ - artifacts?: (string[]|null); + /** ListExecutionsRequest pageSize */ + pageSize?: (number|null); - /** AddContextArtifactsAndExecutionsRequest executions */ - executions?: (string[]|null); + /** ListExecutionsRequest pageToken */ + pageToken?: (string|null); + + /** ListExecutionsRequest filter */ + filter?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsRequest. */ - class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { + /** Represents a ListExecutionsRequest. */ + class ListExecutionsRequest implements IListExecutionsRequest { /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new ListExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest); - /** AddContextArtifactsAndExecutionsRequest context. */ - public context: string; + /** ListExecutionsRequest parent. */ + public parent: string; - /** AddContextArtifactsAndExecutionsRequest artifacts. */ - public artifacts: string[]; + /** ListExecutionsRequest pageSize. */ + public pageSize: number; - /** AddContextArtifactsAndExecutionsRequest executions. */ - public executions: string[]; + /** ListExecutionsRequest pageToken. */ + public pageToken: string; + + /** ListExecutionsRequest filter. */ + public filter: string; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsRequest instance + * @returns ListExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a ListExecutionsRequest message. * @param message 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 AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsRequest + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * @param message ListExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this ListExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddContextArtifactsAndExecutionsResponse. */ - interface IAddContextArtifactsAndExecutionsResponse { + /** Properties of a ListExecutionsResponse. */ + interface IListExecutionsResponse { + + /** ListExecutionsResponse executions */ + executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); + + /** ListExecutionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsResponse. */ - class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { + /** Represents a ListExecutionsResponse. */ + class ListExecutionsResponse implements IListExecutionsResponse { /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new ListExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse); + + /** ListExecutionsResponse executions. */ + public executions: google.cloud.aiplatform.v1beta1.IExecution[]; + + /** ListExecutionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsResponse instance + * @returns ListExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a ListExecutionsResponse message. * @param message 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 AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsResponse + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * @param message ListExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this ListExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddContextChildrenRequest. */ - interface IAddContextChildrenRequest { + /** Properties of an UpdateExecutionRequest. */ + interface IUpdateExecutionRequest { - /** AddContextChildrenRequest context */ - context?: (string|null); + /** UpdateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** AddContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** UpdateExecutionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateExecutionRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents an AddContextChildrenRequest. */ - class AddContextChildrenRequest implements IAddContextChildrenRequest { + /** Represents an UpdateExecutionRequest. */ + class UpdateExecutionRequest implements IUpdateExecutionRequest { /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new UpdateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest); - /** AddContextChildrenRequest context. */ - public context: string; + /** UpdateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - /** AddContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** UpdateExecutionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateExecutionRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenRequest instance + * @returns UpdateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenRequest + * @returns UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenRequest + * @returns UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Verifies an AddContextChildrenRequest message. + * Verifies an UpdateExecutionRequest message. * @param message 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 AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenRequest + * @returns UpdateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. - * @param message AddContextChildrenRequest + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * @param message UpdateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddContextChildrenResponse. */ - interface IAddContextChildrenResponse { + /** Properties of a DeleteExecutionRequest. */ + interface IDeleteExecutionRequest { + + /** DeleteExecutionRequest name */ + name?: (string|null); + + /** DeleteExecutionRequest etag */ + etag?: (string|null); } - /** Represents an AddContextChildrenResponse. */ - class AddContextChildrenResponse implements IAddContextChildrenResponse { + /** Represents a DeleteExecutionRequest. */ + class DeleteExecutionRequest implements IDeleteExecutionRequest { /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new DeleteExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest); + + /** DeleteExecutionRequest name. */ + public name: string; + + /** DeleteExecutionRequest etag. */ + public etag: string; /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * Creates a new DeleteExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenResponse instance + * @returns DeleteExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenResponse + * @returns DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenResponse + * @returns DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a DeleteExecutionRequest message. * @param message 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 AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenResponse + * @returns DeleteExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. - * @param message AddContextChildrenResponse + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * @param message DeleteExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this DeleteExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryContextLineageSubgraphRequest. */ - interface IQueryContextLineageSubgraphRequest { + /** Properties of a PurgeExecutionsRequest. */ + interface IPurgeExecutionsRequest { - /** QueryContextLineageSubgraphRequest context */ - context?: (string|null); + /** PurgeExecutionsRequest parent */ + parent?: (string|null); + + /** PurgeExecutionsRequest filter */ + filter?: (string|null); + + /** PurgeExecutionsRequest force */ + force?: (boolean|null); } - /** Represents a QueryContextLineageSubgraphRequest. */ - class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { + /** Represents a PurgeExecutionsRequest. */ + class PurgeExecutionsRequest implements IPurgeExecutionsRequest { /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new PurgeExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest); - /** QueryContextLineageSubgraphRequest context. */ - public context: string; + /** PurgeExecutionsRequest parent. */ + public parent: string; + + /** PurgeExecutionsRequest filter. */ + public filter: string; + + /** PurgeExecutionsRequest force. */ + public force: boolean; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryContextLineageSubgraphRequest instance + * @returns PurgeExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryContextLineageSubgraphRequest + * @returns PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryContextLineageSubgraphRequest + * @returns PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a PurgeExecutionsRequest message. * @param message 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 QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryContextLineageSubgraphRequest + * @returns PurgeExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryContextLineageSubgraphRequest + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * @param message PurgeExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateExecutionRequest. */ - interface ICreateExecutionRequest { - - /** CreateExecutionRequest parent */ - parent?: (string|null); + /** Properties of a PurgeExecutionsResponse. */ + interface IPurgeExecutionsResponse { - /** CreateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** PurgeExecutionsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** CreateExecutionRequest executionId */ - executionId?: (string|null); + /** PurgeExecutionsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a CreateExecutionRequest. */ - class CreateExecutionRequest implements ICreateExecutionRequest { + /** Represents a PurgeExecutionsResponse. */ + class PurgeExecutionsResponse implements IPurgeExecutionsResponse { /** - * Constructs a new CreateExecutionRequest. + * Constructs a new PurgeExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest); - - /** CreateExecutionRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse); - /** CreateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** PurgeExecutionsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** CreateExecutionRequest executionId. */ - public executionId: string; + /** PurgeExecutionsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExecutionRequest instance + * @returns PurgeExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExecutionRequest + * @returns PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExecutionRequest + * @returns PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Verifies a CreateExecutionRequest message. + * Verifies a PurgeExecutionsResponse message. * @param message 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 CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExecutionRequest + * @returns PurgeExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. - * @param message CreateExecutionRequest + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * @param message PurgeExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetExecutionRequest. */ - interface IGetExecutionRequest { + /** Properties of a PurgeExecutionsMetadata. */ + interface IPurgeExecutionsMetadata { - /** GetExecutionRequest name */ - name?: (string|null); + /** PurgeExecutionsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetExecutionRequest. */ - class GetExecutionRequest implements IGetExecutionRequest { + /** Represents a PurgeExecutionsMetadata. */ + class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { /** - * Constructs a new GetExecutionRequest. + * Constructs a new PurgeExecutionsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata); - /** GetExecutionRequest name. */ - public name: string; + /** PurgeExecutionsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetExecutionRequest instance + * @returns PurgeExecutionsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetExecutionRequest): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExecutionRequest + * @returns PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExecutionRequest + * @returns PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Verifies a GetExecutionRequest message. + * Verifies a PurgeExecutionsMetadata message. * @param message 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 GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExecutionRequest + * @returns PurgeExecutionsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. - * @param message GetExecutionRequest + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * @param message PurgeExecutionsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExecutionsRequest. */ - interface IListExecutionsRequest { - - /** ListExecutionsRequest parent */ - parent?: (string|null); - - /** ListExecutionsRequest pageSize */ - pageSize?: (number|null); + /** Properties of an AddExecutionEventsRequest. */ + interface IAddExecutionEventsRequest { - /** ListExecutionsRequest pageToken */ - pageToken?: (string|null); + /** AddExecutionEventsRequest execution */ + execution?: (string|null); - /** ListExecutionsRequest filter */ - filter?: (string|null); + /** AddExecutionEventsRequest events */ + events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); } - /** Represents a ListExecutionsRequest. */ - class ListExecutionsRequest implements IListExecutionsRequest { + /** Represents an AddExecutionEventsRequest. */ + class AddExecutionEventsRequest implements IAddExecutionEventsRequest { /** - * Constructs a new ListExecutionsRequest. + * Constructs a new AddExecutionEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest); - - /** ListExecutionsRequest parent. */ - public parent: string; - - /** ListExecutionsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest); - /** ListExecutionsRequest pageToken. */ - public pageToken: string; + /** AddExecutionEventsRequest execution. */ + public execution: string; - /** ListExecutionsRequest filter. */ - public filter: string; + /** AddExecutionEventsRequest events. */ + public events: google.cloud.aiplatform.v1beta1.IEvent[]; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsRequest instance + * @returns AddExecutionEventsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsRequest): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsRequest + * @returns AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsRequest + * @returns AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Verifies a ListExecutionsRequest message. + * Verifies an AddExecutionEventsRequest message. * @param message 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 ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsRequest + * @returns AddExecutionEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. - * @param message ListExecutionsRequest + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @param message AddExecutionEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExecutionsResponse. */ - interface IListExecutionsResponse { - - /** ListExecutionsResponse executions */ - executions?: (google.cloud.aiplatform.v1beta1.IExecution[]|null); - - /** ListExecutionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of an AddExecutionEventsResponse. */ + interface IAddExecutionEventsResponse { } - /** Represents a ListExecutionsResponse. */ - class ListExecutionsResponse implements IListExecutionsResponse { + /** Represents an AddExecutionEventsResponse. */ + class AddExecutionEventsResponse implements IAddExecutionEventsResponse { /** - * Constructs a new ListExecutionsResponse. + * Constructs a new AddExecutionEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse); - - /** ListExecutionsResponse executions. */ - public executions: google.cloud.aiplatform.v1beta1.IExecution[]; - - /** ListExecutionsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse); /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsResponse instance + * @returns AddExecutionEventsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListExecutionsResponse): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsResponse + * @returns AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsResponse + * @returns AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Verifies a ListExecutionsResponse message. + * Verifies an AddExecutionEventsResponse message. * @param message 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 ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsResponse + * @returns AddExecutionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. - * @param message ListExecutionsResponse + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @param message AddExecutionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateExecutionRequest. */ - interface IUpdateExecutionRequest { - - /** UpdateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - - /** UpdateExecutionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a QueryExecutionInputsAndOutputsRequest. */ + interface IQueryExecutionInputsAndOutputsRequest { - /** UpdateExecutionRequest allowMissing */ - allowMissing?: (boolean|null); + /** QueryExecutionInputsAndOutputsRequest execution */ + execution?: (string|null); } - /** Represents an UpdateExecutionRequest. */ - class UpdateExecutionRequest implements IUpdateExecutionRequest { + /** Represents a QueryExecutionInputsAndOutputsRequest. */ + class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest); - - /** UpdateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - - /** UpdateExecutionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest); - /** UpdateExecutionRequest allowMissing. */ - public allowMissing: boolean; + /** QueryExecutionInputsAndOutputsRequest execution. */ + public execution: string; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExecutionRequest instance + * @returns QueryExecutionInputsAndOutputsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExecutionRequest + * @returns QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExecutionRequest + * @returns QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @param message 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 UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExecutionRequest + * @returns QueryExecutionInputsAndOutputsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. - * @param message UpdateExecutionRequest + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * @param message QueryExecutionInputsAndOutputsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExecutionRequest. */ - interface IDeleteExecutionRequest { + /** Properties of a CreateMetadataSchemaRequest. */ + interface ICreateMetadataSchemaRequest { - /** DeleteExecutionRequest name */ - name?: (string|null); + /** CreateMetadataSchemaRequest parent */ + parent?: (string|null); - /** DeleteExecutionRequest etag */ - etag?: (string|null); + /** CreateMetadataSchemaRequest metadataSchema */ + metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + + /** CreateMetadataSchemaRequest metadataSchemaId */ + metadataSchemaId?: (string|null); } - /** Represents a DeleteExecutionRequest. */ - class DeleteExecutionRequest implements IDeleteExecutionRequest { + /** Represents a CreateMetadataSchemaRequest. */ + class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new CreateMetadataSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest); - /** DeleteExecutionRequest name. */ - public name: string; + /** CreateMetadataSchemaRequest parent. */ + public parent: string; - /** DeleteExecutionRequest etag. */ - public etag: string; + /** CreateMetadataSchemaRequest metadataSchema. */ + public metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + + /** CreateMetadataSchemaRequest metadataSchemaId. */ + public metadataSchemaId: string; /** - * Creates a new DeleteExecutionRequest instance using the specified properties. + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteExecutionRequest instance + * @returns CreateMetadataSchemaRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteExecutionRequest + * @returns CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteExecutionRequest + * @returns CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Verifies a DeleteExecutionRequest message. + * Verifies a CreateMetadataSchemaRequest message. * @param message 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 DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteExecutionRequest + * @returns CreateMetadataSchemaRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @param message DeleteExecutionRequest + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message CreateMetadataSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExecutionRequest to JSON. + * Converts this CreateMetadataSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeExecutionsRequest. */ - interface IPurgeExecutionsRequest { - - /** PurgeExecutionsRequest parent */ - parent?: (string|null); - - /** PurgeExecutionsRequest filter */ - filter?: (string|null); + /** Properties of a GetMetadataSchemaRequest. */ + interface IGetMetadataSchemaRequest { - /** PurgeExecutionsRequest force */ - force?: (boolean|null); + /** GetMetadataSchemaRequest name */ + name?: (string|null); } - /** Represents a PurgeExecutionsRequest. */ - class PurgeExecutionsRequest implements IPurgeExecutionsRequest { + /** Represents a GetMetadataSchemaRequest. */ + class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { /** - * Constructs a new PurgeExecutionsRequest. + * Constructs a new GetMetadataSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest); - - /** PurgeExecutionsRequest parent. */ - public parent: string; - - /** PurgeExecutionsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest); - /** PurgeExecutionsRequest force. */ - public force: boolean; + /** GetMetadataSchemaRequest name. */ + public name: string; /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new GetMetadataSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsRequest instance + * @returns GetMetadataSchemaRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsRequest + * @returns GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsRequest + * @returns GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a GetMetadataSchemaRequest message. * @param message 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 PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsRequest + * @returns GetMetadataSchemaRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. - * @param message PurgeExecutionsRequest + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message GetMetadataSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this GetMetadataSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeExecutionsResponse. */ - interface IPurgeExecutionsResponse { + /** Properties of a ListMetadataSchemasRequest. */ + interface IListMetadataSchemasRequest { - /** PurgeExecutionsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** ListMetadataSchemasRequest parent */ + parent?: (string|null); - /** PurgeExecutionsResponse purgeSample */ - purgeSample?: (string[]|null); + /** ListMetadataSchemasRequest pageSize */ + pageSize?: (number|null); + + /** ListMetadataSchemasRequest pageToken */ + pageToken?: (string|null); + + /** ListMetadataSchemasRequest filter */ + filter?: (string|null); } - /** Represents a PurgeExecutionsResponse. */ - class PurgeExecutionsResponse implements IPurgeExecutionsResponse { + /** Represents a ListMetadataSchemasRequest. */ + class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { /** - * Constructs a new PurgeExecutionsResponse. + * Constructs a new ListMetadataSchemasRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest); - /** PurgeExecutionsResponse purgeCount. */ - public purgeCount: (number|Long|string); + /** ListMetadataSchemasRequest parent. */ + public parent: string; - /** PurgeExecutionsResponse purgeSample. */ - public purgeSample: string[]; + /** ListMetadataSchemasRequest pageSize. */ + public pageSize: number; + + /** ListMetadataSchemasRequest pageToken. */ + public pageToken: string; + + /** ListMetadataSchemasRequest filter. */ + public filter: string; /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. + * Creates a new ListMetadataSchemasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsResponse instance + * @returns ListMetadataSchemasRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsResponse + * @returns ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsResponse + * @returns ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Verifies a PurgeExecutionsResponse message. + * Verifies a ListMetadataSchemasRequest message. * @param message 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 PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsResponse + * @returns ListMetadataSchemasRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @param message PurgeExecutionsResponse + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * @param message ListMetadataSchemasRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsResponse to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PurgeExecutionsMetadata. */ - interface IPurgeExecutionsMetadata { + /** Properties of a ListMetadataSchemasResponse. */ + interface IListMetadataSchemasResponse { - /** PurgeExecutionsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListMetadataSchemasResponse metadataSchemas */ + metadataSchemas?: (google.cloud.aiplatform.v1beta1.IMetadataSchema[]|null); + + /** ListMetadataSchemasResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PurgeExecutionsMetadata. */ - class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { + /** Represents a ListMetadataSchemasResponse. */ + class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new ListMetadataSchemasResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse); - /** PurgeExecutionsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListMetadataSchemasResponse metadataSchemas. */ + public metadataSchemas: google.cloud.aiplatform.v1beta1.IMetadataSchema[]; + + /** ListMetadataSchemasResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsMetadata instance + * @returns ListMetadataSchemasResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsMetadata + * @returns ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsMetadata + * @returns ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Verifies a PurgeExecutionsMetadata message. + * Verifies a ListMetadataSchemasResponse message. * @param message 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 PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsMetadata + * @returns ListMetadataSchemasResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @param message PurgeExecutionsMetadata + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * @param message ListMetadataSchemasResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsMetadata to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddExecutionEventsRequest. */ - interface IAddExecutionEventsRequest { + /** Properties of a QueryArtifactLineageSubgraphRequest. */ + interface IQueryArtifactLineageSubgraphRequest { - /** AddExecutionEventsRequest execution */ - execution?: (string|null); + /** QueryArtifactLineageSubgraphRequest artifact */ + artifact?: (string|null); - /** AddExecutionEventsRequest events */ - events?: (google.cloud.aiplatform.v1beta1.IEvent[]|null); + /** QueryArtifactLineageSubgraphRequest maxHops */ + maxHops?: (number|null); + + /** QueryArtifactLineageSubgraphRequest filter */ + filter?: (string|null); } - /** Represents an AddExecutionEventsRequest. */ - class AddExecutionEventsRequest implements IAddExecutionEventsRequest { + /** Represents a QueryArtifactLineageSubgraphRequest. */ + class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest); - /** AddExecutionEventsRequest execution. */ - public execution: string; + /** QueryArtifactLineageSubgraphRequest artifact. */ + public artifact: string; - /** AddExecutionEventsRequest events. */ - public events: google.cloud.aiplatform.v1beta1.IEvent[]; + /** QueryArtifactLineageSubgraphRequest maxHops. */ + public maxHops: number; + + /** QueryArtifactLineageSubgraphRequest filter. */ + public filter: string; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsRequest instance + * @returns QueryArtifactLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsRequest + * @returns QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsRequest + * @returns QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @param message 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 AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsRequest + * @returns QueryArtifactLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. - * @param message AddExecutionEventsRequest + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryArtifactLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AddExecutionEventsResponse. */ - interface IAddExecutionEventsResponse { + /** Properties of a MetadataStore. */ + interface IMetadataStore { + + /** MetadataStore name */ + name?: (string|null); + + /** MetadataStore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** MetadataStore description */ + description?: (string|null); + + /** MetadataStore state */ + state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); } - /** Represents an AddExecutionEventsResponse. */ - class AddExecutionEventsResponse implements IAddExecutionEventsResponse { + /** Represents a MetadataStore. */ + class MetadataStore implements IMetadataStore { /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new MetadataStore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore); + + /** MetadataStore name. */ + public name: string; + + /** MetadataStore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** MetadataStore description. */ + public description: string; + + /** MetadataStore state. */ + public state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsResponse instance + * @returns MetadataStore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsResponse + * @returns MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsResponse + * @returns MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies a MetadataStore message. * @param message 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 AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsResponse + * @returns MetadataStore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. - * @param message AddExecutionEventsResponse + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * @param message MetadataStore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsResponse to JSON. + * Converts this MetadataStore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryExecutionInputsAndOutputsRequest. */ - interface IQueryExecutionInputsAndOutputsRequest { + namespace MetadataStore { - /** QueryExecutionInputsAndOutputsRequest execution */ - execution?: (string|null); + /** Properties of a MetadataStoreState. */ + interface IMetadataStoreState { + + /** MetadataStoreState diskUtilizationBytes */ + diskUtilizationBytes?: (number|Long|string|null); + } + + /** Represents a MetadataStoreState. */ + class MetadataStoreState implements IMetadataStoreState { + + /** + * Constructs a new MetadataStoreState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState); + + /** MetadataStoreState diskUtilizationBytes. */ + public diskUtilizationBytes: (number|Long|string); + + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @param [properties] Properties to set + * @returns MetadataStoreState instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Verifies a MetadataStoreState message. + * @param message 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 MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetadataStoreState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; + + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @param message MetadataStoreState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetadataStoreState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a QueryExecutionInputsAndOutputsRequest. */ - class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { + /** Properties of a MigratableResource. */ + interface IMigratableResource { + + /** MigratableResource mlEngineModelVersion */ + mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel */ + automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset */ + automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset */ + dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime */ + lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a MigratableResource. */ + class MigratableResource implements IMigratableResource { /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new MigratableResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource); - /** QueryExecutionInputsAndOutputsRequest execution. */ - public execution: string; + /** MigratableResource mlEngineModelVersion. */ + public mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel. */ + public automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset. */ + public automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset. */ + public dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime. */ + public lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource resource. */ + public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * Creates a new MigratableResource instance using the specified properties. * @param [properties] Properties to set - * @returns QueryExecutionInputsAndOutputsRequest instance + * @returns MigratableResource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryExecutionInputsAndOutputsRequest + * @returns MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryExecutionInputsAndOutputsRequest + * @returns MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a MigratableResource message. * @param message 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 QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryExecutionInputsAndOutputsRequest + * @returns MigratableResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. - * @param message QueryExecutionInputsAndOutputsRequest + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @param message MigratableResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this MigratableResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateMetadataSchemaRequest. */ - interface ICreateMetadataSchemaRequest { + namespace MigratableResource { + + /** Properties of a MlEngineModelVersion. */ + interface IMlEngineModelVersion { + + /** MlEngineModelVersion endpoint */ + endpoint?: (string|null); + + /** MlEngineModelVersion version */ + version?: (string|null); + } + + /** Represents a MlEngineModelVersion. */ + class MlEngineModelVersion implements IMlEngineModelVersion { + + /** + * Constructs a new MlEngineModelVersion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion); + + /** MlEngineModelVersion endpoint. */ + public endpoint: string; + + /** MlEngineModelVersion version. */ + public version: string; + + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @param [properties] Properties to set + * @returns MlEngineModelVersion instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + + /** + * Verifies a MlEngineModelVersion message. + * @param message 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 MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MlEngineModelVersion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @param message MlEngineModelVersion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MlEngineModelVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutomlModel. */ + interface IAutomlModel { + + /** AutomlModel model */ + model?: (string|null); + + /** AutomlModel modelDisplayName */ + modelDisplayName?: (string|null); + } + + /** Represents an AutomlModel. */ + class AutomlModel implements IAutomlModel { + + /** + * Constructs a new AutomlModel. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel); + + /** AutomlModel model. */ + public model: string; + + /** AutomlModel modelDisplayName. */ + public modelDisplayName: string; + + /** + * Creates a new AutomlModel instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlModel instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Verifies an AutomlModel message. + * @param message 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 AutomlModel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlModel + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @param message AutomlModel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutomlModel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutomlDataset. */ + interface IAutomlDataset { + + /** AutomlDataset dataset */ + dataset?: (string|null); + + /** AutomlDataset datasetDisplayName */ + datasetDisplayName?: (string|null); + } + + /** Represents an AutomlDataset. */ + class AutomlDataset implements IAutomlDataset { + + /** + * Constructs a new AutomlDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset); + + /** AutomlDataset dataset. */ + public dataset: string; + + /** AutomlDataset datasetDisplayName. */ + public datasetDisplayName: string; + + /** + * Creates a new AutomlDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + + /** + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateMetadataSchemaRequest parent */ - parent?: (string|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; - /** CreateMetadataSchemaRequest metadataSchema */ - metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; - /** CreateMetadataSchemaRequest metadataSchemaId */ - metadataSchemaId?: (string|null); - } + /** + * Verifies an AutomlDataset message. + * @param message 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 CreateMetadataSchemaRequest. */ - class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; - /** - * Constructs a new CreateMetadataSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest); + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @param message AutomlDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateMetadataSchemaRequest parent. */ - public parent: string; + /** + * Converts this AutomlDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CreateMetadataSchemaRequest metadataSchema. */ - public metadataSchema?: (google.cloud.aiplatform.v1beta1.IMetadataSchema|null); + /** Properties of a DataLabelingDataset. */ + interface IDataLabelingDataset { - /** CreateMetadataSchemaRequest metadataSchemaId. */ - public metadataSchemaId: string; + /** DataLabelingDataset dataset */ + dataset?: (string|null); - /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateMetadataSchemaRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; + /** DataLabelingDataset datasetDisplayName */ + datasetDisplayName?: (string|null); - /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataLabelingDataset dataLabelingAnnotatedDatasets */ + dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + } - /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a DataLabelingDataset. */ + class DataLabelingDataset implements IDataLabelingDataset { - /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; + /** + * Constructs a new DataLabelingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset); - /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; + /** DataLabelingDataset dataset. */ + public dataset: string; - /** - * Verifies a CreateMetadataSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** DataLabelingDataset datasetDisplayName. */ + public datasetDisplayName: string; - /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateMetadataSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; + /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ + public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; - /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message CreateMetadataSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; - /** - * Converts this CreateMetadataSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a GetMetadataSchemaRequest. */ - interface IGetMetadataSchemaRequest { + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** GetMetadataSchemaRequest name */ - name?: (string|null); - } + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; - /** Represents a GetMetadataSchemaRequest. */ - class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; - /** - * Constructs a new GetMetadataSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest); + /** + * Verifies a DataLabelingDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** GetMetadataSchemaRequest name. */ - public name: string; + /** + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; - /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMetadataSchemaRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @param message DataLabelingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this DataLabelingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + namespace DataLabelingDataset { - /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; + /** Properties of a DataLabelingAnnotatedDataset. */ + interface IDataLabelingAnnotatedDataset { - /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMetadataSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; + /** DataLabelingAnnotatedDataset annotatedDataset */ + annotatedDataset?: (string|null); - /** - * Verifies a GetMetadataSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ + annotatedDatasetDisplayName?: (string|null); + } - /** - * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMetadataSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest; + /** Represents a DataLabelingAnnotatedDataset. */ + class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { - /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message GetMetadataSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); - /** - * Converts this GetMetadataSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** DataLabelingAnnotatedDataset annotatedDataset. */ + public annotatedDataset: string; - /** Properties of a ListMetadataSchemasRequest. */ - interface IListMetadataSchemasRequest { + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ + public annotatedDatasetDisplayName: string; - /** ListMetadataSchemasRequest parent */ - parent?: (string|null); + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingAnnotatedDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - /** ListMetadataSchemasRequest pageSize */ - pageSize?: (number|null); + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListMetadataSchemasRequest pageToken */ - pageToken?: (string|null); + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListMetadataSchemasRequest filter */ - filter?: (string|null); - } + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - /** Represents a ListMetadataSchemasRequest. */ - class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - /** - * Constructs a new ListMetadataSchemasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest); + /** + * Verifies a DataLabelingAnnotatedDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ListMetadataSchemasRequest parent. */ - public parent: string; + /** + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingAnnotatedDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - /** ListMetadataSchemasRequest pageSize. */ - public pageSize: number; + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @param message DataLabelingAnnotatedDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListMetadataSchemasRequest pageToken. */ - public pageToken: string; + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } - /** ListMetadataSchemasRequest filter. */ - public filter: string; + /** Represents a MigrationService */ + class MigrationService extends $protobuf.rpc.Service { /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMetadataSchemasRequest instance + * Constructs a new MigrationService 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.IListMetadataSchemasRequest): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new MigrationService 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.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback): void; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; + public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): Promise; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; + public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback): void; /** - * Verifies a ListMetadataSchemasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): Promise; + } - /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListMetadataSchemasRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest; + namespace MigrationService { /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. - * @param message ListMetadataSchemasRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#searchMigratableResources}. + * @param error Error, if any + * @param [response] SearchMigratableResourcesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) => void; /** - * Converts this ListMetadataSchemasRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#batchMigrateResources}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListMetadataSchemasResponse. */ - interface IListMetadataSchemasResponse { + /** Properties of a SearchMigratableResourcesRequest. */ + interface ISearchMigratableResourcesRequest { - /** ListMetadataSchemasResponse metadataSchemas */ - metadataSchemas?: (google.cloud.aiplatform.v1beta1.IMetadataSchema[]|null); + /** SearchMigratableResourcesRequest parent */ + parent?: (string|null); - /** ListMetadataSchemasResponse nextPageToken */ - nextPageToken?: (string|null); + /** SearchMigratableResourcesRequest pageSize */ + pageSize?: (number|null); + + /** SearchMigratableResourcesRequest pageToken */ + pageToken?: (string|null); + + /** SearchMigratableResourcesRequest filter */ + filter?: (string|null); } - /** Represents a ListMetadataSchemasResponse. */ - class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { + /** Represents a SearchMigratableResourcesRequest. */ + class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { /** - * Constructs a new ListMetadataSchemasResponse. + * Constructs a new SearchMigratableResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest); - /** ListMetadataSchemasResponse metadataSchemas. */ - public metadataSchemas: google.cloud.aiplatform.v1beta1.IMetadataSchema[]; + /** SearchMigratableResourcesRequest parent. */ + public parent: string; + + /** SearchMigratableResourcesRequest pageSize. */ + public pageSize: number; - /** ListMetadataSchemasResponse nextPageToken. */ - public nextPageToken: string; + /** SearchMigratableResourcesRequest pageToken. */ + public pageToken: string; + + /** SearchMigratableResourcesRequest filter. */ + public filter: string; /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataSchemasResponse instance + * @returns SearchMigratableResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasResponse + * @returns SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasResponse + * @returns SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Verifies a ListMetadataSchemasResponse message. + * Verifies a SearchMigratableResourcesRequest message. * @param message 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 ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataSchemasResponse + * @returns SearchMigratableResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @param message ListMetadataSchemasResponse + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataSchemasResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryArtifactLineageSubgraphRequest. */ - interface IQueryArtifactLineageSubgraphRequest { - - /** QueryArtifactLineageSubgraphRequest artifact */ - artifact?: (string|null); + /** Properties of a SearchMigratableResourcesResponse. */ + interface ISearchMigratableResourcesResponse { - /** QueryArtifactLineageSubgraphRequest maxHops */ - maxHops?: (number|null); + /** SearchMigratableResourcesResponse migratableResources */ + migratableResources?: (google.cloud.aiplatform.v1beta1.IMigratableResource[]|null); - /** QueryArtifactLineageSubgraphRequest filter */ - filter?: (string|null); + /** SearchMigratableResourcesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a QueryArtifactLineageSubgraphRequest. */ - class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { + /** Represents a SearchMigratableResourcesResponse. */ + class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new SearchMigratableResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest); - - /** QueryArtifactLineageSubgraphRequest artifact. */ - public artifact: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse); - /** QueryArtifactLineageSubgraphRequest maxHops. */ - public maxHops: number; + /** SearchMigratableResourcesResponse migratableResources. */ + public migratableResources: google.cloud.aiplatform.v1beta1.IMigratableResource[]; - /** QueryArtifactLineageSubgraphRequest filter. */ - public filter: string; + /** SearchMigratableResourcesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryArtifactLineageSubgraphRequest instance + * @returns SearchMigratableResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryArtifactLineageSubgraphRequest + * @returns SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryArtifactLineageSubgraphRequest + * @returns SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies a SearchMigratableResourcesResponse message. * @param message 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 QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryArtifactLineageSubgraphRequest + * @returns SearchMigratableResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryArtifactLineageSubgraphRequest + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MetadataStore. */ - interface IMetadataStore { - - /** MetadataStore name */ - name?: (string|null); - - /** MetadataStore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Properties of a BatchMigrateResourcesRequest. */ + interface IBatchMigrateResourcesRequest { - /** MetadataStore description */ - description?: (string|null); + /** BatchMigrateResourcesRequest parent */ + parent?: (string|null); - /** MetadataStore state */ - state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); + /** BatchMigrateResourcesRequest migrateResourceRequests */ + migrateResourceRequests?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]|null); } - /** Represents a MetadataStore. */ - class MetadataStore implements IMetadataStore { + /** Represents a BatchMigrateResourcesRequest. */ + class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { /** - * Constructs a new MetadataStore. + * Constructs a new BatchMigrateResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore); - - /** MetadataStore name. */ - public name: string; - - /** MetadataStore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest); - /** MetadataStore description. */ - public description: string; + /** BatchMigrateResourcesRequest parent. */ + public parent: string; - /** MetadataStore state. */ - public state?: (google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null); + /** BatchMigrateResourcesRequest migrateResourceRequests. */ + public migrateResourceRequests: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]; /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataStore instance + * @returns BatchMigrateResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMetadataStore): google.cloud.aiplatform.v1beta1.MetadataStore; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataStore + * @returns BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataStore + * @returns BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Verifies a MetadataStore message. + * Verifies a BatchMigrateResourcesRequest message. * @param message 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 MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataStore + * @returns BatchMigrateResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. - * @param message MetadataStore + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataStore to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace MetadataStore { - - /** Properties of a MetadataStoreState. */ - interface IMetadataStoreState { - - /** MetadataStoreState diskUtilizationBytes */ - diskUtilizationBytes?: (number|Long|string|null); - } - - /** Represents a MetadataStoreState. */ - class MetadataStoreState implements IMetadataStoreState { - - /** - * Constructs a new MetadataStoreState. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState); - - /** MetadataStoreState diskUtilizationBytes. */ - public diskUtilizationBytes: (number|Long|string); - - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataStoreState instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Verifies a MetadataStoreState message. - * @param message 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 MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataStoreState - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState; - - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @param message MetadataStoreState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataStoreState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a MigratableResource. */ - interface IMigratableResource { - - /** MigratableResource mlEngineModelVersion */ - mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel */ - automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); + /** Properties of a MigrateResourceRequest. */ + interface IMigrateResourceRequest { - /** MigratableResource automlDataset */ - automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ + migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** MigratableResource dataLabelingDataset */ - dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + /** MigrateResourceRequest migrateAutomlModelConfig */ + migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** MigratableResource lastMigrateTime */ - lastMigrateTime?: (google.protobuf.ITimestamp|null); + /** MigrateResourceRequest migrateAutomlDatasetConfig */ + migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** MigratableResource lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ + migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); } - /** Represents a MigratableResource. */ - class MigratableResource implements IMigratableResource { + /** Represents a MigrateResourceRequest. */ + class MigrateResourceRequest implements IMigrateResourceRequest { /** - * Constructs a new MigratableResource. + * Constructs a new MigrateResourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource); - - /** MigratableResource mlEngineModelVersion. */ - public mlEngineModelVersion?: (google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel. */ - public automlModel?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest); - /** MigratableResource automlDataset. */ - public automlDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null); + /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ + public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** MigratableResource dataLabelingDataset. */ - public dataLabelingDataset?: (google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null); + /** MigrateResourceRequest migrateAutomlModelConfig. */ + public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** MigratableResource lastMigrateTime. */ - public lastMigrateTime?: (google.protobuf.ITimestamp|null); + /** MigrateResourceRequest migrateAutomlDatasetConfig. */ + public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** MigratableResource lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ + public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); - /** MigratableResource resource. */ - public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); + /** MigrateResourceRequest request. */ + public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MigratableResource instance + * @returns MigrateResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigratableResource): google.cloud.aiplatform.v1beta1.MigratableResource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigratableResource + * @returns MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigratableResource + * @returns MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Verifies a MigratableResource message. + * Verifies a MigrateResourceRequest message. * @param message 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 MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigratableResource + * @returns MigrateResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. - * @param message MigratableResource + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * @param message MigrateResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigratableResource to JSON. + * Converts this MigrateResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace MigratableResource { + namespace MigrateResourceRequest { - /** Properties of a MlEngineModelVersion. */ - interface IMlEngineModelVersion { + /** Properties of a MigrateMlEngineModelVersionConfig. */ + interface IMigrateMlEngineModelVersionConfig { - /** MlEngineModelVersion endpoint */ + /** MigrateMlEngineModelVersionConfig endpoint */ endpoint?: (string|null); - /** MlEngineModelVersion version */ - version?: (string|null); + /** MigrateMlEngineModelVersionConfig modelVersion */ + modelVersion?: (string|null); + + /** MigrateMlEngineModelVersionConfig modelDisplayName */ + modelDisplayName?: (string|null); } - /** Represents a MlEngineModelVersion. */ - class MlEngineModelVersion implements IMlEngineModelVersion { + /** Represents a MigrateMlEngineModelVersionConfig. */ + class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { /** - * Constructs a new MlEngineModelVersion. + * Constructs a new MigrateMlEngineModelVersionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion); + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); - /** MlEngineModelVersion endpoint. */ + /** MigrateMlEngineModelVersionConfig endpoint. */ public endpoint: string; - /** MlEngineModelVersion version. */ - public version: string; + /** MigrateMlEngineModelVersionConfig modelVersion. */ + public modelVersion: string; + + /** MigrateMlEngineModelVersionConfig modelDisplayName. */ + public modelDisplayName: string; /** - * Creates a new MlEngineModelVersion instance using the specified properties. + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. * @param [properties] Properties to set - * @returns MlEngineModelVersion instance + * @returns MigrateMlEngineModelVersionConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MlEngineModelVersion + * @returns MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MlEngineModelVersion + * @returns MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; /** - * Verifies a MlEngineModelVersion message. + * Verifies a MigrateMlEngineModelVersionConfig message. * @param message 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 MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MlEngineModelVersion + * @returns MigrateMlEngineModelVersionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @param message MlEngineModelVersion + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @param message MigrateMlEngineModelVersionConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MlEngineModelVersion to JSON. + * Converts this MigrateMlEngineModelVersionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AutomlModel. */ - interface IAutomlModel { + /** Properties of a MigrateAutomlModelConfig. */ + interface IMigrateAutomlModelConfig { - /** AutomlModel model */ + /** MigrateAutomlModelConfig model */ model?: (string|null); - /** AutomlModel modelDisplayName */ + /** MigrateAutomlModelConfig modelDisplayName */ modelDisplayName?: (string|null); } - /** Represents an AutomlModel. */ - class AutomlModel implements IAutomlModel { + /** Represents a MigrateAutomlModelConfig. */ + class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { /** - * Constructs a new AutomlModel. + * Constructs a new MigrateAutomlModelConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel); + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig); - /** AutomlModel model. */ + /** MigrateAutomlModelConfig model. */ public model: string; - /** AutomlModel modelDisplayName. */ + /** MigrateAutomlModelConfig modelDisplayName. */ public modelDisplayName: string; /** - * Creates a new AutomlModel instance using the specified properties. + * Creates a new MigrateAutomlModelConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AutomlModel instance + * @returns MigrateAutomlModelConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomlModel message from the specified reader or buffer. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomlModel + * @returns MigrateAutomlModelConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomlModel + * @returns MigrateAutomlModelConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Verifies an AutomlModel message. + * Verifies a MigrateAutomlModelConfig message. * @param message 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 AutomlModel message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomlModel + * @returns MigrateAutomlModelConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @param message AutomlModel + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlModelConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomlModel to JSON. + * Converts this MigrateAutomlModelConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AutomlDataset. */ - interface IAutomlDataset { + /** Properties of a MigrateAutomlDatasetConfig. */ + interface IMigrateAutomlDatasetConfig { - /** AutomlDataset dataset */ + /** MigrateAutomlDatasetConfig dataset */ dataset?: (string|null); - /** AutomlDataset datasetDisplayName */ + /** MigrateAutomlDatasetConfig datasetDisplayName */ datasetDisplayName?: (string|null); } - /** Represents an AutomlDataset. */ - class AutomlDataset implements IAutomlDataset { + /** Represents a MigrateAutomlDatasetConfig. */ + class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { /** - * Constructs a new AutomlDataset. + * Constructs a new MigrateAutomlDatasetConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); - /** AutomlDataset dataset. */ + /** MigrateAutomlDatasetConfig dataset. */ public dataset: string; - /** AutomlDataset datasetDisplayName. */ + /** MigrateAutomlDatasetConfig datasetDisplayName. */ public datasetDisplayName: string; /** - * Creates a new AutomlDataset instance using the specified properties. + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AutomlDataset instance + * @returns MigrateAutomlDatasetConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomlDataset message from the specified reader or buffer. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomlDataset + * @returns MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomlDataset + * @returns MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; /** - * Verifies an AutomlDataset message. + * Verifies a MigrateAutomlDatasetConfig message. * @param message 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 AutomlDataset message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomlDataset + * @returns MigrateAutomlDatasetConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @param message AutomlDataset + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlDatasetConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomlDataset to JSON. + * Converts this MigrateAutomlDatasetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataLabelingDataset. */ - interface IDataLabelingDataset { + /** Properties of a MigrateDataLabelingDatasetConfig. */ + interface IMigrateDataLabelingDatasetConfig { - /** DataLabelingDataset dataset */ + /** MigrateDataLabelingDatasetConfig dataset */ dataset?: (string|null); - /** DataLabelingDataset datasetDisplayName */ + /** MigrateDataLabelingDatasetConfig datasetDisplayName */ datasetDisplayName?: (string|null); - /** DataLabelingDataset dataLabelingAnnotatedDatasets */ - dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ + migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); } - /** Represents a DataLabelingDataset. */ - class DataLabelingDataset implements IDataLabelingDataset { + /** Represents a MigrateDataLabelingDatasetConfig. */ + class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { /** - * Constructs a new DataLabelingDataset. + * Constructs a new MigrateDataLabelingDatasetConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - /** DataLabelingDataset dataset. */ + /** MigrateDataLabelingDatasetConfig dataset. */ public dataset: string; - /** DataLabelingDataset datasetDisplayName. */ + /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ public datasetDisplayName: string; - /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ - public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ + public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; /** - * Creates a new DataLabelingDataset instance using the specified properties. + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingDataset instance + * @returns MigrateDataLabelingDatasetConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingDataset + * @returns MigrateDataLabelingDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingDataset + * @returns MigrateDataLabelingDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Verifies a DataLabelingDataset message. + * Verifies a MigrateDataLabelingDatasetConfig message. * @param message 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 DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingDataset + * @returns MigrateDataLabelingDatasetConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @param message DataLabelingDataset + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingDatasetConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingDataset to JSON. + * Converts this MigrateDataLabelingDatasetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DataLabelingDataset { + namespace MigrateDataLabelingDatasetConfig { - /** Properties of a DataLabelingAnnotatedDataset. */ - interface IDataLabelingAnnotatedDataset { + /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ + interface IMigrateDataLabelingAnnotatedDatasetConfig { - /** DataLabelingAnnotatedDataset annotatedDataset */ + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ annotatedDataset?: (string|null); - - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ - annotatedDatasetDisplayName?: (string|null); } - /** Represents a DataLabelingAnnotatedDataset. */ - class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { + /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ + class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { /** - * Constructs a new DataLabelingAnnotatedDataset. + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); - /** DataLabelingAnnotatedDataset annotatedDataset. */ + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ public annotatedDataset: string; - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ - public annotatedDatasetDisplayName: string; - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingAnnotatedDataset instance + * @returns MigrateDataLabelingAnnotatedDatasetConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingAnnotatedDataset + * @returns MigrateDataLabelingAnnotatedDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingAnnotatedDataset + * @returns MigrateDataLabelingAnnotatedDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; /** - * Verifies a DataLabelingAnnotatedDataset message. + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. * @param message 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 DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingAnnotatedDataset + * @returns MigrateDataLabelingAnnotatedDatasetConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @param message DataLabelingAnnotatedDataset + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingAnnotatedDatasetConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingAnnotatedDataset to JSON. + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -100555,6438 +101282,6910 @@ export namespace google { } } - /** Represents a MigrationService */ - class MigrationService extends $protobuf.rpc.Service { - - /** - * Constructs a new MigrationService 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 MigrationService 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): MigrationService; - - /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse - */ - public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback): void; - - /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @returns Promise - */ - public searchMigratableResources(request: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): Promise; - - /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback): void; - - /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @returns Promise - */ - public batchMigrateResources(request: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): Promise; - } - - namespace MigrationService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#searchMigratableResources}. - * @param error Error, if any - * @param [response] SearchMigratableResourcesResponse - */ - type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#batchMigrateResources}. - * @param error Error, if any - * @param [response] Operation - */ - type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } - - /** Properties of a SearchMigratableResourcesRequest. */ - interface ISearchMigratableResourcesRequest { - - /** SearchMigratableResourcesRequest parent */ - parent?: (string|null); - - /** SearchMigratableResourcesRequest pageSize */ - pageSize?: (number|null); - - /** SearchMigratableResourcesRequest pageToken */ - pageToken?: (string|null); - - /** SearchMigratableResourcesRequest filter */ - filter?: (string|null); - } - - /** Represents a SearchMigratableResourcesRequest. */ - class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { - - /** - * Constructs a new SearchMigratableResourcesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest); - - /** SearchMigratableResourcesRequest parent. */ - public parent: string; - - /** SearchMigratableResourcesRequest pageSize. */ - public pageSize: number; - - /** SearchMigratableResourcesRequest pageToken. */ - public pageToken: string; - - /** SearchMigratableResourcesRequest filter. */ - public filter: string; - - /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SearchMigratableResourcesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; - - /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; - - /** - * Verifies a SearchMigratableResourcesRequest message. - * @param message 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 SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SearchMigratableResourcesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest; - - /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SearchMigratableResourcesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SearchMigratableResourcesResponse. */ - interface ISearchMigratableResourcesResponse { - - /** SearchMigratableResourcesResponse migratableResources */ - migratableResources?: (google.cloud.aiplatform.v1beta1.IMigratableResource[]|null); + /** Properties of a BatchMigrateResourcesResponse. */ + interface IBatchMigrateResourcesResponse { - /** SearchMigratableResourcesResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchMigrateResourcesResponse migrateResourceResponses */ + migrateResourceResponses?: (google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]|null); } - /** Represents a SearchMigratableResourcesResponse. */ - class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { + /** Represents a BatchMigrateResourcesResponse. */ + class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new BatchMigrateResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse); - - /** SearchMigratableResourcesResponse migratableResources. */ - public migratableResources: google.cloud.aiplatform.v1beta1.IMigratableResource[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse); - /** SearchMigratableResourcesResponse nextPageToken. */ - public nextPageToken: string; + /** BatchMigrateResourcesResponse migrateResourceResponses. */ + public migrateResourceResponses: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesResponse instance + * @returns BatchMigrateResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesResponse + * @returns BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesResponse + * @returns BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a BatchMigrateResourcesResponse message. * @param message 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 SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesResponse + * @returns BatchMigrateResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesResponse + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchMigrateResourcesRequest. */ - interface IBatchMigrateResourcesRequest { + /** Properties of a MigrateResourceResponse. */ + interface IMigrateResourceResponse { - /** BatchMigrateResourcesRequest parent */ - parent?: (string|null); + /** MigrateResourceResponse dataset */ + dataset?: (string|null); - /** BatchMigrateResourcesRequest migrateResourceRequests */ - migrateResourceRequests?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]|null); + /** MigrateResourceResponse model */ + model?: (string|null); + + /** MigrateResourceResponse migratableResource */ + migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); } - /** Represents a BatchMigrateResourcesRequest. */ - class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { + /** Represents a MigrateResourceResponse. */ + class MigrateResourceResponse implements IMigrateResourceResponse { /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new MigrateResourceResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse); - /** BatchMigrateResourcesRequest parent. */ - public parent: string; + /** MigrateResourceResponse dataset. */ + public dataset?: (string|null); - /** BatchMigrateResourcesRequest migrateResourceRequests. */ - public migrateResourceRequests: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest[]; + /** MigrateResourceResponse model. */ + public model?: (string|null); + + /** MigrateResourceResponse migratableResource. */ + public migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); + + /** MigrateResourceResponse migratedResource. */ + public migratedResource?: ("dataset"|"model"); /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new MigrateResourceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesRequest instance + * @returns MigrateResourceResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesRequest + * @returns MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesRequest + * @returns MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a MigrateResourceResponse message. * @param message 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 BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesRequest + * @returns MigrateResourceResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesRequest + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * @param message MigrateResourceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this MigrateResourceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MigrateResourceRequest. */ - interface IMigrateResourceRequest { - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ - migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - - /** MigrateResourceRequest migrateAutomlModelConfig */ - migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + /** Properties of a BatchMigrateResourcesOperationMetadata. */ + interface IBatchMigrateResourcesOperationMetadata { - /** MigrateResourceRequest migrateAutomlDatasetConfig */ - migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** BatchMigrateResourcesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ - migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** BatchMigrateResourcesOperationMetadata partialResults */ + partialResults?: (google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); } - /** Represents a MigrateResourceRequest. */ - class MigrateResourceRequest implements IMigrateResourceRequest { + /** Represents a BatchMigrateResourcesOperationMetadata. */ + class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { /** - * Constructs a new MigrateResourceRequest. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest); - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ - public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - - /** MigrateResourceRequest migrateAutomlModelConfig. */ - public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - - /** MigrateResourceRequest migrateAutomlDatasetConfig. */ - public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ - public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** BatchMigrateResourcesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** MigrateResourceRequest request. */ - public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); + /** BatchMigrateResourcesOperationMetadata partialResults. */ + public partialResults: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceRequest instance + * @returns BatchMigrateResourcesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceRequest + * @returns BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceRequest + * @returns BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Verifies a MigrateResourceRequest message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @param message 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 MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceRequest + * @returns BatchMigrateResourcesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. - * @param message MigrateResourceRequest + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace MigrateResourceRequest { + namespace BatchMigrateResourcesOperationMetadata { - /** Properties of a MigrateMlEngineModelVersionConfig. */ - interface IMigrateMlEngineModelVersionConfig { + /** Properties of a PartialResult. */ + interface IPartialResult { - /** MigrateMlEngineModelVersionConfig endpoint */ - endpoint?: (string|null); + /** PartialResult error */ + error?: (google.rpc.IStatus|null); - /** MigrateMlEngineModelVersionConfig modelVersion */ - modelVersion?: (string|null); + /** PartialResult model */ + model?: (string|null); - /** MigrateMlEngineModelVersionConfig modelDisplayName */ - modelDisplayName?: (string|null); + /** PartialResult dataset */ + dataset?: (string|null); + + /** PartialResult request */ + request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); } - /** Represents a MigrateMlEngineModelVersionConfig. */ - class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { + /** Represents a PartialResult. */ + class PartialResult implements IPartialResult { /** - * Constructs a new MigrateMlEngineModelVersionConfig. + * Constructs a new PartialResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult); - /** MigrateMlEngineModelVersionConfig endpoint. */ - public endpoint: string; + /** PartialResult error. */ + public error?: (google.rpc.IStatus|null); - /** MigrateMlEngineModelVersionConfig modelVersion. */ - public modelVersion: string; + /** PartialResult model. */ + public model?: (string|null); - /** MigrateMlEngineModelVersionConfig modelDisplayName. */ - public modelDisplayName: string; + /** PartialResult dataset. */ + public dataset?: (string|null); + + /** PartialResult request. */ + public request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); + + /** PartialResult result. */ + public result?: ("error"|"model"|"dataset"); /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * Creates a new PartialResult instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateMlEngineModelVersionConfig instance + * @returns PartialResult instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * Decodes a PartialResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateMlEngineModelVersionConfig + * @returns PartialResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * Decodes a PartialResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateMlEngineModelVersionConfig + * @returns PartialResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; /** - * Verifies a MigrateMlEngineModelVersionConfig message. + * Verifies a PartialResult message. * @param message 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 MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateMlEngineModelVersionConfig + * @returns PartialResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. - * @param message MigrateMlEngineModelVersionConfig + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @param message PartialResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. + * Converts this PartialResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a MigrateAutomlModelConfig. */ - interface IMigrateAutomlModelConfig { + /** Properties of a ModelEvaluation. */ + interface IModelEvaluation { - /** MigrateAutomlModelConfig model */ - model?: (string|null); + /** ModelEvaluation name */ + name?: (string|null); - /** MigrateAutomlModelConfig modelDisplayName */ - modelDisplayName?: (string|null); - } + /** ModelEvaluation metricsSchemaUri */ + metricsSchemaUri?: (string|null); - /** Represents a MigrateAutomlModelConfig. */ - class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { + /** ModelEvaluation metrics */ + metrics?: (google.protobuf.IValue|null); - /** - * Constructs a new MigrateAutomlModelConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig); + /** ModelEvaluation createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** MigrateAutomlModelConfig model. */ - public model: string; + /** ModelEvaluation sliceDimensions */ + sliceDimensions?: (string[]|null); - /** MigrateAutomlModelConfig modelDisplayName. */ - public modelDisplayName: string; + /** ModelEvaluation modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateAutomlModelConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** ModelEvaluation explanationSpecs */ + explanationSpecs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + } - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a ModelEvaluation. */ + class ModelEvaluation implements IModelEvaluation { - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ModelEvaluation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation); - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** ModelEvaluation name. */ + public name: string; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** ModelEvaluation metricsSchemaUri. */ + public metricsSchemaUri: string; - /** - * Verifies a MigrateAutomlModelConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ModelEvaluation metrics. */ + public metrics?: (google.protobuf.IValue|null); - /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateAutomlModelConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** ModelEvaluation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlModelConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelEvaluation sliceDimensions. */ + public sliceDimensions: string[]; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ModelEvaluation modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); - /** Properties of a MigrateAutomlDatasetConfig. */ - interface IMigrateAutomlDatasetConfig { + /** ModelEvaluation explanationSpecs. */ + public explanationSpecs: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]; - /** MigrateAutomlDatasetConfig dataset */ - dataset?: (string|null); + /** + * Creates a new ModelEvaluation instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelEvaluation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation): google.cloud.aiplatform.v1beta1.ModelEvaluation; - /** MigrateAutomlDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); + /** + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelEvaluation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelEvaluation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation; + + /** + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelEvaluation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation; + + /** + * Verifies a ModelEvaluation message. + * @param message 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelEvaluation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation; + + /** + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * @param message ModelEvaluation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelEvaluation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ModelEvaluation { + + /** Properties of a ModelEvaluationExplanationSpec. */ + interface IModelEvaluationExplanationSpec { + + /** ModelEvaluationExplanationSpec explanationType */ + explanationType?: (string|null); + + /** ModelEvaluationExplanationSpec explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); } - /** Represents a MigrateAutomlDatasetConfig. */ - class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { + /** Represents a ModelEvaluationExplanationSpec. */ + class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { /** - * Constructs a new MigrateAutomlDatasetConfig. + * Constructs a new ModelEvaluationExplanationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec); - /** MigrateAutomlDatasetConfig dataset. */ - public dataset: string; + /** ModelEvaluationExplanationSpec explanationType. */ + public explanationType: string; - /** MigrateAutomlDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; + /** ModelEvaluationExplanationSpec explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateAutomlDatasetConfig instance + * @returns ModelEvaluationExplanationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateAutomlDatasetConfig + * @returns ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateAutomlDatasetConfig + * @returns ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Verifies a MigrateAutomlDatasetConfig message. + * Verifies a ModelEvaluationExplanationSpec message. * @param message 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 MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateAutomlDatasetConfig + * @returns ModelEvaluationExplanationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlDatasetConfig + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @param message ModelEvaluationExplanationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateAutomlDatasetConfig to JSON. + * Converts this ModelEvaluationExplanationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a MigrateDataLabelingDatasetConfig. */ - interface IMigrateDataLabelingDatasetConfig { + /** Properties of a ModelEvaluationSlice. */ + interface IModelEvaluationSlice { - /** MigrateDataLabelingDatasetConfig dataset */ - dataset?: (string|null); + /** ModelEvaluationSlice name */ + name?: (string|null); - /** MigrateDataLabelingDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); + /** ModelEvaluationSlice slice */ + slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ - migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); + /** ModelEvaluationSlice metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluationSlice metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a ModelEvaluationSlice. */ + class ModelEvaluationSlice implements IModelEvaluationSlice { + + /** + * Constructs a new ModelEvaluationSlice. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice); + + /** ModelEvaluationSlice name. */ + public name: string; + + /** ModelEvaluationSlice slice. */ + public slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); + + /** ModelEvaluationSlice metricsSchemaUri. */ + public metricsSchemaUri: string; + + /** ModelEvaluationSlice metrics. */ + public metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new ModelEvaluationSlice instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelEvaluationSlice instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Verifies a ModelEvaluationSlice message. + * @param message 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 ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelEvaluationSlice + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + + /** + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * @param message ModelEvaluationSlice + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelEvaluationSlice to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ModelEvaluationSlice { + + /** Properties of a Slice. */ + interface ISlice { + + /** Slice dimension */ + dimension?: (string|null); + + /** Slice value */ + value?: (string|null); } - /** Represents a MigrateDataLabelingDatasetConfig. */ - class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { + /** Represents a Slice. */ + class Slice implements ISlice { /** - * Constructs a new MigrateDataLabelingDatasetConfig. + * Constructs a new Slice. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - - /** MigrateDataLabelingDatasetConfig dataset. */ - public dataset: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice); - /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; + /** Slice dimension. */ + public dimension: string; - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ - public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; + /** Slice value. */ + public value: string; /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * Creates a new Slice instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateDataLabelingDatasetConfig instance + * @returns Slice instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * Decodes a Slice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingDatasetConfig + * @returns Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a Slice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingDatasetConfig + * @returns Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Verifies a MigrateDataLabelingDatasetConfig message. + * Verifies a Slice message. * @param message 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 MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Slice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateDataLabelingDatasetConfig + * @returns Slice */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingDatasetConfig + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @param message Slice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. + * Converts this Slice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - namespace MigrateDataLabelingDatasetConfig { + /** Represents a ModelService */ + class ModelService extends $protobuf.rpc.Service { - /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ - interface IMigrateDataLabelingAnnotatedDatasetConfig { + /** + * Constructs a new ModelService 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); - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ - annotatedDataset?: (string|null); - } + /** + * Creates new ModelService 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): ModelService; - /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ - class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { + /** + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback): void; - /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); + /** + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @returns Promise + */ + public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest): Promise; - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ - public annotatedDataset: string; + /** + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback): void; - /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateDataLabelingAnnotatedDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + /** + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @returns Promise + */ + public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest): Promise; - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelsResponse + */ + public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback): void; - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @returns Promise + */ + public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest): Promise; - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + /** + * 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.v1beta1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionsCallback): void; + + /** + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @returns Promise + */ + public listModelVersions(request: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): Promise; + + /** + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback): void; + + /** + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @returns Promise + */ + public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): Promise; + + /** + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback): void; + + /** + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @returns Promise + */ + public deleteModel(request: google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersionCallback): void; + + /** + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @returns Promise + */ + public deleteModelVersion(request: google.cloud.aiplatform.v1beta1.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.v1beta1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback): void; + + /** + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @returns Promise + */ + public mergeVersionAliases(request: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): Promise; + + /** + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback): void; + + /** + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @returns Promise + */ + public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + + /** + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation + */ + public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback): void; + + /** + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @returns Promise + */ + public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): Promise; + + /** + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation + */ + public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback): void; + + /** + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @returns Promise + */ + public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): Promise; + + /** + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + */ + public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback): void; + + /** + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @returns Promise + */ + public listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): Promise; + + /** + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + */ + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback): void; + + /** + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @returns Promise + */ + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): Promise; + + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback): void; + + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): Promise; + } + + namespace ModelService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#uploadModel}. + * @param error Error, if any + * @param [response] Operation + */ + type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModel}. + * @param error Error, if any + * @param [response] Model + */ + type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModels}. + * @param error Error, if any + * @param [response] ListModelsResponse + */ + type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelVersions}. + * @param error Error, if any + * @param [response] ListModelVersionsResponse + */ + type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#updateModel}. + * @param error Error, if any + * @param [response] Model + */ + type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#deleteModel}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.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.v1beta1.ModelService#mergeVersionAliases}. + * @param error Error, if any + * @param [response] Model + */ + type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#exportModel}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#importModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; - /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. - * @param message 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.ModelService#getModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; - /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingAnnotatedDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluations}. + * @param error Error, if any + * @param [response] ListModelEvaluationsResponse + */ + type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) => void; - /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingAnnotatedDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluationSlice}. + * @param error Error, if any + * @param [response] ModelEvaluationSlice + */ + type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) => void; - /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluationSlices}. + * @param error Error, if any + * @param [response] ListModelEvaluationSlicesResponse + */ + type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) => void; } - /** Properties of a BatchMigrateResourcesResponse. */ - interface IBatchMigrateResourcesResponse { + /** Properties of an UploadModelRequest. */ + interface IUploadModelRequest { - /** BatchMigrateResourcesResponse migrateResourceResponses */ - migrateResourceResponses?: (google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]|null); + /** UploadModelRequest parent */ + parent?: (string|null); + + /** UploadModelRequest parentModel */ + parentModel?: (string|null); + + /** UploadModelRequest modelId */ + modelId?: (string|null); + + /** UploadModelRequest model */ + model?: (google.cloud.aiplatform.v1beta1.IModel|null); } - /** Represents a BatchMigrateResourcesResponse. */ - class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { + /** Represents an UploadModelRequest. */ + class UploadModelRequest implements IUploadModelRequest { /** - * Constructs a new BatchMigrateResourcesResponse. + * Constructs a new UploadModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest); - /** BatchMigrateResourcesResponse migrateResourceResponses. */ - public migrateResourceResponses: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse[]; + /** UploadModelRequest parent. */ + public parent: string; + + /** UploadModelRequest parentModel. */ + public parentModel: string; + + /** UploadModelRequest modelId. */ + public modelId: string; + + /** UploadModelRequest model. */ + public model?: (google.cloud.aiplatform.v1beta1.IModel|null); /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * Creates a new UploadModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesResponse instance + * @returns UploadModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes an UploadModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies an UploadModelRequest message. * @param message 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 BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesResponse + * @returns UploadModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelRequest; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesResponse + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * @param message UploadModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this UploadModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MigrateResourceResponse. */ - interface IMigrateResourceResponse { - - /** MigrateResourceResponse dataset */ - dataset?: (string|null); - - /** MigrateResourceResponse model */ - model?: (string|null); + /** Properties of an UploadModelOperationMetadata. */ + interface IUploadModelOperationMetadata { - /** MigrateResourceResponse migratableResource */ - migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); + /** UploadModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a MigrateResourceResponse. */ - class MigrateResourceResponse implements IMigrateResourceResponse { + /** Represents an UploadModelOperationMetadata. */ + class UploadModelOperationMetadata implements IUploadModelOperationMetadata { /** - * Constructs a new MigrateResourceResponse. + * Constructs a new UploadModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse); - - /** MigrateResourceResponse dataset. */ - public dataset?: (string|null); - - /** MigrateResourceResponse model. */ - public model?: (string|null); - - /** MigrateResourceResponse migratableResource. */ - public migratableResource?: (google.cloud.aiplatform.v1beta1.IMigratableResource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata); - /** MigrateResourceResponse migratedResource. */ - public migratedResource?: ("dataset"|"model"); + /** UploadModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new UploadModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceResponse instance + * @returns UploadModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Verifies a MigrateResourceResponse message. + * Verifies an UploadModelOperationMetadata message. * @param message 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 MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceResponse + * @returns UploadModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MigrateResourceResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. - * @param message MigrateResourceResponse + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * @param message UploadModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this UploadModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchMigrateResourcesOperationMetadata. */ - interface IBatchMigrateResourcesOperationMetadata { + /** Properties of an UploadModelResponse. */ + interface IUploadModelResponse { - /** BatchMigrateResourcesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UploadModelResponse model */ + model?: (string|null); - /** BatchMigrateResourcesOperationMetadata partialResults */ - partialResults?: (google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); + /** UploadModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a BatchMigrateResourcesOperationMetadata. */ - class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { + /** Represents an UploadModelResponse. */ + class UploadModelResponse implements IUploadModelResponse { /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new UploadModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse); - /** BatchMigrateResourcesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UploadModelResponse model. */ + public model: string; - /** BatchMigrateResourcesOperationMetadata partialResults. */ - public partialResults: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; + /** UploadModelResponse modelVersionId. */ + public modelVersionId: string; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new UploadModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesOperationMetadata instance + * @returns UploadModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes an UploadModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies an UploadModelResponse message. * @param message 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 BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesOperationMetadata + * @returns UploadModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelResponse; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesOperationMetadata + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * @param message UploadModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this UploadModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace BatchMigrateResourcesOperationMetadata { - - /** Properties of a PartialResult. */ - interface IPartialResult { - - /** PartialResult error */ - error?: (google.rpc.IStatus|null); - - /** PartialResult model */ - model?: (string|null); - - /** PartialResult dataset */ - dataset?: (string|null); - - /** PartialResult request */ - request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); - } - - /** Represents a PartialResult. */ - class PartialResult implements IPartialResult { - - /** - * Constructs a new PartialResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult); - - /** PartialResult error. */ - public error?: (google.rpc.IStatus|null); + /** Properties of a GetModelRequest. */ + interface IGetModelRequest { - /** PartialResult model. */ - public model?: (string|null); + /** GetModelRequest name */ + name?: (string|null); + } - /** PartialResult dataset. */ - public dataset?: (string|null); + /** Represents a GetModelRequest. */ + class GetModelRequest implements IGetModelRequest { - /** PartialResult request. */ - public request?: (google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null); + /** + * Constructs a new GetModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest); - /** PartialResult result. */ - public result?: ("error"|"model"|"dataset"); + /** GetModelRequest name. */ + public name: string; - /** - * Creates a new PartialResult instance using the specified properties. - * @param [properties] Properties to set - * @returns PartialResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Creates a new GetModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Decodes a GetModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Verifies a PartialResult message. - * @param message 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 GetModelRequest message. + * @param message 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 PartialResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PartialResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult; + /** + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelRequest; - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @param message PartialResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * @param message GetModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this PartialResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this GetModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ModelEvaluation. */ - interface IModelEvaluation { - - /** ModelEvaluation name */ - name?: (string|null); - - /** ModelEvaluation metricsSchemaUri */ - metricsSchemaUri?: (string|null); + /** Properties of a ListModelsRequest. */ + interface IListModelsRequest { - /** ModelEvaluation metrics */ - metrics?: (google.protobuf.IValue|null); + /** ListModelsRequest parent */ + parent?: (string|null); - /** ModelEvaluation createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListModelsRequest filter */ + filter?: (string|null); - /** ModelEvaluation sliceDimensions */ - sliceDimensions?: (string[]|null); + /** ListModelsRequest pageSize */ + pageSize?: (number|null); - /** ModelEvaluation modelExplanation */ - modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelsRequest pageToken */ + pageToken?: (string|null); - /** ModelEvaluation explanationSpecs */ - explanationSpecs?: (google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + /** ListModelsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelEvaluation. */ - class ModelEvaluation implements IModelEvaluation { + /** Represents a ListModelsRequest. */ + class ListModelsRequest implements IListModelsRequest { /** - * Constructs a new ModelEvaluation. + * Constructs a new ListModelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation); - - /** ModelEvaluation name. */ - public name: string; - - /** ModelEvaluation metricsSchemaUri. */ - public metricsSchemaUri: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest); - /** ModelEvaluation metrics. */ - public metrics?: (google.protobuf.IValue|null); + /** ListModelsRequest parent. */ + public parent: string; - /** ModelEvaluation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListModelsRequest filter. */ + public filter: string; - /** ModelEvaluation sliceDimensions. */ - public sliceDimensions: string[]; + /** ListModelsRequest pageSize. */ + public pageSize: number; - /** ModelEvaluation modelExplanation. */ - public modelExplanation?: (google.cloud.aiplatform.v1beta1.IModelExplanation|null); + /** ListModelsRequest pageToken. */ + public pageToken: string; - /** ModelEvaluation explanationSpecs. */ - public explanationSpecs: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec[]; + /** ListModelsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new ListModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluation instance + * @returns ListModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluation): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluation + * @returns ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluation + * @returns ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Verifies a ModelEvaluation message. + * Verifies a ListModelsRequest message. * @param message 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluation + * @returns ListModelsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsRequest; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. - * @param message ModelEvaluation + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * @param message ListModelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluation to JSON. + * Converts this ListModelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelEvaluation { - - /** Properties of a ModelEvaluationExplanationSpec. */ - interface IModelEvaluationExplanationSpec { - - /** ModelEvaluationExplanationSpec explanationType */ - explanationType?: (string|null); - - /** ModelEvaluationExplanationSpec explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - } - - /** Represents a ModelEvaluationExplanationSpec. */ - class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - - /** - * Constructs a new ModelEvaluationExplanationSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec); - - /** ModelEvaluationExplanationSpec explanationType. */ - public explanationType: string; - - /** ModelEvaluationExplanationSpec explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelEvaluationExplanationSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelEvaluationExplanationSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Verifies a ModelEvaluationExplanationSpec message. - * @param message 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 ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelEvaluationExplanationSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. - * @param message ModelEvaluationExplanationSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ModelEvaluationExplanationSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ModelEvaluationSlice. */ - interface IModelEvaluationSlice { - - /** ModelEvaluationSlice name */ - name?: (string|null); - - /** ModelEvaluationSlice slice */ - slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri */ - metricsSchemaUri?: (string|null); + /** Properties of a ListModelsResponse. */ + interface IListModelsResponse { - /** ModelEvaluationSlice metrics */ - metrics?: (google.protobuf.IValue|null); + /** ListModelsResponse models */ + models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); - /** ModelEvaluationSlice createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListModelsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelEvaluationSlice. */ - class ModelEvaluationSlice implements IModelEvaluationSlice { + /** Represents a ListModelsResponse. */ + class ListModelsResponse implements IListModelsResponse { /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new ListModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice); - - /** ModelEvaluationSlice name. */ - public name: string; - - /** ModelEvaluationSlice slice. */ - public slice?: (google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri. */ - public metricsSchemaUri: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse); - /** ModelEvaluationSlice metrics. */ - public metrics?: (google.protobuf.IValue|null); + /** ListModelsResponse models. */ + public models: google.cloud.aiplatform.v1beta1.IModel[]; - /** ModelEvaluationSlice createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListModelsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new ListModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluationSlice instance + * @returns ListModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse): google.cloud.aiplatform.v1beta1.ListModelsResponse; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes a ListModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluationSlice + * @returns ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsResponse; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluationSlice + * @returns ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsResponse; /** - * Verifies a ModelEvaluationSlice message. + * Verifies a ListModelsResponse message. * @param message 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 ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluationSlice + * @returns ListModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsResponse; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @param message ModelEvaluationSlice + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @param message ListModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this ListModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelEvaluationSlice { - - /** Properties of a Slice. */ - interface ISlice { - - /** Slice dimension */ - dimension?: (string|null); - - /** Slice value */ - value?: (string|null); - } - - /** Represents a Slice. */ - class Slice implements ISlice { - - /** - * Constructs a new Slice. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice); + /** Properties of a ListModelVersionsRequest. */ + interface IListModelVersionsRequest { - /** Slice dimension. */ - public dimension: string; + /** ListModelVersionsRequest name */ + name?: (string|null); - /** Slice value. */ - public value: string; + /** ListModelVersionsRequest pageSize */ + pageSize?: (number|null); - /** - * Creates a new Slice instance using the specified properties. - * @param [properties] Properties to set - * @returns Slice instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; + /** ListModelVersionsRequest pageToken */ + pageToken?: (string|null); - /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListModelVersionsRequest filter */ + filter?: (string|null); - /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListModelVersionsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** - * Decodes a Slice message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; + /** Represents a ListModelVersionsRequest. */ + class ListModelVersionsRequest implements IListModelVersionsRequest { - /** - * Decodes a Slice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Slice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; + /** + * Constructs a new ListModelVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest); - /** - * Verifies a Slice message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ListModelVersionsRequest name. */ + public name: string; - /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Slice - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice; + /** ListModelVersionsRequest pageSize. */ + public pageSize: number; - /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. - * @param message Slice - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListModelVersionsRequest pageToken. */ + public pageToken: string; - /** - * Converts this Slice to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** ListModelVersionsRequest filter. */ + public filter: string; - /** Represents a ModelService */ - class ModelService extends $protobuf.rpc.Service { + /** ListModelVersionsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Constructs a new ModelService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new ListModelVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Creates new ModelService 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. + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @returns Promise + * 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 uploadModel(request: google.cloud.aiplatform.v1beta1.IUploadModelRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * 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 getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @returns Promise + * Verifies a ListModelVersionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModel(request: google.cloud.aiplatform.v1beta1.IGetModelRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelsResponse + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsRequest */ - public listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @returns Promise + * 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 listModels(request: google.cloud.aiplatform.v1beta1.IListModelsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Converts this ListModelVersionsRequest to JSON. + * @returns JSON object */ - public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @returns Promise - */ - public updateModel(request: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): Promise; + /** Properties of a ListModelVersionsResponse. */ + interface IListModelVersionsResponse { - /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback): void; + /** ListModelVersionsResponse models */ + models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); - /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @returns Promise - */ - public deleteModel(request: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): Promise; + /** ListModelVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback): void; + /** Represents a ListModelVersionsResponse. */ + class ListModelVersionsResponse implements IListModelVersionsResponse { /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @returns Promise + * Constructs a new ListModelVersionsResponse. + * @param [properties] Properties to set */ - public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse); - /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation - */ - public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback): void; + /** ListModelVersionsResponse models. */ + public models: google.cloud.aiplatform.v1beta1.IModel[]; + + /** ListModelVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @returns Promise + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsResponse instance */ - public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @returns Promise + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getModelEvaluation(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * 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 listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @returns Promise + * 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 listModelEvaluations(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * Verifies a ListModelVersionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @returns Promise + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsResponse */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * 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 listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @returns Promise + /** + * Converts this ListModelVersionsResponse to JSON. + * @returns JSON object */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace ModelService { + /** Properties of an UpdateModelRequest. */ + interface IUpdateModelRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#uploadModel}. - * @param error Error, if any - * @param [response] Operation - */ - type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** UpdateModelRequest model */ + model?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** UpdateModelRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateModelRequest. */ + class UpdateModelRequest implements IUpdateModelRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModel}. - * @param error Error, if any - * @param [response] Model + * Constructs a new UpdateModelRequest. + * @param [properties] Properties to set */ - type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest); + + /** UpdateModelRequest model. */ + public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** UpdateModelRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModels}. - * @param error Error, if any - * @param [response] ListModelsResponse + * Creates a new UpdateModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelRequest instance */ - type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelsResponse) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#updateModel}. - * @param error Error, if any - * @param [response] Model + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Model) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#deleteModel}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#exportModel}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#importModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation + * Verifies an UpdateModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluations}. - * @param error Error, if any - * @param [response] ListModelEvaluationsResponse + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelRequest */ - type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluationSlice}. - * @param error Error, if any - * @param [response] ModelEvaluationSlice + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * @param message UpdateModelRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluationSlices}. - * @param error Error, if any - * @param [response] ListModelEvaluationSlicesResponse + * Converts this UpdateModelRequest to JSON. + * @returns JSON object */ - type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of an UploadModelRequest. */ - interface IUploadModelRequest { - - /** UploadModelRequest parent */ - parent?: (string|null); + /** Properties of a DeleteModelRequest. */ + interface IDeleteModelRequest { - /** UploadModelRequest model */ - model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** DeleteModelRequest name */ + name?: (string|null); } - /** Represents an UploadModelRequest. */ - class UploadModelRequest implements IUploadModelRequest { + /** Represents a DeleteModelRequest. */ + class DeleteModelRequest implements IDeleteModelRequest { /** - * Constructs a new UploadModelRequest. + * Constructs a new DeleteModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest); - - /** UploadModelRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest); - /** UploadModelRequest model. */ - public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** DeleteModelRequest name. */ + public name: string; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelRequest instance + * @returns DeleteModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelRequest): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): google.cloud.aiplatform.v1beta1.DeleteModelRequest; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a DeleteModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelRequest + * @returns DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelRequest; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelRequest + * @returns DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelRequest; /** - * Verifies an UploadModelRequest message. + * Verifies a DeleteModelRequest message. * @param message 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 UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelRequest + * @returns DeleteModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelRequest; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. - * @param message UploadModelRequest + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @param message DeleteModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelRequest to JSON. + * Converts this DeleteModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UploadModelOperationMetadata. */ - interface IUploadModelOperationMetadata { + /** Properties of a DeleteModelVersionRequest. */ + interface IDeleteModelVersionRequest { - /** UploadModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeleteModelVersionRequest name */ + name?: (string|null); } - /** Represents an UploadModelOperationMetadata. */ - class UploadModelOperationMetadata implements IUploadModelOperationMetadata { + /** Represents a DeleteModelVersionRequest. */ + class DeleteModelVersionRequest implements IDeleteModelVersionRequest { /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new DeleteModelVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest); - /** UploadModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeleteModelVersionRequest name. */ + public name: string; /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * Creates a new DeleteModelVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelOperationMetadata instance + * @returns DeleteModelVersionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * 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 UploadModelOperationMetadata + * @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.v1beta1.UploadModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelOperationMetadata + * @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.v1beta1.UploadModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Verifies an UploadModelOperationMetadata message. + * 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 an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelOperationMetadata + * @returns DeleteModelVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. - * @param message UploadModelOperationMetadata + * 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.v1beta1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this DeleteModelVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UploadModelResponse. */ - interface IUploadModelResponse { + /** Properties of a MergeVersionAliasesRequest. */ + interface IMergeVersionAliasesRequest { - /** UploadModelResponse model */ - model?: (string|null); + /** MergeVersionAliasesRequest name */ + name?: (string|null); + + /** MergeVersionAliasesRequest versionAliases */ + versionAliases?: (string[]|null); } - /** Represents an UploadModelResponse. */ - class UploadModelResponse implements IUploadModelResponse { + /** Represents a MergeVersionAliasesRequest. */ + class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { /** - * Constructs a new UploadModelResponse. + * Constructs a new MergeVersionAliasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest); - /** UploadModelResponse model. */ - public model: string; + /** MergeVersionAliasesRequest name. */ + public name: string; + + /** MergeVersionAliasesRequest versionAliases. */ + public versionAliases: string[]; /** - * Creates a new UploadModelResponse instance using the specified properties. + * Creates a new MergeVersionAliasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelResponse instance + * @returns MergeVersionAliasesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUploadModelResponse): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * 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 UploadModelResponse + * @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.v1beta1.UploadModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelResponse + * @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.v1beta1.UploadModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; /** - * Verifies an UploadModelResponse message. + * 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 an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelResponse + * @returns MergeVersionAliasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UploadModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. - * @param message UploadModelResponse + * 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.v1beta1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelResponse to JSON. + * Converts this MergeVersionAliasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetModelRequest. */ - interface IGetModelRequest { + /** Properties of an ExportModelRequest. */ + interface IExportModelRequest { - /** GetModelRequest name */ + /** ExportModelRequest name */ name?: (string|null); + + /** ExportModelRequest outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); } - /** Represents a GetModelRequest. */ - class GetModelRequest implements IGetModelRequest { + /** Represents an ExportModelRequest. */ + class ExportModelRequest implements IExportModelRequest { /** - * Constructs a new GetModelRequest. + * Constructs a new ExportModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest); - /** GetModelRequest name. */ + /** ExportModelRequest name. */ public name: string; + /** ExportModelRequest outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new ExportModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelRequest instance + * @returns ExportModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelRequest): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest): google.cloud.aiplatform.v1beta1.ExportModelRequest; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes an ExportModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelRequest + * @returns ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelRequest + * @returns ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest; /** - * Verifies a GetModelRequest message. + * Verifies an ExportModelRequest message. * @param message 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 GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelRequest + * @returns ExportModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @param message GetModelRequest + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * @param message ExportModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelRequest to JSON. + * Converts this ExportModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelsRequest. */ - interface IListModelsRequest { + namespace ExportModelRequest { - /** ListModelsRequest parent */ - parent?: (string|null); + /** Properties of an OutputConfig. */ + interface IOutputConfig { - /** ListModelsRequest filter */ - filter?: (string|null); + /** OutputConfig exportFormatId */ + exportFormatId?: (string|null); - /** ListModelsRequest pageSize */ - pageSize?: (number|null); + /** OutputConfig artifactDestination */ + artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** ListModelsRequest pageToken */ - pageToken?: (string|null); + /** OutputConfig imageDestination */ + imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); + } - /** ListModelsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { + + /** + * Constructs a new OutputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig); + + /** OutputConfig exportFormatId. */ + public exportFormatId: string; + + /** OutputConfig artifactDestination. */ + public artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig imageDestination. */ + public imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); + + /** + * Creates a new OutputConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; + + /** + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; + + /** + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; + + /** + * Verifies an OutputConfig message. + * @param message 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 OutputConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; + + /** + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OutputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListModelsRequest. */ - class ListModelsRequest implements IListModelsRequest { + /** Properties of an ExportModelOperationMetadata. */ + interface IExportModelOperationMetadata { - /** - * Constructs a new ListModelsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest); + /** ExportModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListModelsRequest parent. */ - public parent: string; + /** ExportModelOperationMetadata outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); + } - /** ListModelsRequest filter. */ - public filter: string; + /** Represents an ExportModelOperationMetadata. */ + class ExportModelOperationMetadata implements IExportModelOperationMetadata { - /** ListModelsRequest pageSize. */ - public pageSize: number; + /** + * Constructs a new ExportModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata); - /** ListModelsRequest pageToken. */ - public pageToken: string; + /** ExportModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListModelsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ExportModelOperationMetadata outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); /** - * Creates a new ListModelsRequest instance using the specified properties. + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelsRequest instance + * @returns ExportModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsRequest): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelsRequest + * @returns ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelsRequest + * @returns ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; /** - * Verifies a ListModelsRequest message. + * Verifies an ExportModelOperationMetadata message. * @param message 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 ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelsRequest + * @returns ExportModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; - /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. - * @param message ListModelsRequest + /** + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * @param message ExportModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelsRequest to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelsResponse. */ - interface IListModelsResponse { + namespace ExportModelOperationMetadata { - /** ListModelsResponse models */ - models?: (google.cloud.aiplatform.v1beta1.IModel[]|null); + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** ListModelsResponse nextPageToken */ - nextPageToken?: (string|null); + /** OutputInfo artifactOutputUri */ + artifactOutputUri?: (string|null); + + /** OutputInfo imageOutputUri */ + imageOutputUri?: (string|null); + } + + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { + + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo); + + /** OutputInfo artifactOutputUri. */ + public artifactOutputUri: string; + + /** OutputInfo imageOutputUri. */ + public imageOutputUri: string; + + /** + * Creates a new OutputInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + + /** + * Verifies an OutputInfo message. + * @param message 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 OutputInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; + + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OutputInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListModelsResponse. */ - class ListModelsResponse implements IListModelsResponse { + /** Properties of an ExportModelResponse. */ + interface IExportModelResponse { + } + + /** Represents an ExportModelResponse. */ + class ExportModelResponse implements IExportModelResponse { /** - * Constructs a new ListModelsResponse. + * Constructs a new ExportModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse); - - /** ListModelsResponse models. */ - public models: google.cloud.aiplatform.v1beta1.IModel[]; - - /** ListModelsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse); /** - * Creates a new ListModelsResponse instance using the specified properties. + * Creates a new ExportModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelsResponse instance + * @returns ExportModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelsResponse): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse): google.cloud.aiplatform.v1beta1.ExportModelResponse; /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelsResponse message from the specified reader or buffer. + * Decodes an ExportModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelsResponse + * @returns ExportModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelResponse; /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelsResponse + * @returns ExportModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelResponse; /** - * Verifies a ListModelsResponse message. + * Verifies an ExportModelResponse message. * @param message 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 ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelsResponse + * @returns ExportModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelResponse; /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @param message ListModelsResponse + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @param message ExportModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelsResponse to JSON. + * Converts this ExportModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateModelRequest. */ - interface IUpdateModelRequest { + /** Properties of an ImportModelEvaluationRequest. */ + interface IImportModelEvaluationRequest { - /** UpdateModelRequest model */ - model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** ImportModelEvaluationRequest parent */ + parent?: (string|null); - /** UpdateModelRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ImportModelEvaluationRequest modelEvaluation */ + modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); } - /** Represents an UpdateModelRequest. */ - class UpdateModelRequest implements IUpdateModelRequest { + /** Represents an ImportModelEvaluationRequest. */ + class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { /** - * Constructs a new UpdateModelRequest. + * Constructs a new ImportModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest); - /** UpdateModelRequest model. */ - public model?: (google.cloud.aiplatform.v1beta1.IModel|null); + /** ImportModelEvaluationRequest parent. */ + public parent: string; - /** UpdateModelRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ImportModelEvaluationRequest modelEvaluation. */ + public modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new ImportModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelRequest instance + * @returns ImportModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelRequest): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelRequest + * @returns ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelRequest + * @returns ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; /** - * Verifies an UpdateModelRequest message. + * Verifies an ImportModelEvaluationRequest message. * @param message 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 UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelRequest + * @returns ImportModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. - * @param message UpdateModelRequest + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @param message ImportModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this ImportModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteModelRequest. */ - interface IDeleteModelRequest { + /** Properties of a GetModelEvaluationRequest. */ + interface IGetModelEvaluationRequest { - /** DeleteModelRequest name */ + /** GetModelEvaluationRequest name */ name?: (string|null); } - /** Represents a DeleteModelRequest. */ - class DeleteModelRequest implements IDeleteModelRequest { + /** Represents a GetModelEvaluationRequest. */ + class GetModelEvaluationRequest implements IGetModelEvaluationRequest { /** - * Constructs a new DeleteModelRequest. + * Constructs a new GetModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest); - /** DeleteModelRequest name. */ + /** GetModelEvaluationRequest name. */ public name: string; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelRequest instance + * @returns GetModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelRequest): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelRequest + * @returns GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelRequest + * @returns GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Verifies a DeleteModelRequest message. + * Verifies a GetModelEvaluationRequest message. * @param message 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelRequest + * @returns GetModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. - * @param message DeleteModelRequest + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportModelRequest. */ - interface IExportModelRequest { + /** Properties of a ListModelEvaluationsRequest. */ + interface IListModelEvaluationsRequest { - /** ExportModelRequest name */ - name?: (string|null); + /** ListModelEvaluationsRequest parent */ + parent?: (string|null); - /** ExportModelRequest outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + /** ListModelEvaluationsRequest filter */ + filter?: (string|null); + + /** ListModelEvaluationsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ExportModelRequest. */ - class ExportModelRequest implements IExportModelRequest { + /** Represents a ListModelEvaluationsRequest. */ + class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { /** - * Constructs a new ExportModelRequest. + * Constructs a new ListModelEvaluationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest); - /** ExportModelRequest name. */ - public name: string; + /** ListModelEvaluationsRequest parent. */ + public parent: string; - /** ExportModelRequest outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null); + /** ListModelEvaluationsRequest filter. */ + public filter: string; + + /** ListModelEvaluationsRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationsRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ExportModelRequest instance using the specified properties. + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelRequest instance + * @returns ListModelEvaluationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelRequest): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelRequest + * @returns ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelRequest + * @returns ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Verifies an ExportModelRequest message. + * Verifies a ListModelEvaluationsRequest message. * @param message 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 ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelRequest + * @returns ListModelEvaluationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. - * @param message ExportModelRequest + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelRequest to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExportModelRequest { - - /** Properties of an OutputConfig. */ - interface IOutputConfig { - - /** OutputConfig exportFormatId */ - exportFormatId?: (string|null); - - /** OutputConfig artifactDestination */ - artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** OutputConfig imageDestination */ - imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); - } - - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { - - /** - * Constructs a new OutputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig); - - /** OutputConfig exportFormatId. */ - public exportFormatId: string; - - /** OutputConfig artifactDestination. */ - public artifactDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** OutputConfig imageDestination. */ - public imageDestination?: (google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null); - - /** - * Creates a new OutputConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Verifies an OutputConfig message. - * @param message 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 OutputConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig; - - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OutputConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an ExportModelOperationMetadata. */ - interface IExportModelOperationMetadata { - - /** ExportModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a ListModelEvaluationsResponse. */ + interface IListModelEvaluationsResponse { - /** ExportModelOperationMetadata outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); + /** ListModelEvaluationsResponse modelEvaluations */ + modelEvaluations?: (google.cloud.aiplatform.v1beta1.IModelEvaluation[]|null); + + /** ListModelEvaluationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportModelOperationMetadata. */ - class ExportModelOperationMetadata implements IExportModelOperationMetadata { + /** Represents a ListModelEvaluationsResponse. */ + class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { /** - * Constructs a new ExportModelOperationMetadata. + * Constructs a new ListModelEvaluationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse); - /** ExportModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListModelEvaluationsResponse modelEvaluations. */ + public modelEvaluations: google.cloud.aiplatform.v1beta1.IModelEvaluation[]; - /** ExportModelOperationMetadata outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null); + /** ListModelEvaluationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelOperationMetadata instance + * @returns ListModelEvaluationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelOperationMetadata + * @returns ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelOperationMetadata + * @returns ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies a ListModelEvaluationsResponse message. * @param message 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 ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelOperationMetadata + * @returns ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. - * @param message ExportModelOperationMetadata + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExportModelOperationMetadata { - - /** Properties of an OutputInfo. */ - interface IOutputInfo { - - /** OutputInfo artifactOutputUri */ - artifactOutputUri?: (string|null); - - /** OutputInfo imageOutputUri */ - imageOutputUri?: (string|null); - } - - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { - - /** - * Constructs a new OutputInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo); - - /** OutputInfo artifactOutputUri. */ - public artifactOutputUri: string; - - /** OutputInfo imageOutputUri. */ - public imageOutputUri: string; - - /** - * Creates a new OutputInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputInfo instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; - - /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OutputInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; - - /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; - - /** - * Verifies an OutputInfo message. - * @param message 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 OutputInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo; - - /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OutputInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Properties of a GetModelEvaluationSliceRequest. */ + interface IGetModelEvaluationSliceRequest { - /** Properties of an ExportModelResponse. */ - interface IExportModelResponse { + /** GetModelEvaluationSliceRequest name */ + name?: (string|null); } - /** Represents an ExportModelResponse. */ - class ExportModelResponse implements IExportModelResponse { + /** Represents a GetModelEvaluationSliceRequest. */ + class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { /** - * Constructs a new ExportModelResponse. + * Constructs a new GetModelEvaluationSliceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest); + + /** GetModelEvaluationSliceRequest name. */ + public name: string; /** - * Creates a new ExportModelResponse instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelResponse instance + * @returns GetModelEvaluationSliceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportModelResponse): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelResponse + * @returns GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelResponse + * @returns GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Verifies an ExportModelResponse message. + * Verifies a GetModelEvaluationSliceRequest message. * @param message 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 ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelResponse + * @returns GetModelEvaluationSliceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. - * @param message ExportModelResponse + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationSliceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelResponse to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportModelEvaluationRequest. */ - interface IImportModelEvaluationRequest { + /** Properties of a ListModelEvaluationSlicesRequest. */ + interface IListModelEvaluationSlicesRequest { - /** ImportModelEvaluationRequest parent */ + /** ListModelEvaluationSlicesRequest parent */ parent?: (string|null); - /** ImportModelEvaluationRequest modelEvaluation */ - modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + /** ListModelEvaluationSlicesRequest filter */ + filter?: (string|null); + + /** ListModelEvaluationSlicesRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationSlicesRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationSlicesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ImportModelEvaluationRequest. */ - class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { + /** Represents a ListModelEvaluationSlicesRequest. */ + class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new ListModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest); - /** ImportModelEvaluationRequest parent. */ + /** ListModelEvaluationSlicesRequest parent. */ public parent: string; - /** ImportModelEvaluationRequest modelEvaluation. */ - public modelEvaluation?: (google.cloud.aiplatform.v1beta1.IModelEvaluation|null); + /** ListModelEvaluationSlicesRequest filter. */ + public filter: string; + + /** ListModelEvaluationSlicesRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationSlicesRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationSlicesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportModelEvaluationRequest instance + * @returns ListModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportModelEvaluationRequest + * @returns ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportModelEvaluationRequest + * @returns ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a ListModelEvaluationSlicesRequest message. * @param message 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 ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportModelEvaluationRequest + * @returns ListModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. - * @param message ImportModelEvaluationRequest + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetModelEvaluationRequest. */ - interface IGetModelEvaluationRequest { + /** Properties of a ListModelEvaluationSlicesResponse. */ + interface IListModelEvaluationSlicesResponse { - /** GetModelEvaluationRequest name */ - name?: (string|null); + /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); + + /** ListModelEvaluationSlicesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetModelEvaluationRequest. */ - class GetModelEvaluationRequest implements IGetModelEvaluationRequest { + /** Represents a ListModelEvaluationSlicesResponse. */ + class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new ListModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse); - /** GetModelEvaluationRequest name. */ - public name: string; + /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; + + /** ListModelEvaluationSlicesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelEvaluationRequest instance + * @returns ListModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelEvaluationRequest + * @returns ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationRequest + * @returns ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a ListModelEvaluationSlicesResponse message. * @param message 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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelEvaluationRequest + * @returns ListModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationRequest + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelEvaluationsRequest. */ - interface IListModelEvaluationsRequest { + /** Properties of a PipelineJob. */ + interface IPipelineJob { - /** ListModelEvaluationsRequest parent */ - parent?: (string|null); + /** PipelineJob name */ + name?: (string|null); - /** ListModelEvaluationsRequest filter */ - filter?: (string|null); + /** PipelineJob displayName */ + displayName?: (string|null); - /** ListModelEvaluationsRequest pageSize */ - pageSize?: (number|null); + /** PipelineJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationsRequest pageToken */ - pageToken?: (string|null); + /** PipelineJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PipelineJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob pipelineSpec */ + pipelineSpec?: (google.protobuf.IStruct|null); + + /** PipelineJob state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); + + /** PipelineJob jobDetail */ + jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + + /** PipelineJob error */ + error?: (google.rpc.IStatus|null); + + /** PipelineJob labels */ + labels?: ({ [k: string]: string }|null); + + /** PipelineJob runtimeConfig */ + runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount */ + serviceAccount?: (string|null); + + /** PipelineJob network */ + network?: (string|null); } - /** Represents a ListModelEvaluationsRequest. */ - class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { + /** Represents a PipelineJob. */ + class PipelineJob implements IPipelineJob { /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new PipelineJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob); - /** ListModelEvaluationsRequest parent. */ - public parent: string; + /** PipelineJob name. */ + public name: string; - /** ListModelEvaluationsRequest filter. */ - public filter: string; + /** PipelineJob displayName. */ + public displayName: string; - /** ListModelEvaluationsRequest pageSize. */ - public pageSize: number; + /** PipelineJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationsRequest pageToken. */ - public pageToken: string; + /** PipelineJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PipelineJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** PipelineJob pipelineSpec. */ + public pipelineSpec?: (google.protobuf.IStruct|null); + + /** PipelineJob state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + + /** PipelineJob jobDetail. */ + public jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + + /** PipelineJob error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineJob labels. */ + public labels: { [k: string]: string }; + + /** PipelineJob runtimeConfig. */ + public runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + + /** PipelineJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** PipelineJob serviceAccount. */ + public serviceAccount: string; + + /** PipelineJob network. */ + public network: string; /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelEvaluationsRequest instance + * @returns PipelineJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsRequest + * @returns PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsRequest + * @returns PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a PipelineJob message. * @param message 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 ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationsRequest + * @returns PipelineJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationsRequest + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * @param message PipelineJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this PipelineJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelEvaluationsResponse. */ - interface IListModelEvaluationsResponse { + namespace PipelineJob { - /** ListModelEvaluationsResponse modelEvaluations */ - modelEvaluations?: (google.cloud.aiplatform.v1beta1.IModelEvaluation[]|null); + /** Properties of a RuntimeConfig. */ + interface IRuntimeConfig { - /** ListModelEvaluationsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** RuntimeConfig parameters */ + parameters?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); - /** Represents a ListModelEvaluationsResponse. */ - class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { + /** RuntimeConfig gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); - /** - * Constructs a new ListModelEvaluationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse); + /** RuntimeConfig parameterValues */ + parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + } - /** ListModelEvaluationsResponse modelEvaluations. */ - public modelEvaluations: google.cloud.aiplatform.v1beta1.IModelEvaluation[]; + /** Represents a RuntimeConfig. */ + class RuntimeConfig implements IRuntimeConfig { - /** ListModelEvaluationsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new RuntimeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig); - /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + /** RuntimeConfig parameters. */ + public parameters: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; - /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** RuntimeConfig gcsOutputDirectory. */ + public gcsOutputDirectory: string; - /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** RuntimeConfig parameterValues. */ + public parameterValues: { [k: string]: google.protobuf.IValue }; - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListModelEvaluationsResponse message. - * @param message 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 RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; - /** - * Converts this ListModelEvaluationsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a RuntimeConfig message. + * @param message 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 RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RuntimeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @param message RuntimeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RuntimeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a GetModelEvaluationSliceRequest. */ - interface IGetModelEvaluationSliceRequest { + /** Properties of a PipelineJobDetail. */ + interface IPipelineJobDetail { - /** GetModelEvaluationSliceRequest name */ - name?: (string|null); + /** PipelineJobDetail pipelineContext */ + pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail pipelineRunContext */ + pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail taskDetails */ + taskDetails?: (google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]|null); } - /** Represents a GetModelEvaluationSliceRequest. */ - class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { + /** Represents a PipelineJobDetail. */ + class PipelineJobDetail implements IPipelineJobDetail { /** - * Constructs a new GetModelEvaluationSliceRequest. + * Constructs a new PipelineJobDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail); - /** GetModelEvaluationSliceRequest name. */ - public name: string; + /** PipelineJobDetail pipelineContext. */ + public pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail pipelineRunContext. */ + public pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + + /** PipelineJobDetail taskDetails. */ + public taskDetails: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. + * Creates a new PipelineJobDetail instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelEvaluationSliceRequest instance + * @returns PipelineJobDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelEvaluationSliceRequest + * @returns PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationSliceRequest + * @returns PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Verifies a GetModelEvaluationSliceRequest message. + * Verifies a PipelineJobDetail message. * @param message 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 GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelEvaluationSliceRequest + * @returns PipelineJobDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJobDetail; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationSliceRequest + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * @param message PipelineJobDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelEvaluationSliceRequest to JSON. + * Converts this PipelineJobDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelEvaluationSlicesRequest. */ - interface IListModelEvaluationSlicesRequest { + /** Properties of a PipelineTaskDetail. */ + interface IPipelineTaskDetail { - /** ListModelEvaluationSlicesRequest parent */ - parent?: (string|null); + /** PipelineTaskDetail taskId */ + taskId?: (number|Long|string|null); - /** ListModelEvaluationSlicesRequest filter */ - filter?: (string|null); + /** PipelineTaskDetail parentTaskId */ + parentTaskId?: (number|Long|string|null); - /** ListModelEvaluationSlicesRequest pageSize */ - pageSize?: (number|null); + /** PipelineTaskDetail taskName */ + taskName?: (string|null); - /** ListModelEvaluationSlicesRequest pageToken */ - pageToken?: (string|null); + /** PipelineTaskDetail createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationSlicesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PipelineTaskDetail startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail */ + executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); + + /** PipelineTaskDetail execution */ + execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** PipelineTaskDetail error */ + error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus */ + pipelineTaskStatus?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + + /** PipelineTaskDetail inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); + + /** PipelineTaskDetail outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); } - /** Represents a ListModelEvaluationSlicesRequest. */ - class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + /** Represents a PipelineTaskDetail. */ + class PipelineTaskDetail implements IPipelineTaskDetail { /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new PipelineTaskDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail); - /** ListModelEvaluationSlicesRequest parent. */ - public parent: string; + /** PipelineTaskDetail taskId. */ + public taskId: (number|Long|string); - /** ListModelEvaluationSlicesRequest filter. */ - public filter: string; + /** PipelineTaskDetail parentTaskId. */ + public parentTaskId: (number|Long|string); - /** ListModelEvaluationSlicesRequest pageSize. */ - public pageSize: number; + /** PipelineTaskDetail taskName. */ + public taskName: string; - /** ListModelEvaluationSlicesRequest pageToken. */ - public pageToken: string; + /** PipelineTaskDetail createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListModelEvaluationSlicesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PipelineTaskDetail startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail. */ + public executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); + + /** PipelineTaskDetail execution. */ + public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + + /** PipelineTaskDetail error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus. */ + public pipelineTaskStatus: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]; + + /** PipelineTaskDetail inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + + /** PipelineTaskDetail outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesRequest instance + * @returns PipelineTaskDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesRequest + * @returns PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesRequest + * @returns PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a PipelineTaskDetail message. * @param message 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 ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationSlicesRequest + * @returns PipelineTaskDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesRequest + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @param message PipelineTaskDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. + * Converts this PipelineTaskDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelEvaluationSlicesResponse. */ - interface IListModelEvaluationSlicesResponse { - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); - - /** ListModelEvaluationSlicesResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListModelEvaluationSlicesResponse. */ - class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { - - /** - * Constructs a new ListModelEvaluationSlicesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse); - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; - - /** ListModelEvaluationSlicesResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; - - /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + namespace PipelineTaskDetail { - /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + /** Properties of a PipelineTaskStatus. */ + interface IPipelineTaskStatus { - /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + /** PipelineTaskStatus updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a ListModelEvaluationSlicesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** PipelineTaskStatus state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); - /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationSlicesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; + /** PipelineTaskStatus error */ + error?: (google.rpc.IStatus|null); + } - /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a PipelineTaskStatus. */ + class PipelineTaskStatus implements IPipelineTaskStatus { - /** - * Converts this ListModelEvaluationSlicesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new PipelineTaskStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus); - /** Properties of a PipelineJob. */ - interface IPipelineJob { + /** PipelineTaskStatus updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** PipelineJob name */ - name?: (string|null); + /** PipelineTaskStatus state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); - /** PipelineJob displayName */ - displayName?: (string|null); + /** PipelineTaskStatus error. */ + public error?: (google.rpc.IStatus|null); - /** PipelineJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskStatus instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** PipelineJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** PipelineJob pipelineSpec */ - pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** PipelineJob state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); + /** + * Verifies a PipelineTaskStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PipelineJob jobDetail */ - jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; - /** PipelineJob error */ - error?: (google.rpc.IStatus|null); + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @param message PipelineTaskStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob labels */ - labels?: ({ [k: string]: string }|null); + /** + * Converts this PipelineTaskStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** PipelineJob runtimeConfig */ - runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + /** Properties of an ArtifactList. */ + interface IArtifactList { - /** PipelineJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); + } - /** PipelineJob serviceAccount */ - serviceAccount?: (string|null); + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { - /** PipelineJob network */ - network?: (string|null); - } + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList); - /** Represents a PipelineJob. */ - class PipelineJob implements IPipelineJob { + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; - /** - * Constructs a new PipelineJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob); + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** PipelineJob name. */ - public name: string; + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob displayName. */ - public displayName: string; + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** PipelineJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** PipelineJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies an ArtifactList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PipelineJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; - /** PipelineJob pipelineSpec. */ - public pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @param message ArtifactList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** PipelineJob jobDetail. */ - public jobDetail?: (google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + CANCEL_PENDING = 4, + CANCELLING = 5, + CANCELLED = 6, + FAILED = 7, + SKIPPED = 8, + NOT_TRIGGERED = 9 + } + } - /** PipelineJob error. */ - public error?: (google.rpc.IStatus|null); + /** Properties of a PipelineTaskExecutorDetail. */ + interface IPipelineTaskExecutorDetail { - /** PipelineJob labels. */ - public labels: { [k: string]: string }; + /** PipelineTaskExecutorDetail containerDetail */ + containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); - /** PipelineJob runtimeConfig. */ - public runtimeConfig?: (google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null); + /** PipelineTaskExecutorDetail customJobDetail */ + customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + } - /** PipelineJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Represents a PipelineTaskExecutorDetail. */ + class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { - /** PipelineJob serviceAccount. */ - public serviceAccount: string; + /** + * Constructs a new PipelineTaskExecutorDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail); - /** PipelineJob network. */ - public network: string; + /** PipelineTaskExecutorDetail containerDetail. */ + public containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail. */ + public customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + + /** PipelineTaskExecutorDetail details. */ + public details?: ("containerDetail"|"customJobDetail"); /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJob instance + * @returns PipelineTaskExecutorDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJob): google.cloud.aiplatform.v1beta1.PipelineJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJob + * @returns PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJob + * @returns PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Verifies a PipelineJob message. + * Verifies a PipelineTaskExecutorDetail message. * @param message 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 PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJob + * @returns PipelineTaskExecutorDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. - * @param message PipelineJob + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * @param message PipelineTaskExecutorDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJob to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PipelineJob { - - /** Properties of a RuntimeConfig. */ - interface IRuntimeConfig { + namespace PipelineTaskExecutorDetail { - /** RuntimeConfig parameters */ - parameters?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); + /** Properties of a ContainerDetail. */ + interface IContainerDetail { - /** RuntimeConfig gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** ContainerDetail mainJob */ + mainJob?: (string|null); - /** RuntimeConfig parameterValues */ - parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + /** ContainerDetail preCachingCheckJob */ + preCachingCheckJob?: (string|null); } - /** Represents a RuntimeConfig. */ - class RuntimeConfig implements IRuntimeConfig { + /** Represents a ContainerDetail. */ + class ContainerDetail implements IContainerDetail { /** - * Constructs a new RuntimeConfig. + * Constructs a new ContainerDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail); - /** RuntimeConfig parameters. */ - public parameters: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; + /** ContainerDetail mainJob. */ + public mainJob: string; - /** RuntimeConfig gcsOutputDirectory. */ - public gcsOutputDirectory: string; + /** ContainerDetail preCachingCheckJob. */ + public preCachingCheckJob: string; - /** RuntimeConfig parameterValues. */ - public parameterValues: { [k: string]: google.protobuf.IValue }; + /** + * Creates a new ContainerDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; /** - * Creates a new RuntimeConfig instance using the specified properties. + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + + /** + * Verifies a ContainerDetail message. + * @param message 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 ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainerDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @param message ContainerDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContainerDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomJobDetail. */ + interface ICustomJobDetail { + + /** CustomJobDetail job */ + job?: (string|null); + } + + /** Represents a CustomJobDetail. */ + class CustomJobDetail implements ICustomJobDetail { + + /** + * Constructs a new CustomJobDetail. * @param [properties] Properties to set - * @returns RuntimeConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail); + + /** CustomJobDetail job. */ + public job: string; /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode + * Creates a new CustomJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RuntimeConfig message from the specified reader or buffer. + * Decodes a CustomJobDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RuntimeConfig + * @returns CustomJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RuntimeConfig + * @returns CustomJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; /** - * Verifies a RuntimeConfig message. + * Verifies a CustomJobDetail message. * @param message 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 RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RuntimeConfig + * @returns CustomJobDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @param message RuntimeConfig + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @param message CustomJobDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RuntimeConfig to JSON. + * Converts this CustomJobDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - /** Properties of a PipelineJobDetail. */ - interface IPipelineJobDetail { + /** PipelineState enum. */ + enum PipelineState { + PIPELINE_STATE_UNSPECIFIED = 0, + PIPELINE_STATE_QUEUED = 1, + PIPELINE_STATE_PENDING = 2, + PIPELINE_STATE_RUNNING = 3, + PIPELINE_STATE_SUCCEEDED = 4, + PIPELINE_STATE_FAILED = 5, + PIPELINE_STATE_CANCELLING = 6, + PIPELINE_STATE_CANCELLED = 7, + PIPELINE_STATE_PAUSED = 8 + } - /** PipelineJobDetail pipelineContext */ - pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** Properties of a Value. */ + interface IValue { - /** PipelineJobDetail pipelineRunContext */ - pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** Value intValue */ + intValue?: (number|Long|string|null); + + /** Value doubleValue */ + doubleValue?: (number|null); - /** PipelineJobDetail taskDetails */ - taskDetails?: (google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]|null); + /** Value stringValue */ + stringValue?: (string|null); } - /** Represents a PipelineJobDetail. */ - class PipelineJobDetail implements IPipelineJobDetail { + /** Represents a Value. */ + class Value implements IValue { /** - * Constructs a new PipelineJobDetail. + * Constructs a new Value. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail); + constructor(properties?: google.cloud.aiplatform.v1beta1.IValue); - /** PipelineJobDetail pipelineContext. */ - public pipelineContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** Value intValue. */ + public intValue?: (number|Long|string|null); - /** PipelineJobDetail pipelineRunContext. */ - public pipelineRunContext?: (google.cloud.aiplatform.v1beta1.IContext|null); + /** Value doubleValue. */ + public doubleValue?: (number|null); - /** PipelineJobDetail taskDetails. */ - public taskDetails: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail[]; + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value value. */ + public value?: ("intValue"|"doubleValue"|"stringValue"); /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new Value instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJobDetail instance + * @returns Value instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineJobDetail): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static create(properties?: google.cloud.aiplatform.v1beta1.IValue): google.cloud.aiplatform.v1beta1.Value; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJobDetail + * @returns Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Value; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJobDetail + * @returns Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Value; /** - * Verifies a PipelineJobDetail message. + * Verifies a Value message. * @param message 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 PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJobDetail + * @returns Value */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Value; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. - * @param message PipelineJobDetail + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PipelineTaskDetail. */ - interface IPipelineTaskDetail { - - /** PipelineTaskDetail taskId */ - taskId?: (number|Long|string|null); - - /** PipelineTaskDetail parentTaskId */ - parentTaskId?: (number|Long|string|null); - - /** PipelineTaskDetail taskName */ - taskName?: (string|null); - - /** PipelineTaskDetail createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail executorDetail */ - executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); - - /** PipelineTaskDetail state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); - - /** PipelineTaskDetail execution */ - execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); - - /** PipelineTaskDetail error */ - error?: (google.rpc.IStatus|null); - - /** PipelineTaskDetail pipelineTaskStatus */ - pipelineTaskStatus?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]|null); - - /** PipelineTaskDetail inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); - - /** PipelineTaskDetail outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }|null); - } - - /** Represents a PipelineTaskDetail. */ - class PipelineTaskDetail implements IPipelineTaskDetail { + /** Represents a PipelineService */ + class PipelineService extends $protobuf.rpc.Service { /** - * Constructs a new PipelineTaskDetail. - * @param [properties] Properties to set + * Constructs a new PipelineService 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.IPipelineTaskDetail); - - /** PipelineTaskDetail taskId. */ - public taskId: (number|Long|string); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** PipelineTaskDetail parentTaskId. */ - public parentTaskId: (number|Long|string); + /** + * Creates new PipelineService 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): PipelineService; - /** PipelineTaskDetail taskName. */ - public taskName: string; + /** + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline + */ + public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback): void; - /** PipelineTaskDetail createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @returns Promise + */ + public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): Promise; - /** PipelineTaskDetail startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline + */ + public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback): void; - /** PipelineTaskDetail endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @returns Promise + */ + public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): Promise; - /** PipelineTaskDetail executorDetail. */ - public executorDetail?: (google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null); + /** + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + */ + public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback): void; - /** PipelineTaskDetail state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); + /** + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @returns Promise + */ + public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): Promise; - /** PipelineTaskDetail execution. */ - public execution?: (google.cloud.aiplatform.v1beta1.IExecution|null); + /** + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback): void; - /** PipelineTaskDetail error. */ - public error?: (google.rpc.IStatus|null); + /** + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @returns Promise + */ + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): Promise; - /** PipelineTaskDetail pipelineTaskStatus. */ - public pipelineTaskStatus: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus[]; + /** + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback): void; - /** PipelineTaskDetail inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + /** + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @returns Promise + */ + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): Promise; - /** PipelineTaskDetail outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList }; + /** + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob + */ + public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback): void; /** - * Creates a new PipelineTaskDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns PipelineTaskDetail instance + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): Promise; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback): void; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): Promise; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PipelineTaskDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback): void; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PipelineTaskDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): Promise; /** - * Verifies a PipelineTaskDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback): void; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PipelineTaskDetail + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail; + public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): Promise; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. - * @param message PipelineTaskDetail - * @param [options] Conversion options - * @returns Plain object + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest 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.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback): void; /** - * Converts this PipelineTaskDetail to JSON. - * @returns JSON object + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): Promise; } - namespace PipelineTaskDetail { - - /** Properties of a PipelineTaskStatus. */ - interface IPipelineTaskStatus { - - /** PipelineTaskStatus updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskStatus state */ - state?: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null); - - /** PipelineTaskStatus error */ - error?: (google.rpc.IStatus|null); - } - - /** Represents a PipelineTaskStatus. */ - class PipelineTaskStatus implements IPipelineTaskStatus { - - /** - * Constructs a new PipelineTaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus); - - /** PipelineTaskStatus updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + namespace PipelineService { - /** PipelineTaskStatus state. */ - public state: (google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; - /** PipelineTaskStatus error. */ - public error?: (google.rpc.IStatus|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PipelineTaskStatus instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listTrainingPipelines}. + * @param error Error, if any + * @param [response] ListTrainingPipelinesResponse + */ + type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) => void; - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deleteTrainingPipeline}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelTrainingPipeline}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; - /** - * Verifies a PipelineTaskStatus message. - * @param message 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.PipelineService#listPipelineJobs}. + * @param error Error, if any + * @param [response] ListPipelineJobsResponse + */ + type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) => void; - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PipelineTaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deletePipelineJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @param message PipelineTaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelPipelineJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } - /** - * Converts this PipelineTaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a CreateTrainingPipelineRequest. */ + interface ICreateTrainingPipelineRequest { - /** Properties of an ArtifactList. */ - interface IArtifactList { + /** CreateTrainingPipelineRequest parent */ + parent?: (string|null); - /** ArtifactList artifacts */ - artifacts?: (google.cloud.aiplatform.v1beta1.IArtifact[]|null); - } + /** CreateTrainingPipelineRequest trainingPipeline */ + trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); + } - /** Represents an ArtifactList. */ - class ArtifactList implements IArtifactList { + /** Represents a CreateTrainingPipelineRequest. */ + class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { - /** - * Constructs a new ArtifactList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList); + /** + * Constructs a new CreateTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest); - /** ArtifactList artifacts. */ - public artifacts: google.cloud.aiplatform.v1beta1.IArtifact[]; + /** CreateTrainingPipelineRequest parent. */ + public parent: string; - /** - * Creates a new ArtifactList instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactList instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** CreateTrainingPipelineRequest trainingPipeline. */ + public trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; - /** - * Verifies an ArtifactList message. - * @param message 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 CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ArtifactList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList; + /** + * Verifies a CreateTrainingPipelineRequest message. + * @param message 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 an ArtifactList message. Also converts values to other types if specified. - * @param message ArtifactList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; - /** - * Converts this ArtifactList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CreateTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - RUNNING = 2, - SUCCEEDED = 3, - CANCEL_PENDING = 4, - CANCELLING = 5, - CANCELLED = 6, - FAILED = 7, - SKIPPED = 8, - NOT_TRIGGERED = 9 - } + /** + * Converts this CreateTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a PipelineTaskExecutorDetail. */ - interface IPipelineTaskExecutorDetail { - - /** PipelineTaskExecutorDetail containerDetail */ - containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); + /** Properties of a GetTrainingPipelineRequest. */ + interface IGetTrainingPipelineRequest { - /** PipelineTaskExecutorDetail customJobDetail */ - customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + /** GetTrainingPipelineRequest name */ + name?: (string|null); } - /** Represents a PipelineTaskExecutorDetail. */ - class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { + /** Represents a GetTrainingPipelineRequest. */ + class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new GetTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail); - - /** PipelineTaskExecutorDetail containerDetail. */ - public containerDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null); - - /** PipelineTaskExecutorDetail customJobDetail. */ - public customJobDetail?: (google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest); - /** PipelineTaskExecutorDetail details. */ - public details?: ("containerDetail"|"customJobDetail"); + /** GetTrainingPipelineRequest name. */ + public name: string; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskExecutorDetail instance + * @returns GetTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskExecutorDetail + * @returns GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskExecutorDetail + * @returns GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a GetTrainingPipelineRequest message. * @param message 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 PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskExecutorDetail + * @returns GetTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. - * @param message PipelineTaskExecutorDetail + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message GetTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PipelineTaskExecutorDetail { + /** Properties of a ListTrainingPipelinesRequest. */ + interface IListTrainingPipelinesRequest { - /** Properties of a ContainerDetail. */ - interface IContainerDetail { + /** ListTrainingPipelinesRequest parent */ + parent?: (string|null); - /** ContainerDetail mainJob */ - mainJob?: (string|null); + /** ListTrainingPipelinesRequest filter */ + filter?: (string|null); - /** ContainerDetail preCachingCheckJob */ - preCachingCheckJob?: (string|null); - } + /** ListTrainingPipelinesRequest pageSize */ + pageSize?: (number|null); - /** Represents a ContainerDetail. */ - class ContainerDetail implements IContainerDetail { + /** ListTrainingPipelinesRequest pageToken */ + pageToken?: (string|null); - /** - * Constructs a new ContainerDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail); + /** ListTrainingPipelinesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** ContainerDetail mainJob. */ - public mainJob: string; + /** Represents a ListTrainingPipelinesRequest. */ + class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { - /** ContainerDetail preCachingCheckJob. */ - public preCachingCheckJob: string; + /** + * Constructs a new ListTrainingPipelinesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest); - /** - * Creates a new ContainerDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** ListTrainingPipelinesRequest parent. */ + public parent: string; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest filter. */ + public filter: string; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest pageSize. */ + public pageSize: number; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** ListTrainingPipelinesRequest pageToken. */ + public pageToken: string; - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** ListTrainingPipelinesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** - * Verifies a ContainerDetail message. - * @param message 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 ListTrainingPipelinesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContainerDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @param message ContainerDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ContainerDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; - /** Properties of a CustomJobDetail. */ - interface ICustomJobDetail { + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; - /** CustomJobDetail job */ - job?: (string|null); - } + /** + * Verifies a ListTrainingPipelinesRequest message. + * @param message 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 CustomJobDetail. */ - class CustomJobDetail implements ICustomJobDetail { + /** + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; - /** - * Constructs a new CustomJobDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail); + /** + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CustomJobDetail job. */ - public job: string; + /** + * Converts this ListTrainingPipelinesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomJobDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** Properties of a ListTrainingPipelinesResponse. */ + interface IListTrainingPipelinesResponse { - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse trainingPipelines */ + trainingPipelines?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline[]|null); - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** Represents a ListTrainingPipelinesResponse. */ + class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** + * Constructs a new ListTrainingPipelinesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse); - /** - * Verifies a CustomJobDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ListTrainingPipelinesResponse trainingPipelines. */ + public trainingPipelines: google.cloud.aiplatform.v1beta1.ITrainingPipeline[]; - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CustomJobDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail; + /** ListTrainingPipelinesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @param message CustomJobDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; - /** - * Converts this CustomJobDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a PipelineService */ - class PipelineService extends $protobuf.rpc.Service { + /** + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + + /** + * Verifies a ListTrainingPipelinesResponse message. + * @param message 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 ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; /** - * Constructs a new PipelineService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesResponse + * @param [options] Conversion options + * @returns Plain object */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Creates new PipelineService 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. + * Converts this ListTrainingPipelinesResponse to JSON. + * @returns JSON object */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteTrainingPipelineRequest. */ + interface IDeleteTrainingPipelineRequest { + + /** DeleteTrainingPipelineRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTrainingPipelineRequest. */ + class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * Constructs a new DeleteTrainingPipelineRequest. + * @param [properties] Properties to set */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest); + + /** DeleteTrainingPipelineRequest name. */ + public name: string; /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @returns Promise + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrainingPipelineRequest instance */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @returns Promise + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @returns Promise + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a DeleteTrainingPipelineRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @returns Promise + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTrainingPipelineRequest */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message DeleteTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @returns Promise + * Converts this DeleteTrainingPipelineRequest to JSON. + * @returns JSON object */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelTrainingPipelineRequest. */ + interface ICancelTrainingPipelineRequest { + + /** CancelTrainingPipelineRequest name */ + name?: (string|null); + } + + /** Represents a CancelTrainingPipelineRequest. */ + class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob + * Constructs a new CancelTrainingPipelineRequest. + * @param [properties] Properties to set */ - public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest); + + /** CancelTrainingPipelineRequest name. */ + public name: string; /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @returns Promise + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelTrainingPipelineRequest instance */ - public createPipelineJob(request: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @returns Promise + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPipelineJob(request: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @returns Promise + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listPipelineJobs(request: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a CancelTrainingPipelineRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @returns Promise + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelTrainingPipelineRequest */ - public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CancelTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @returns Promise + * Converts this CancelTrainingPipelineRequest to JSON. + * @returns JSON object */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace PipelineService { + /** Properties of a CreatePipelineJobRequest. */ + interface ICreatePipelineJobRequest { + + /** CreatePipelineJobRequest parent */ + parent?: (string|null); + + /** CreatePipelineJobRequest pipelineJob */ + pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId */ + pipelineJobId?: (string|null); + } + + /** Represents a CreatePipelineJobRequest. */ + class CreatePipelineJobRequest implements ICreatePipelineJobRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Constructs a new CreatePipelineJobRequest. + * @param [properties] Properties to set */ - type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest); + + /** CreatePipelineJobRequest parent. */ + public parent: string; + + /** CreatePipelineJobRequest pipelineJob. */ + public pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + + /** CreatePipelineJobRequest pipelineJobId. */ + public pipelineJobId: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Creates a new CreatePipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePipelineJobRequest instance */ - type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.TrainingPipeline) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listTrainingPipelines}. - * @param error Error, if any - * @param [response] ListTrainingPipelinesResponse + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deleteTrainingPipeline}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelTrainingPipeline}. - * @param error Error, if any - * @param [response] Empty + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Verifies a CreatePipelineJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.PipelineJob) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listPipelineJobs}. - * @param error Error, if any - * @param [response] ListPipelineJobsResponse + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePipelineJobRequest */ - type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deletePipelineJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @param message CreatePipelineJobRequest + * @param [options] Conversion options + * @returns Plain object */ - type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelPipelineJob}. - * @param error Error, if any - * @param [response] Empty + * Converts this CreatePipelineJobRequest to JSON. + * @returns JSON object */ - type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTrainingPipelineRequest. */ - interface ICreateTrainingPipelineRequest { - - /** CreateTrainingPipelineRequest parent */ - parent?: (string|null); + /** Properties of a GetPipelineJobRequest. */ + interface IGetPipelineJobRequest { - /** CreateTrainingPipelineRequest trainingPipeline */ - trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); + /** GetPipelineJobRequest name */ + name?: (string|null); } - /** Represents a CreateTrainingPipelineRequest. */ - class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { + /** Represents a GetPipelineJobRequest. */ + class GetPipelineJobRequest implements IGetPipelineJobRequest { /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new GetPipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest); - - /** CreateTrainingPipelineRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest); - /** CreateTrainingPipelineRequest trainingPipeline. */ - public trainingPipeline?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline|null); + /** GetPipelineJobRequest name. */ + public name: string; /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrainingPipelineRequest instance + * @returns GetPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTrainingPipelineRequest + * @returns GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrainingPipelineRequest + * @returns GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a GetPipelineJobRequest message. * @param message 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 CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrainingPipelineRequest + * @returns GetPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CreateTrainingPipelineRequest + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * @param message GetPipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this GetPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTrainingPipelineRequest. */ - interface IGetTrainingPipelineRequest { + /** Properties of a ListPipelineJobsRequest. */ + interface IListPipelineJobsRequest { - /** GetTrainingPipelineRequest name */ - name?: (string|null); + /** ListPipelineJobsRequest parent */ + parent?: (string|null); + + /** ListPipelineJobsRequest filter */ + filter?: (string|null); + + /** ListPipelineJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListPipelineJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListPipelineJobsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a GetTrainingPipelineRequest. */ - class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + /** Represents a ListPipelineJobsRequest. */ + class ListPipelineJobsRequest implements IListPipelineJobsRequest { /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new ListPipelineJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest); - /** GetTrainingPipelineRequest name. */ - public name: string; + /** ListPipelineJobsRequest parent. */ + public parent: string; + + /** ListPipelineJobsRequest filter. */ + public filter: string; + + /** ListPipelineJobsRequest pageSize. */ + public pageSize: number; + + /** ListPipelineJobsRequest pageToken. */ + public pageToken: string; + + /** ListPipelineJobsRequest orderBy. */ + public orderBy: string; /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrainingPipelineRequest instance + * @returns ListPipelineJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrainingPipelineRequest + * @returns ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrainingPipelineRequest + * @returns ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a ListPipelineJobsRequest message. * @param message 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 GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrainingPipelineRequest + * @returns ListPipelineJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message GetTrainingPipelineRequest + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * @param message ListPipelineJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTrainingPipelinesRequest. */ - interface IListTrainingPipelinesRequest { - - /** ListTrainingPipelinesRequest parent */ - parent?: (string|null); - - /** ListTrainingPipelinesRequest filter */ - filter?: (string|null); - - /** ListTrainingPipelinesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ListPipelineJobsResponse. */ + interface IListPipelineJobsResponse { - /** ListTrainingPipelinesRequest pageToken */ - pageToken?: (string|null); + /** ListPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); - /** ListTrainingPipelinesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListPipelineJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListTrainingPipelinesRequest. */ - class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + /** Represents a ListPipelineJobsResponse. */ + class ListPipelineJobsResponse implements IListPipelineJobsResponse { /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new ListPipelineJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest); - - /** ListTrainingPipelinesRequest parent. */ - public parent: string; - - /** ListTrainingPipelinesRequest filter. */ - public filter: string; - - /** ListTrainingPipelinesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse); - /** ListTrainingPipelinesRequest pageToken. */ - public pageToken: string; + /** ListPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; - /** ListTrainingPipelinesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListPipelineJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesRequest instance + * @returns ListPipelineJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesRequest + * @returns ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesRequest + * @returns ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a ListPipelineJobsResponse message. * @param message 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 ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesRequest + * @returns ListPipelineJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesRequest + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * @param message ListPipelineJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTrainingPipelinesResponse. */ - interface IListTrainingPipelinesResponse { - - /** ListTrainingPipelinesResponse trainingPipelines */ - trainingPipelines?: (google.cloud.aiplatform.v1beta1.ITrainingPipeline[]|null); + /** Properties of a DeletePipelineJobRequest. */ + interface IDeletePipelineJobRequest { - /** ListTrainingPipelinesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeletePipelineJobRequest name */ + name?: (string|null); } - /** Represents a ListTrainingPipelinesResponse. */ - class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + /** Represents a DeletePipelineJobRequest. */ + class DeletePipelineJobRequest implements IDeletePipelineJobRequest { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new DeletePipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse); - - /** ListTrainingPipelinesResponse trainingPipelines. */ - public trainingPipelines: google.cloud.aiplatform.v1beta1.ITrainingPipeline[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest); - /** ListTrainingPipelinesResponse nextPageToken. */ - public nextPageToken: string; + /** DeletePipelineJobRequest name. */ + public name: string; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesResponse instance + * @returns DeletePipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesResponse + * @returns DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesResponse + * @returns DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a DeletePipelineJobRequest message. * @param message 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 ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesResponse + * @returns DeletePipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesResponse + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * @param message DeletePipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTrainingPipelineRequest. */ - interface IDeleteTrainingPipelineRequest { + /** Properties of a CancelPipelineJobRequest. */ + interface ICancelPipelineJobRequest { - /** DeleteTrainingPipelineRequest name */ + /** CancelPipelineJobRequest name */ name?: (string|null); } - /** Represents a DeleteTrainingPipelineRequest. */ - class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + /** Represents a CancelPipelineJobRequest. */ + class CancelPipelineJobRequest implements ICancelPipelineJobRequest { /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new CancelPipelineJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest); - /** DeleteTrainingPipelineRequest name. */ + /** CancelPipelineJobRequest name. */ public name: string; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrainingPipelineRequest instance + * @returns CancelPipelineJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrainingPipelineRequest + * @returns CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrainingPipelineRequest + * @returns CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a CancelPipelineJobRequest message. * @param message 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 DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrainingPipelineRequest + * @returns CancelPipelineJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message DeleteTrainingPipelineRequest + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * @param message CancelPipelineJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelTrainingPipelineRequest. */ - interface ICancelTrainingPipelineRequest { + /** Properties of a TrainingPipeline. */ + interface ITrainingPipeline { - /** CancelTrainingPipelineRequest name */ + /** TrainingPipeline name */ name?: (string|null); + + /** TrainingPipeline displayName */ + displayName?: (string|null); + + /** TrainingPipeline inputDataConfig */ + inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); + + /** TrainingPipeline trainingTaskDefinition */ + trainingTaskDefinition?: (string|null); + + /** TrainingPipeline trainingTaskInputs */ + trainingTaskInputs?: (google.protobuf.IValue|null); + + /** TrainingPipeline trainingTaskMetadata */ + trainingTaskMetadata?: (google.protobuf.IValue|null); + + /** TrainingPipeline modelToUpload */ + modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** TrainingPipeline modelId */ + modelId?: (string|null); + + /** TrainingPipeline parentModel */ + parentModel?: (string|null); + + /** TrainingPipeline state */ + state?: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState|null); + + /** TrainingPipeline error */ + error?: (google.rpc.IStatus|null); + + /** TrainingPipeline createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline labels */ + labels?: ({ [k: string]: string }|null); + + /** TrainingPipeline encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a CancelTrainingPipelineRequest. */ - class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { + /** Represents a TrainingPipeline. */ + class TrainingPipeline implements ITrainingPipeline { /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new TrainingPipeline. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline); - /** CancelTrainingPipelineRequest name. */ + /** TrainingPipeline name. */ public name: string; + /** TrainingPipeline displayName. */ + public displayName: string; + + /** TrainingPipeline inputDataConfig. */ + public inputDataConfig?: (google.cloud.aiplatform.v1beta1.IInputDataConfig|null); + + /** TrainingPipeline trainingTaskDefinition. */ + public trainingTaskDefinition: string; + + /** TrainingPipeline trainingTaskInputs. */ + public trainingTaskInputs?: (google.protobuf.IValue|null); + + /** TrainingPipeline trainingTaskMetadata. */ + public trainingTaskMetadata?: (google.protobuf.IValue|null); + + /** TrainingPipeline modelToUpload. */ + public modelToUpload?: (google.cloud.aiplatform.v1beta1.IModel|null); + + /** TrainingPipeline modelId. */ + public modelId: string; + + /** TrainingPipeline parentModel. */ + public parentModel: string; + + /** TrainingPipeline state. */ + public state: (google.cloud.aiplatform.v1beta1.PipelineState|keyof typeof google.cloud.aiplatform.v1beta1.PipelineState); + + /** TrainingPipeline error. */ + public error?: (google.rpc.IStatus|null); + + /** TrainingPipeline createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TrainingPipeline labels. */ + public labels: { [k: string]: string }; + + /** TrainingPipeline encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new TrainingPipeline instance using the specified properties. * @param [properties] Properties to set - * @returns CancelTrainingPipelineRequest instance + * @returns TrainingPipeline instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingPipeline): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelTrainingPipelineRequest + * @returns TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelTrainingPipelineRequest + * @returns TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a TrainingPipeline message. * @param message 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 CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelTrainingPipelineRequest + * @returns TrainingPipeline */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingPipeline; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CancelTrainingPipelineRequest + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * @param message TrainingPipeline * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this TrainingPipeline to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreatePipelineJobRequest. */ - interface ICreatePipelineJobRequest { + /** Properties of an InputDataConfig. */ + interface IInputDataConfig { - /** CreatePipelineJobRequest parent */ - parent?: (string|null); + /** InputDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - /** CreatePipelineJobRequest pipelineJob */ - pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + /** InputDataConfig filterSplit */ + filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - /** CreatePipelineJobRequest pipelineJobId */ - pipelineJobId?: (string|null); + /** InputDataConfig predefinedSplit */ + predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); + + /** InputDataConfig timestampSplit */ + timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); + + /** InputDataConfig stratifiedSplit */ + stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); + + /** InputDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** InputDataConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** InputDataConfig datasetId */ + datasetId?: (string|null); + + /** InputDataConfig annotationsFilter */ + annotationsFilter?: (string|null); + + /** InputDataConfig annotationSchemaUri */ + annotationSchemaUri?: (string|null); } - /** Represents a CreatePipelineJobRequest. */ - class CreatePipelineJobRequest implements ICreatePipelineJobRequest { + /** Represents an InputDataConfig. */ + class InputDataConfig implements IInputDataConfig { /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new InputDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig); - /** CreatePipelineJobRequest parent. */ - public parent: string; + /** InputDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1beta1.IFractionSplit|null); - /** CreatePipelineJobRequest pipelineJob. */ - public pipelineJob?: (google.cloud.aiplatform.v1beta1.IPipelineJob|null); + /** InputDataConfig filterSplit. */ + public filterSplit?: (google.cloud.aiplatform.v1beta1.IFilterSplit|null); - /** CreatePipelineJobRequest pipelineJobId. */ - public pipelineJobId: string; + /** InputDataConfig predefinedSplit. */ + public predefinedSplit?: (google.cloud.aiplatform.v1beta1.IPredefinedSplit|null); + + /** InputDataConfig timestampSplit. */ + public timestampSplit?: (google.cloud.aiplatform.v1beta1.ITimestampSplit|null); + + /** InputDataConfig stratifiedSplit. */ + public stratifiedSplit?: (google.cloud.aiplatform.v1beta1.IStratifiedSplit|null); + + /** InputDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** InputDataConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** InputDataConfig datasetId. */ + public datasetId: string; + + /** InputDataConfig annotationsFilter. */ + public annotationsFilter: string; + + /** InputDataConfig annotationSchemaUri. */ + public annotationSchemaUri: string; + + /** InputDataConfig split. */ + public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + + /** InputDataConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new InputDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePipelineJobRequest instance + * @returns InputDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IInputDataConfig): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePipelineJobRequest + * @returns InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePipelineJobRequest + * @returns InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies an InputDataConfig message. * @param message 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 CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePipelineJobRequest + * @returns InputDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.InputDataConfig; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. - * @param message CreatePipelineJobRequest + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @param message InputDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this InputDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetPipelineJobRequest. */ - interface IGetPipelineJobRequest { + /** Properties of a FractionSplit. */ + interface IFractionSplit { - /** GetPipelineJobRequest name */ - name?: (string|null); + /** FractionSplit trainingFraction */ + trainingFraction?: (number|null); + + /** FractionSplit validationFraction */ + validationFraction?: (number|null); + + /** FractionSplit testFraction */ + testFraction?: (number|null); } - /** Represents a GetPipelineJobRequest. */ - class GetPipelineJobRequest implements IGetPipelineJobRequest { + /** Represents a FractionSplit. */ + class FractionSplit implements IFractionSplit { /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new FractionSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit); - /** GetPipelineJobRequest name. */ - public name: string; + /** FractionSplit trainingFraction. */ + public trainingFraction: number; + + /** FractionSplit validationFraction. */ + public validationFraction: number; + + /** FractionSplit testFraction. */ + public testFraction: number; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new FractionSplit instance using the specified properties. * @param [properties] Properties to set - * @returns GetPipelineJobRequest instance + * @returns FractionSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFractionSplit): google.cloud.aiplatform.v1beta1.FractionSplit; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPipelineJobRequest + * @returns FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FractionSplit; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPipelineJobRequest + * @returns FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FractionSplit; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a FractionSplit message. * @param message 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 GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPipelineJobRequest + * @returns FractionSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FractionSplit; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. - * @param message GetPipelineJobRequest + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * @param message FractionSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this FractionSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListPipelineJobsRequest. */ - interface IListPipelineJobsRequest { - - /** ListPipelineJobsRequest parent */ - parent?: (string|null); - - /** ListPipelineJobsRequest filter */ - filter?: (string|null); + /** Properties of a FilterSplit. */ + interface IFilterSplit { - /** ListPipelineJobsRequest pageSize */ - pageSize?: (number|null); + /** FilterSplit trainingFilter */ + trainingFilter?: (string|null); - /** ListPipelineJobsRequest pageToken */ - pageToken?: (string|null); + /** FilterSplit validationFilter */ + validationFilter?: (string|null); - /** ListPipelineJobsRequest orderBy */ - orderBy?: (string|null); + /** FilterSplit testFilter */ + testFilter?: (string|null); } - /** Represents a ListPipelineJobsRequest. */ - class ListPipelineJobsRequest implements IListPipelineJobsRequest { + /** Represents a FilterSplit. */ + class FilterSplit implements IFilterSplit { /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new FilterSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest); - - /** ListPipelineJobsRequest parent. */ - public parent: string; - - /** ListPipelineJobsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit); - /** ListPipelineJobsRequest pageSize. */ - public pageSize: number; + /** FilterSplit trainingFilter. */ + public trainingFilter: string; - /** ListPipelineJobsRequest pageToken. */ - public pageToken: string; + /** FilterSplit validationFilter. */ + public validationFilter: string; - /** ListPipelineJobsRequest orderBy. */ - public orderBy: string; + /** FilterSplit testFilter. */ + public testFilter: string; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsRequest instance + * @returns FilterSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFilterSplit): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsRequest + * @returns FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsRequest + * @returns FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a FilterSplit message. * @param message 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 ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsRequest + * @returns FilterSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FilterSplit; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. - * @param message ListPipelineJobsRequest + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * @param message FilterSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this FilterSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListPipelineJobsResponse. */ - interface IListPipelineJobsResponse { - - /** ListPipelineJobsResponse pipelineJobs */ - pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); + /** Properties of a PredefinedSplit. */ + interface IPredefinedSplit { - /** ListPipelineJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** PredefinedSplit key */ + key?: (string|null); } - /** Represents a ListPipelineJobsResponse. */ - class ListPipelineJobsResponse implements IListPipelineJobsResponse { + /** Represents a PredefinedSplit. */ + class PredefinedSplit implements IPredefinedSplit { /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new PredefinedSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse); - - /** ListPipelineJobsResponse pipelineJobs. */ - public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit); - /** ListPipelineJobsResponse nextPageToken. */ - public nextPageToken: string; + /** PredefinedSplit key. */ + public key: string; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsResponse instance + * @returns PredefinedSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredefinedSplit): google.cloud.aiplatform.v1beta1.PredefinedSplit; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsResponse + * @returns PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredefinedSplit; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsResponse + * @returns PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredefinedSplit; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a PredefinedSplit message. * @param message 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 ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsResponse + * @returns PredefinedSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredefinedSplit; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. - * @param message ListPipelineJobsResponse + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * @param message PredefinedSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this PredefinedSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeletePipelineJobRequest. */ - interface IDeletePipelineJobRequest { + /** Properties of a TimestampSplit. */ + interface ITimestampSplit { - /** DeletePipelineJobRequest name */ - name?: (string|null); + /** TimestampSplit trainingFraction */ + trainingFraction?: (number|null); + + /** TimestampSplit validationFraction */ + validationFraction?: (number|null); + + /** TimestampSplit testFraction */ + testFraction?: (number|null); + + /** TimestampSplit key */ + key?: (string|null); } - /** Represents a DeletePipelineJobRequest. */ - class DeletePipelineJobRequest implements IDeletePipelineJobRequest { + /** Represents a TimestampSplit. */ + class TimestampSplit implements ITimestampSplit { /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new TimestampSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit); - /** DeletePipelineJobRequest name. */ - public name: string; + /** TimestampSplit trainingFraction. */ + public trainingFraction: number; + + /** TimestampSplit validationFraction. */ + public validationFraction: number; + + /** TimestampSplit testFraction. */ + public testFraction: number; + + /** TimestampSplit key. */ + public key: string; /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new TimestampSplit instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePipelineJobRequest instance + * @returns TimestampSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITimestampSplit): google.cloud.aiplatform.v1beta1.TimestampSplit; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a TimestampSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePipelineJobRequest + * @returns TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TimestampSplit; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePipelineJobRequest + * @returns TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TimestampSplit; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a TimestampSplit message. * @param message 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 DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePipelineJobRequest + * @returns TimestampSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TimestampSplit; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. - * @param message DeletePipelineJobRequest + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @param message TimestampSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this TimestampSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelPipelineJobRequest. */ - interface ICancelPipelineJobRequest { + /** Properties of a StratifiedSplit. */ + interface IStratifiedSplit { - /** CancelPipelineJobRequest name */ - name?: (string|null); + /** StratifiedSplit trainingFraction */ + trainingFraction?: (number|null); + + /** StratifiedSplit validationFraction */ + validationFraction?: (number|null); + + /** StratifiedSplit testFraction */ + testFraction?: (number|null); + + /** StratifiedSplit key */ + key?: (string|null); } - /** Represents a CancelPipelineJobRequest. */ - class CancelPipelineJobRequest implements ICancelPipelineJobRequest { + /** Represents a StratifiedSplit. */ + class StratifiedSplit implements IStratifiedSplit { /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new StratifiedSplit. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit); - /** CancelPipelineJobRequest name. */ - public name: string; + /** StratifiedSplit trainingFraction. */ + public trainingFraction: number; + + /** StratifiedSplit validationFraction. */ + public validationFraction: number; + + /** StratifiedSplit testFraction. */ + public testFraction: number; + + /** StratifiedSplit key. */ + public key: string; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new StratifiedSplit instance using the specified properties. * @param [properties] Properties to set - * @returns CancelPipelineJobRequest instance + * @returns StratifiedSplit instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStratifiedSplit): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a StratifiedSplit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelPipelineJobRequest + * @returns StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelPipelineJobRequest + * @returns StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a StratifiedSplit message. * @param message 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 CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelPipelineJobRequest + * @returns StratifiedSplit */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StratifiedSplit; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. - * @param message CancelPipelineJobRequest + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @param message StratifiedSplit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this StratifiedSplit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -107193,6 +108392,9 @@ export namespace google { /** PredictResponse model */ model?: (string|null); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); + /** PredictResponse modelDisplayName */ modelDisplayName?: (string|null); } @@ -107215,6 +108417,9 @@ export namespace google { /** PredictResponse model. */ public model: string; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; + /** PredictResponse modelDisplayName. */ public modelDisplayName: string; @@ -117824,6 +119029,126 @@ export namespace google { } } + /** Properties of a SpecialistPool. */ + interface ISpecialistPool { + + /** SpecialistPool name */ + name?: (string|null); + + /** SpecialistPool displayName */ + displayName?: (string|null); + + /** SpecialistPool specialistManagersCount */ + specialistManagersCount?: (number|null); + + /** SpecialistPool specialistManagerEmails */ + specialistManagerEmails?: (string[]|null); + + /** SpecialistPool pendingDataLabelingJobs */ + pendingDataLabelingJobs?: (string[]|null); + + /** SpecialistPool specialistWorkerEmails */ + specialistWorkerEmails?: (string[]|null); + } + + /** Represents a SpecialistPool. */ + class SpecialistPool implements ISpecialistPool { + + /** + * Constructs a new SpecialistPool. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISpecialistPool); + + /** SpecialistPool name. */ + public name: string; + + /** SpecialistPool displayName. */ + public displayName: string; + + /** SpecialistPool specialistManagersCount. */ + public specialistManagersCount: number; + + /** SpecialistPool specialistManagerEmails. */ + public specialistManagerEmails: string[]; + + /** SpecialistPool pendingDataLabelingJobs. */ + public pendingDataLabelingJobs: string[]; + + /** SpecialistPool specialistWorkerEmails. */ + public specialistWorkerEmails: string[]; + + /** + * Creates a new SpecialistPool instance using the specified properties. + * @param [properties] Properties to set + * @returns SpecialistPool instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISpecialistPool): google.cloud.aiplatform.v1beta1.SpecialistPool; + + /** + * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpecialistPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SpecialistPool; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpecialistPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SpecialistPool; + + /** + * Verifies a SpecialistPool message. + * @param message 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 SpecialistPool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpecialistPool + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SpecialistPool; + + /** + * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. + * @param message SpecialistPool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpecialistPool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Represents a SpecialistPoolService */ class SpecialistPoolService extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 2ad87df7387..fbc4f8d8bf6 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -2078,6 +2078,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.error != null && message.hasOwnProperty("error")) { @@ -2241,6 +2242,10 @@ case 9: message.state = 9; break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; } if (object.error != null) { if (typeof object.error !== "object") @@ -10786,6 +10791,7 @@ * @property {number} JOB_STATE_CANCELLED=7 JOB_STATE_CANCELLED value * @property {number} JOB_STATE_PAUSED=8 JOB_STATE_PAUSED value * @property {number} JOB_STATE_EXPIRED=9 JOB_STATE_EXPIRED value + * @property {number} JOB_STATE_UPDATING=10 JOB_STATE_UPDATING value */ v1.JobState = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -10799,6 +10805,7 @@ values[valuesById[7] = "JOB_STATE_CANCELLED"] = 7; values[valuesById[8] = "JOB_STATE_PAUSED"] = 8; values[valuesById[9] = "JOB_STATE_EXPIRED"] = 9; + values[valuesById[10] = "JOB_STATE_UPDATING"] = 10; return values; })(); @@ -12207,6 +12214,238 @@ return DiskSpec; })(); + v1.NfsMount = (function() { + + /** + * Properties of a NfsMount. + * @memberof google.cloud.aiplatform.v1 + * @interface INfsMount + * @property {string|null} [server] NfsMount server + * @property {string|null} [path] NfsMount path + * @property {string|null} [mountPoint] NfsMount mountPoint + */ + + /** + * Constructs a new NfsMount. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NfsMount. + * @implements INfsMount + * @constructor + * @param {google.cloud.aiplatform.v1.INfsMount=} [properties] Properties to set + */ + function NfsMount(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]]; + } + + /** + * NfsMount server. + * @member {string} server + * @memberof google.cloud.aiplatform.v1.NfsMount + * @instance + */ + NfsMount.prototype.server = ""; + + /** + * NfsMount path. + * @member {string} path + * @memberof google.cloud.aiplatform.v1.NfsMount + * @instance + */ + NfsMount.prototype.path = ""; + + /** + * NfsMount mountPoint. + * @member {string} mountPoint + * @memberof google.cloud.aiplatform.v1.NfsMount + * @instance + */ + NfsMount.prototype.mountPoint = ""; + + /** + * Creates a new NfsMount instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1.INfsMount=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NfsMount} NfsMount instance + */ + NfsMount.create = function create(properties) { + return new NfsMount(properties); + }; + + /** + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1.NfsMount.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1.INfsMount} message NfsMount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NfsMount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.mountPoint != null && Object.hasOwnProperty.call(message, "mountPoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.mountPoint); + return writer; + }; + + /** + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NfsMount.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1.INfsMount} message NfsMount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NfsMount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NfsMount message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NfsMount + * @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.NfsMount} NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NfsMount.decode = function decode(reader, 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.NfsMount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.server = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + case 3: + message.mountPoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NfsMount} NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NfsMount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NfsMount message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NfsMount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.mountPoint != null && message.hasOwnProperty("mountPoint")) + if (!$util.isString(message.mountPoint)) + return "mountPoint: string expected"; + return null; + }; + + /** + * Creates a NfsMount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NfsMount} NfsMount + */ + NfsMount.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NfsMount) + return object; + var message = new $root.google.cloud.aiplatform.v1.NfsMount(); + if (object.server != null) + message.server = String(object.server); + if (object.path != null) + message.path = String(object.path); + if (object.mountPoint != null) + message.mountPoint = String(object.mountPoint); + return message; + }; + + /** + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1.NfsMount} message NfsMount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NfsMount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.server = ""; + object.path = ""; + object.mountPoint = ""; + } + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.mountPoint != null && message.hasOwnProperty("mountPoint")) + object.mountPoint = message.mountPoint; + return object; + }; + + /** + * Converts this NfsMount to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NfsMount + * @instance + * @returns {Object.} JSON object + */ + NfsMount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NfsMount; + })(); + v1.AutoscalingMetricSpec = (function() { /** @@ -15991,6 +16230,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.createTime != null && message.hasOwnProperty("createTime")) { @@ -16104,6 +16344,10 @@ 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") @@ -16239,6 +16483,7 @@ * @property {google.cloud.aiplatform.v1.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.v1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory * @property {string|null} [tensorboard] CustomJobSpec tensorboard * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess @@ -16254,6 +16499,7 @@ */ 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) @@ -16292,6 +16538,14 @@ */ CustomJobSpec.prototype.network = ""; + /** + * CustomJobSpec reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.reservedIpRanges = $util.emptyArray; + /** * CustomJobSpec baseOutputDirectory. * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} baseOutputDirectory @@ -16355,6 +16609,9 @@ 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; }; @@ -16403,6 +16660,11 @@ 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.v1.GcsDestination.decode(reader, reader.uint32()); break; @@ -16467,6 +16729,13 @@ 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.v1.GcsDestination.verify(message.baseOutputDirectory); if (error) @@ -16512,6 +16781,13 @@ 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.v1.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.v1.CustomJobSpec.baseOutputDirectory: object expected"); @@ -16537,8 +16813,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.workerPoolSpecs = []; + object.reservedIpRanges = []; + } if (options.defaults) { object.scheduling = null; object.serviceAccount = ""; @@ -16564,6 +16842,11 @@ 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]; + } return object; }; @@ -16591,6 +16874,7 @@ * @property {google.cloud.aiplatform.v1.IPythonPackageSpec|null} [pythonPackageSpec] WorkerPoolSpec pythonPackageSpec * @property {google.cloud.aiplatform.v1.IMachineSpec|null} [machineSpec] WorkerPoolSpec machineSpec * @property {number|Long|null} [replicaCount] WorkerPoolSpec replicaCount + * @property {Array.|null} [nfsMounts] WorkerPoolSpec nfsMounts * @property {google.cloud.aiplatform.v1.IDiskSpec|null} [diskSpec] WorkerPoolSpec diskSpec */ @@ -16603,6 +16887,7 @@ * @param {google.cloud.aiplatform.v1.IWorkerPoolSpec=} [properties] Properties to set */ function WorkerPoolSpec(properties) { + this.nfsMounts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16641,6 +16926,14 @@ */ WorkerPoolSpec.prototype.replicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * WorkerPoolSpec nfsMounts. + * @member {Array.} nfsMounts + * @memberof google.cloud.aiplatform.v1.WorkerPoolSpec + * @instance + */ + WorkerPoolSpec.prototype.nfsMounts = $util.emptyArray; + /** * WorkerPoolSpec diskSpec. * @member {google.cloud.aiplatform.v1.IDiskSpec|null|undefined} diskSpec @@ -16691,6 +16984,9 @@ $root.google.cloud.aiplatform.v1.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.v1.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.v1.DiskSpec.encode(message.diskSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) @@ -16743,6 +17039,11 @@ case 2: message.replicaCount = reader.int64(); break; + case 4: + if (!(message.nfsMounts && message.nfsMounts.length)) + message.nfsMounts = []; + message.nfsMounts.push($root.google.cloud.aiplatform.v1.NfsMount.decode(reader, reader.uint32())); + break; case 5: message.diskSpec = $root.google.cloud.aiplatform.v1.DiskSpec.decode(reader, reader.uint32()); break; @@ -16808,6 +17109,15 @@ 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.v1.NfsMount.verify(message.nfsMounts[i]); + if (error) + return "nfsMounts." + error; + } + } if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) { var error = $root.google.cloud.aiplatform.v1.DiskSpec.verify(message.diskSpec); if (error) @@ -16852,6 +17162,16 @@ 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.v1.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.v1.WorkerPoolSpec.nfsMounts: object expected"); + message.nfsMounts[i] = $root.google.cloud.aiplatform.v1.NfsMount.fromObject(object.nfsMounts[i]); + } + } if (object.diskSpec != null) { if (typeof object.diskSpec !== "object") throw TypeError(".google.cloud.aiplatform.v1.WorkerPoolSpec.diskSpec: object expected"); @@ -16873,6 +17193,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.nfsMounts = []; if (options.defaults) { object.machineSpec = null; if ($util.Long) { @@ -16889,6 +17211,11 @@ 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.v1.NfsMount.toObject(message.nfsMounts[j], options); + } if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) object.diskSpec = $root.google.cloud.aiplatform.v1.DiskSpec.toObject(message.diskSpec, options); if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { @@ -18588,6 +18915,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) @@ -18723,6 +19051,10 @@ 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; @@ -49443,6 +49775,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.createTime != null && message.hasOwnProperty("createTime")) { @@ -49569,6 +49902,10 @@ 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") @@ -50851,6 +51188,7 @@ * @interface IStudySpec * @property {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null} [decayCurveStoppingSpec] StudySpec decayCurveStoppingSpec * @property {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null} [medianAutomatedStoppingSpec] StudySpec medianAutomatedStoppingSpec + * @property {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null} [convexAutomatedStoppingSpec] StudySpec convexAutomatedStoppingSpec * @property {Array.|null} [metrics] StudySpec metrics * @property {Array.|null} [parameters] StudySpec parameters * @property {google.cloud.aiplatform.v1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm @@ -50891,6 +51229,14 @@ */ StudySpec.prototype.medianAutomatedStoppingSpec = null; + /** + * StudySpec convexAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.convexAutomatedStoppingSpec = null; + /** * StudySpec metrics. * @member {Array.} metrics @@ -50936,12 +51282,12 @@ /** * StudySpec automatedStoppingSpec. - * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|undefined} automatedStoppingSpec + * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec * @memberof google.cloud.aiplatform.v1.StudySpec * @instance */ Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { - get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec"]), + get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexAutomatedStoppingSpec"]), set: $util.oneOfSetter($oneOfFields) }); @@ -50985,6 +51331,8 @@ 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.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -51025,6 +51373,9 @@ case 5: message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.decode(reader, reader.uint32()); break; + case 9: + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; case 1: if (!(message.metrics && message.metrics.length)) message.metrics = []; @@ -51098,6 +51449,16 @@ return "medianAutomatedStoppingSpec." + 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.v1.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"; @@ -51168,6 +51529,11 @@ throw TypeError(".google.cloud.aiplatform.v1.StudySpec.medianAutomatedStoppingSpec: object expected"); message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.fromObject(object.medianAutomatedStoppingSpec); } + if (object.convexAutomatedStoppingSpec != null) { + if (typeof object.convexAutomatedStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.convexAutomatedStoppingSpec: object expected"); + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.fromObject(object.convexAutomatedStoppingSpec); + } if (object.metrics) { if (!Array.isArray(object.metrics)) throw TypeError(".google.cloud.aiplatform.v1.StudySpec.metrics: array expected"); @@ -51281,6 +51647,11 @@ object.observationNoise = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.ObservationNoise[message.observationNoise] : message.observationNoise; if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) object.measurementSelectionType = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] : message.measurementSelectionType; + if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { + object.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.toObject(message.convexAutomatedStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; + } return object; }; @@ -54335,6 +54706,324 @@ return MedianAutomatedStoppingSpec; })(); + StudySpec.ConvexAutomatedStoppingSpec = (function() { + + /** + * Properties of a ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.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 + */ + + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a ConvexAutomatedStoppingSpec. + * @implements IConvexAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1.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]]; + } + + /** + * ConvexAutomatedStoppingSpec maxStepCount. + * @member {number|Long} maxStepCount + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + */ + ConvexAutomatedStoppingSpec.create = function create(properties) { + return new ConvexAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.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; + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.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(); + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.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.v1.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; + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.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()); + }; + + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.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; + }; + + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + */ + ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.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; + }; + + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.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; + }; + + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConvexAutomatedStoppingSpec; + })(); + /** * Algorithm enum. * @name google.cloud.aiplatform.v1.StudySpec.Algorithm @@ -72270,6 +72959,7 @@ * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy @@ -72347,6 +73037,14 @@ */ ModelDeploymentMonitoringJob.prototype.scheduleState = 0; + /** + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; + /** * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. * @member {Array.} modelDeploymentMonitoringObjectiveConfigs @@ -72554,6 +73252,8 @@ 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); return writer; }; @@ -72603,6 +73303,9 @@ case 5: message.scheduleState = reader.int32(); break; + case 25: + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + break; case 6: if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) message.modelDeploymentMonitoringObjectiveConfigs = []; @@ -72735,6 +73438,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) @@ -72747,6 +73451,11 @@ case 3: break; } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1.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"; @@ -72899,6 +73608,10 @@ case 9: message.state = 9; break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; } switch (object.scheduleState) { case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": @@ -72918,6 +73631,11 @@ message.scheduleState = 3; break; } + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); + } if (object.modelDeploymentMonitoringObjectiveConfigs) { if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); @@ -73048,6 +73766,7 @@ object.encryptionSpec = null; object.enableMonitoringPipelineLogs = false; object.error = null; + object.latestMonitoringPipelineMetadata = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -73103,6 +73822,8 @@ 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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); return object; }; @@ -73117,6 +73838,226 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { + + /** + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status + */ + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + */ + function LatestMonitoringPipelineMetadata(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]]; + } + + /** + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.runTime = null; + + /** + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.status = null; + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + */ + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LatestMonitoringPipelineMetadata.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(); + return writer; + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LatestMonitoringPipelineMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @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) { + 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; + } + return null; + }; + + /** + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + */ + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.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.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; + + /** + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.runTime = null; + object.status = null; + } + 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 LatestMonitoringPipelineMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + * @returns {Object.} JSON object + */ + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LatestMonitoringPipelineMetadata; + })(); + /** * MonitoringScheduleState enum. * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState @@ -147546,277 +148487,6 @@ return Artifact; })(); - v1beta1.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IValue - * @property {number|Long|null} [intValue] Value intValue - * @property {number|null} [doubleValue] Value doubleValue - * @property {string|null} [stringValue] Value stringValue - */ - - /** - * Constructs a new Value. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set - */ - function Value(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]]; - } - - /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.cloud.aiplatform.v1beta1.Value - * @instance - */ - Value.prototype.intValue = null; - - /** - * Value doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1beta1.Value - * @instance - */ - Value.prototype.doubleValue = null; - - /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1beta1.Value - * @instance - */ - Value.prototype.stringValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value value. - * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.Value - * @instance - */ - Object.defineProperty(Value.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - return writer; - }; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intValue = reader.int64(); - break; - case 2: - message.doubleValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - properties.value = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long 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.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"; - } - return null; - }; - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Value) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Value(); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - return message; - }; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Value - * @static - * @param {google.cloud.aiplatform.v1beta1.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.value = "intValue"; - } - 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.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; - } - return object; - }; - - /** - * Converts this Value to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Value - * @instance - * @returns {Object.} JSON object - */ - Value.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Value; - })(); - v1beta1.BatchPredictionJob = (function() { /** @@ -147826,6 +148496,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.v1beta1.IUnmanagedContainerModel|null} [unmanagedContainerModel] BatchPredictionJob unmanagedContainerModel * @property {google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null} [inputConfig] BatchPredictionJob inputConfig * @property {google.protobuf.IValue|null} [modelParameters] BatchPredictionJob modelParameters @@ -147890,6 +148561,14 @@ */ BatchPredictionJob.prototype.model = ""; + /** + * BatchPredictionJob modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelVersionId = ""; + /** * BatchPredictionJob unmanagedContainerModel. * @member {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null|undefined} unmanagedContainerModel @@ -148132,6 +148811,8 @@ $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")) writer.uint32(/* id 29, wireType 2 =*/234).string(message.serviceAccount); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.modelVersionId); return writer; }; @@ -148175,6 +148856,9 @@ case 3: message.model = reader.string(); break; + case 30: + message.modelVersionId = reader.string(); + break; case 28: message.unmanagedContainerModel = $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.decode(reader, reader.uint32()); break; @@ -148303,6 +148987,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.v1beta1.UnmanagedContainerModel.verify(message.unmanagedContainerModel); if (error) @@ -148363,6 +149050,7 @@ case 7: case 8: case 9: + case 10: break; } if (message.error != null && message.hasOwnProperty("error")) { @@ -148443,6 +149131,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.v1beta1.BatchPredictionJob.unmanagedContainerModel: object expected"); @@ -148528,6 +149218,10 @@ case 9: message.state = 9; break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; } if (object.error != null) { if (typeof object.error !== "object") @@ -148629,6 +149323,7 @@ object.explanationSpec = null; object.unmanagedContainerModel = null; object.serviceAccount = ""; + object.modelVersionId = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -148685,6 +149380,8 @@ object.unmanagedContainerModel = $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.toObject(message.unmanagedContainerModel, options); if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) object.serviceAccount = message.serviceAccount; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; @@ -150950,7 +151647,7 @@ * @property {google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null} [sampledShapleyAttribution] ExplanationParameters sampledShapleyAttribution * @property {google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null} [integratedGradientsAttribution] ExplanationParameters integratedGradientsAttribution * @property {google.cloud.aiplatform.v1beta1.IXraiAttribution|null} [xraiAttribution] ExplanationParameters xraiAttribution - * @property {google.cloud.aiplatform.v1beta1.ISimilarity|null} [similarity] ExplanationParameters similarity + * @property {google.cloud.aiplatform.v1beta1.IExamples|null} [examples] ExplanationParameters examples * @property {number|null} [topK] ExplanationParameters topK * @property {google.protobuf.IListValue|null} [outputIndices] ExplanationParameters outputIndices */ @@ -150995,12 +151692,12 @@ ExplanationParameters.prototype.xraiAttribution = null; /** - * ExplanationParameters similarity. - * @member {google.cloud.aiplatform.v1beta1.ISimilarity|null|undefined} similarity + * ExplanationParameters examples. + * @member {google.cloud.aiplatform.v1beta1.IExamples|null|undefined} examples * @memberof google.cloud.aiplatform.v1beta1.ExplanationParameters * @instance */ - ExplanationParameters.prototype.similarity = null; + ExplanationParameters.prototype.examples = null; /** * ExplanationParameters topK. @@ -151023,12 +151720,12 @@ /** * ExplanationParameters method. - * @member {"sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"similarity"|undefined} method + * @member {"sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"|undefined} method * @memberof google.cloud.aiplatform.v1beta1.ExplanationParameters * @instance */ Object.defineProperty(ExplanationParameters.prototype, "method", { - get: $util.oneOfGetter($oneOfFields = ["sampledShapleyAttribution", "integratedGradientsAttribution", "xraiAttribution", "similarity"]), + get: $util.oneOfGetter($oneOfFields = ["sampledShapleyAttribution", "integratedGradientsAttribution", "xraiAttribution", "examples"]), set: $util.oneOfSetter($oneOfFields) }); @@ -151066,8 +151763,8 @@ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topK); if (message.outputIndices != null && Object.hasOwnProperty.call(message, "outputIndices")) $root.google.protobuf.ListValue.encode(message.outputIndices, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.similarity != null && Object.hasOwnProperty.call(message, "similarity")) - $root.google.cloud.aiplatform.v1beta1.Similarity.encode(message.similarity, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.examples != null && Object.hasOwnProperty.call(message, "examples")) + $root.google.cloud.aiplatform.v1beta1.Examples.encode(message.examples, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -151112,7 +151809,7 @@ message.xraiAttribution = $root.google.cloud.aiplatform.v1beta1.XraiAttribution.decode(reader, reader.uint32()); break; case 7: - message.similarity = $root.google.cloud.aiplatform.v1beta1.Similarity.decode(reader, reader.uint32()); + message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.decode(reader, reader.uint32()); break; case 4: message.topK = reader.int32(); @@ -151184,14 +151881,14 @@ return "xraiAttribution." + error; } } - if (message.similarity != null && message.hasOwnProperty("similarity")) { + if (message.examples != null && message.hasOwnProperty("examples")) { if (properties.method === 1) return "method: multiple values"; properties.method = 1; { - var error = $root.google.cloud.aiplatform.v1beta1.Similarity.verify(message.similarity); + var error = $root.google.cloud.aiplatform.v1beta1.Examples.verify(message.examples); if (error) - return "similarity." + error; + return "examples." + error; } } if (message.topK != null && message.hasOwnProperty("topK")) @@ -151232,10 +151929,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ExplanationParameters.xraiAttribution: object expected"); message.xraiAttribution = $root.google.cloud.aiplatform.v1beta1.XraiAttribution.fromObject(object.xraiAttribution); } - if (object.similarity != null) { - if (typeof object.similarity !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExplanationParameters.similarity: object expected"); - message.similarity = $root.google.cloud.aiplatform.v1beta1.Similarity.fromObject(object.similarity); + if (object.examples != null) { + if (typeof object.examples !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExplanationParameters.examples: object expected"); + message.examples = $root.google.cloud.aiplatform.v1beta1.Examples.fromObject(object.examples); } if (object.topK != null) message.topK = object.topK | 0; @@ -151283,10 +151980,10 @@ object.topK = message.topK; if (message.outputIndices != null && message.hasOwnProperty("outputIndices")) object.outputIndices = $root.google.protobuf.ListValue.toObject(message.outputIndices, options); - if (message.similarity != null && message.hasOwnProperty("similarity")) { - object.similarity = $root.google.cloud.aiplatform.v1beta1.Similarity.toObject(message.similarity, options); + if (message.examples != null && message.hasOwnProperty("examples")) { + object.examples = $root.google.cloud.aiplatform.v1beta1.Examples.toObject(message.examples, options); if (options.oneofs) - object.method = "similarity"; + object.method = "examples"; } return object; }; @@ -152843,25 +153540,26 @@ return BlurBaselineConfig; })(); - v1beta1.Similarity = (function() { + v1beta1.Examples = (function() { /** - * Properties of a Similarity. + * Properties of an Examples. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISimilarity - * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] Similarity gcsSource - * @property {google.protobuf.IValue|null} [nearestNeighborSearchConfig] Similarity nearestNeighborSearchConfig + * @interface IExamples + * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] Examples gcsSource + * @property {google.protobuf.IValue|null} [nearestNeighborSearchConfig] Examples nearestNeighborSearchConfig + * @property {number|null} [neighborCount] Examples neighborCount */ /** - * Constructs a new Similarity. + * Constructs a new Examples. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Similarity. - * @implements ISimilarity + * @classdesc Represents an Examples. + * @implements IExamples * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISimilarity=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExamples=} [properties] Properties to set */ - function Similarity(properties) { + function Examples(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152869,80 +153567,90 @@ } /** - * Similarity gcsSource. + * Examples gcsSource. * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @instance */ - Similarity.prototype.gcsSource = null; + Examples.prototype.gcsSource = null; /** - * Similarity nearestNeighborSearchConfig. + * Examples nearestNeighborSearchConfig. * @member {google.protobuf.IValue|null|undefined} nearestNeighborSearchConfig - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples + * @instance + */ + Examples.prototype.nearestNeighborSearchConfig = null; + + /** + * Examples neighborCount. + * @member {number} neighborCount + * @memberof google.cloud.aiplatform.v1beta1.Examples * @instance */ - Similarity.prototype.nearestNeighborSearchConfig = null; + Examples.prototype.neighborCount = 0; /** - * Creates a new Similarity instance using the specified properties. + * Creates a new Examples instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static - * @param {google.cloud.aiplatform.v1beta1.ISimilarity=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Similarity} Similarity instance + * @param {google.cloud.aiplatform.v1beta1.IExamples=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Examples} Examples instance */ - Similarity.create = function create(properties) { - return new Similarity(properties); + Examples.create = function create(properties) { + return new Examples(properties); }; /** - * Encodes the specified Similarity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Similarity.verify|verify} messages. + * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static - * @param {google.cloud.aiplatform.v1beta1.ISimilarity} message Similarity message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExamples} message Examples message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Similarity.encode = function encode(message, writer) { + Examples.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.nearestNeighborSearchConfig != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchConfig")) $root.google.protobuf.Value.encode(message.nearestNeighborSearchConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.neighborCount != null && Object.hasOwnProperty.call(message, "neighborCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.neighborCount); return writer; }; /** - * Encodes the specified Similarity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Similarity.verify|verify} messages. + * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static - * @param {google.cloud.aiplatform.v1beta1.ISimilarity} message Similarity message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExamples} message Examples message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Similarity.encodeDelimited = function encodeDelimited(message, writer) { + Examples.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Similarity message from the specified reader or buffer. + * Decodes an Examples message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Similarity} Similarity + * @returns {google.cloud.aiplatform.v1beta1.Examples} Examples * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Similarity.decode = function decode(reader, length) { + Examples.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Similarity(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Examples(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -152952,6 +153660,9 @@ case 2: message.nearestNeighborSearchConfig = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; + case 3: + message.neighborCount = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -152961,30 +153672,30 @@ }; /** - * Decodes a Similarity message from the specified reader or buffer, length delimited. + * Decodes an Examples message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Similarity} Similarity + * @returns {google.cloud.aiplatform.v1beta1.Examples} Examples * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Similarity.decodeDelimited = function decodeDelimited(reader) { + Examples.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Similarity message. + * Verifies an Examples message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Similarity.verify = function verify(message) { + Examples.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { @@ -152997,70 +153708,78 @@ if (error) return "nearestNeighborSearchConfig." + error; } + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + if (!$util.isInteger(message.neighborCount)) + return "neighborCount: integer expected"; return null; }; /** - * Creates a Similarity message from a plain object. Also converts values to their respective internal types. + * Creates an Examples message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Similarity} Similarity + * @returns {google.cloud.aiplatform.v1beta1.Examples} Examples */ - Similarity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Similarity) + Examples.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Examples) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Similarity(); + var message = new $root.google.cloud.aiplatform.v1beta1.Examples(); if (object.gcsSource != null) { if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Similarity.gcsSource: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Examples.gcsSource: object expected"); message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); } if (object.nearestNeighborSearchConfig != null) { if (typeof object.nearestNeighborSearchConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Similarity.nearestNeighborSearchConfig: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Examples.nearestNeighborSearchConfig: object expected"); message.nearestNeighborSearchConfig = $root.google.protobuf.Value.fromObject(object.nearestNeighborSearchConfig); } + if (object.neighborCount != null) + message.neighborCount = object.neighborCount | 0; return message; }; /** - * Creates a plain object from a Similarity message. Also converts values to other types if specified. + * Creates a plain object from an Examples message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @static - * @param {google.cloud.aiplatform.v1beta1.Similarity} message Similarity + * @param {google.cloud.aiplatform.v1beta1.Examples} message Examples * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Similarity.toObject = function toObject(message, options) { + Examples.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.gcsSource = null; object.nearestNeighborSearchConfig = null; + object.neighborCount = 0; } if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); if (message.nearestNeighborSearchConfig != null && message.hasOwnProperty("nearestNeighborSearchConfig")) object.nearestNeighborSearchConfig = $root.google.protobuf.Value.toObject(message.nearestNeighborSearchConfig, options); + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + object.neighborCount = message.neighborCount; return object; }; /** - * Converts this Similarity to JSON. + * Converts this Examples to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Similarity + * @memberof google.cloud.aiplatform.v1beta1.Examples * @instance * @returns {Object.} JSON object */ - Similarity.prototype.toJSON = function toJSON() { + Examples.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Similarity; + return Examples; })(); v1beta1.ExplanationSpecOverride = (function() { @@ -157330,6 +158049,7 @@ * @property {number} JOB_STATE_CANCELLED=7 JOB_STATE_CANCELLED value * @property {number} JOB_STATE_PAUSED=8 JOB_STATE_PAUSED value * @property {number} JOB_STATE_EXPIRED=9 JOB_STATE_EXPIRED value + * @property {number} JOB_STATE_UPDATING=10 JOB_STATE_UPDATING value */ v1beta1.JobState = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -157343,6 +158063,7 @@ values[valuesById[7] = "JOB_STATE_CANCELLED"] = 7; values[valuesById[8] = "JOB_STATE_PAUSED"] = 8; values[valuesById[9] = "JOB_STATE_EXPIRED"] = 9; + values[valuesById[10] = "JOB_STATE_UPDATING"] = 10; return values; })(); @@ -158751,6 +159472,238 @@ return DiskSpec; })(); + v1beta1.NfsMount = (function() { + + /** + * Properties of a NfsMount. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface INfsMount + * @property {string|null} [server] NfsMount server + * @property {string|null} [path] NfsMount path + * @property {string|null} [mountPoint] NfsMount mountPoint + */ + + /** + * Constructs a new NfsMount. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a NfsMount. + * @implements INfsMount + * @constructor + * @param {google.cloud.aiplatform.v1beta1.INfsMount=} [properties] Properties to set + */ + function NfsMount(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]]; + } + + /** + * NfsMount server. + * @member {string} server + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @instance + */ + NfsMount.prototype.server = ""; + + /** + * NfsMount path. + * @member {string} path + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @instance + */ + NfsMount.prototype.path = ""; + + /** + * NfsMount mountPoint. + * @member {string} mountPoint + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @instance + */ + NfsMount.prototype.mountPoint = ""; + + /** + * Creates a new NfsMount instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1beta1.INfsMount=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NfsMount} NfsMount instance + */ + NfsMount.create = function create(properties) { + return new NfsMount(properties); + }; + + /** + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1beta1.INfsMount} message NfsMount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NfsMount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.mountPoint != null && Object.hasOwnProperty.call(message, "mountPoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.mountPoint); + return writer; + }; + + /** + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1beta1.INfsMount} message NfsMount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NfsMount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NfsMount message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NfsMount} NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NfsMount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NfsMount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.server = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + case 3: + message.mountPoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NfsMount} NfsMount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NfsMount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NfsMount message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NfsMount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.mountPoint != null && message.hasOwnProperty("mountPoint")) + if (!$util.isString(message.mountPoint)) + return "mountPoint: string expected"; + return null; + }; + + /** + * Creates a NfsMount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NfsMount} NfsMount + */ + NfsMount.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NfsMount) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NfsMount(); + if (object.server != null) + message.server = String(object.server); + if (object.path != null) + message.path = String(object.path); + if (object.mountPoint != null) + message.mountPoint = String(object.mountPoint); + return message; + }; + + /** + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @static + * @param {google.cloud.aiplatform.v1beta1.NfsMount} message NfsMount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NfsMount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.server = ""; + object.path = ""; + object.mountPoint = ""; + } + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.mountPoint != null && message.hasOwnProperty("mountPoint")) + object.mountPoint = message.mountPoint; + return object; + }; + + /** + * Converts this NfsMount to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NfsMount + * @instance + * @returns {Object.} JSON object + */ + NfsMount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NfsMount; + })(); + v1beta1.AutoscalingMetricSpec = (function() { /** @@ -159148,27 +160101,26 @@ return ManualBatchTuningParameters; })(); - v1beta1.ModelMonitoringObjectiveConfig = (function() { + v1beta1.UnmanagedContainerModel = (function() { /** - * Properties of a ModelMonitoringObjectiveConfig. + * Properties of an UnmanagedContainerModel. * @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 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 ModelMonitoringObjectiveConfig. + * Constructs a new UnmanagedContainerModel. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig + * @classdesc Represents an UnmanagedContainerModel. + * @implements IUnmanagedContainerModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set */ - function ModelMonitoringObjectiveConfig(properties) { + function UnmanagedContainerModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -159176,114 +160128,101 @@ } /** - * 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 + * UnmanagedContainerModel artifactUri. + * @member {string} artifactUri + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; + UnmanagedContainerModel.prototype.artifactUri = ""; /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * UnmanagedContainerModel predictSchemata. + * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; + UnmanagedContainerModel.prototype.predictSchemata = null; /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * UnmanagedContainerModel containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + UnmanagedContainerModel.prototype.containerSpec = null; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UnmanagedContainerModel instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + UnmanagedContainerModel.create = function create(properties) { + return new UnmanagedContainerModel(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.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.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig 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 */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + UnmanagedContainerModel.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.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 ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.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.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig 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 */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UnmanagedContainerModel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @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.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @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 */ - ModelMonitoringObjectiveConfig.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.ModelMonitoringObjectiveConfig(); + 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.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); + message.artifactUri = reader.string(); break; case 2: - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.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.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -159294,791 +160233,1066 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig 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.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @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 */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UnmanagedContainerModel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies an UnmanagedContainerModel message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @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 */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + UnmanagedContainerModel.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 (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 "predictionDriftDetectionConfig." + error; + return "predictSchemata." + error; } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); if (error) - return "explanationConfig." + error; + return "containerSpec." + error; } return null; }; /** - * Creates a ModelMonitoringObjectiveConfig 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.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + UnmanagedContainerModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel) 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); + 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.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); + 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 a ModelMonitoringObjectiveConfig 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.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} message UnmanagedContainerModel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UnmanagedContainerModel.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; + object.artifactUri = ""; + object.predictSchemata = null; + object.containerSpec = 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 (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 ModelMonitoringObjectiveConfig to JSON. + * Converts this UnmanagedContainerModel to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UnmanagedContainerModel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { + return UnmanagedContainerModel; + })(); - /** - * 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 - */ + v1beta1.Model = (function() { - /** - * 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]]; - } + /** + * Properties of a Model. + * @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 + */ - /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; + /** + * Constructs a new Model. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Model. + * @implements IModel + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set + */ + function Model(properties) { + this.versionAliases = []; + this.supportedExportFormats = []; + this.supportedDeploymentResourcesTypes = []; + this.supportedInputStorageFormats = []; + this.supportedOutputStorageFormats = []; + this.deployedModels = []; + 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]]; + } - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; + /** + * Model name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.name = ""; - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; + /** + * Model versionId. + * @member {string} versionId + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.versionId = ""; - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataFormat = ""; + /** + * Model versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.versionAliases = $util.emptyArray; - /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.targetField = ""; + /** + * Model versionCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionCreateTime + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.versionCreateTime = null; - /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.loggingSamplingStrategy = null; + /** + * Model versionUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionUpdateTime + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.versionUpdateTime = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Model displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.displayName = ""; - /** - * 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) - }); + /** + * Model description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.description = ""; - /** - * 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); - }; + /** + * Model versionDescription. + * @member {string} versionDescription + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.versionDescription = ""; - /** - * 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; - }; + /** + * Model predictSchemata. + * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.predictSchemata = null; - /** - * 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(); - }; + /** + * Model metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.metadataSchemaUri = ""; - /** - * 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; - }; + /** + * Model metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.metadata = null; - /** - * 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()); - }; + /** + * Model supportedExportFormats. + * @member {Array.} supportedExportFormats + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.supportedExportFormats = $util.emptyArray; - /** - * 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; - }; + /** + * Model trainingPipeline. + * @member {string} trainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.trainingPipeline = ""; - /** - * 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; - }; + /** + * Model containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.containerSpec = null; - /** - * 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; - }; + /** + * Model artifactUri. + * @member {string} artifactUri + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.artifactUri = ""; - /** - * 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); - }; + /** + * Model supportedDeploymentResourcesTypes. + * @member {Array.} supportedDeploymentResourcesTypes + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.supportedDeploymentResourcesTypes = $util.emptyArray; - return TrainingDataset; - })(); + /** + * Model supportedInputStorageFormats. + * @member {Array.} supportedInputStorageFormats + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.supportedInputStorageFormats = $util.emptyArray; - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * Model supportedOutputStorageFormats. + * @member {Array.} supportedOutputStorageFormats + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.supportedOutputStorageFormats = $util.emptyArray; - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - */ + /** + * Model createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.createTime = null; - /** - * 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]]; - } + /** + * Model updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.updateTime = null; - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * Model deployedModels. + * @member {Array.} deployedModels + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.deployedModels = $util.emptyArray; - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * Model explanationSpec. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.explanationSpec = 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); - }; + /** + * Model etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.etag = ""; - /** - * 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; - }; + /** + * Model labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.labels = $util.emptyObject; - /** - * 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(); - }; + /** + * Model encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.encryptionSpec = null; - /** - * 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 = {}; + /** + * Creates a new Model instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Model + * @static + * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model} Model instance + */ + Model.create = function create(properties) { + return new Model(properties); + }; + + /** + * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Model + * @static + * @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 + */ + 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.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(); + return writer; + }; + + /** + * 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.Model + * @static + * @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 + */ + Model.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Model message from the specified reader or buffer. + * @function decode + * @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.Model} Model + * @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) { + 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; + 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.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.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; - 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; - } + 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.attributionScoreSkewThresholds[key] = value; - break; - default: - reader.skipType(tag & 7); - break; } + message.labels[key] = value; + break; + case 24: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * 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()); - }; + /** + * Decodes a Model message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Model.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - } + /** + * Verifies a Model message. + * @function verify + * @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 + */ + 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.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.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.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 (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.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 null; - }; + } + 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.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; + } + return null; + }; - /** - * 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]]); - } + /** + * Creates a Model message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Model + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Model} Model + */ + Model.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model) + 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.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.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]); } - return message; - }; - - /** - * 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; - }; + } + 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.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.Model.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a Model message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Model + * @static + * @param {google.cloud.aiplatform.v1beta1.Model} message Model + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Model.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; + } + 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); + return object; + }; - return TrainingPredictionSkewDetectionConfig; - })(); + /** + * Converts this Model to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + * @returns {Object.} JSON object + */ + Model.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + Model.ExportFormat = (function() { /** - * Properties of a PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface IPredictionDriftDetectionConfig - * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds - * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * 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 PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a PredictionDriftDetectionConfig. - * @implements IPredictionDriftDetectionConfig + * Constructs a new ExportFormat. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @classdesc Represents an ExportFormat. + * @implements IExportFormat * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set */ - function PredictionDriftDetectionConfig(properties) { - this.driftThresholds = {}; - this.attributionScoreDriftThresholds = {}; + function ExportFormat(properties) { + this.exportableContents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -160086,132 +161300,99 @@ } /** - * PredictionDriftDetectionConfig driftThresholds. - * @member {Object.} driftThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * ExportFormat id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @instance */ - PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + ExportFormat.prototype.id = ""; /** - * PredictionDriftDetectionConfig attributionScoreDriftThresholds. - * @member {Object.} attributionScoreDriftThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * ExportFormat exportableContents. + * @member {Array.} exportableContents + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @instance */ - PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + ExportFormat.prototype.exportableContents = $util.emptyArray; /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * Creates a new ExportFormat instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat instance */ - PredictionDriftDetectionConfig.create = function create(properties) { - return new PredictionDriftDetectionConfig(properties); + ExportFormat.create = function create(properties) { + return new ExportFormat(properties); }; /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * 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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @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 */ - PredictionDriftDetectionConfig.encode = function encode(message, writer) { + ExportFormat.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.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 PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * 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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @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 */ - PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + ExportFormat.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * Decodes an ExportFormat message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @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 */ - PredictionDriftDetectionConfig.decode = function decode(reader, length) { + 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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; + 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: - 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; + message.id = reader.string(); 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; + 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); @@ -160222,674 +161403,185 @@ }; /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @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 */ - PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + ExportFormat.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictionDriftDetectionConfig message. + * Verifies an ExportFormat message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @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 */ - PredictionDriftDetectionConfig.verify = function verify(message) { + ExportFormat.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.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 a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat */ - PredictionDriftDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + 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.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]]); - } + 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 a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig + * @param {google.cloud.aiplatform.v1beta1.Model.ExportFormat} message ExportFormat * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictionDriftDetectionConfig.toObject = function toObject(message, options) { + ExportFormat.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); - } - 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 (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 PredictionDriftDetectionConfig to JSON. + * Converts this ExportFormat to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat * @instance * @returns {Object.} JSON object */ - PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { + ExportFormat.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 + * 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 */ - 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; + 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 ExplanationConfig; + return ExportFormat; })(); - return ModelMonitoringObjectiveConfig; + /** + * 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.ModelMonitoringAlertConfig = (function() { + v1beta1.PredictSchemata = (function() { /** - * Properties of a ModelMonitoringAlertConfig. + * Properties of a PredictSchemata. * @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 IPredictSchemata + * @property {string|null} [instanceSchemaUri] PredictSchemata instanceSchemaUri + * @property {string|null} [parametersSchemaUri] PredictSchemata parametersSchemaUri + * @property {string|null} [predictionSchemaUri] PredictSchemata predictionSchemaUri */ /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new PredictSchemata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringAlertConfig. - * @implements IModelMonitoringAlertConfig + * @classdesc Represents a PredictSchemata. + * @implements IPredictSchemata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set */ - function ModelMonitoringAlertConfig(properties) { + function PredictSchemata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -160897,102 +161589,101 @@ } /** - * ModelMonitoringAlertConfig emailAlertConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * PredictSchemata instanceSchemaUri. + * @member {string} instanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; + PredictSchemata.prototype.instanceSchemaUri = ""; /** - * ModelMonitoringAlertConfig enableLogging. - * @member {boolean} enableLogging - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * PredictSchemata parametersSchemaUri. + * @member {string} parametersSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - ModelMonitoringAlertConfig.prototype.enableLogging = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PredictSchemata.prototype.parametersSchemaUri = ""; /** - * ModelMonitoringAlertConfig alert. - * @member {"emailAlertConfig"|undefined} alert - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * PredictSchemata predictionSchemaUri. + * @member {string} predictionSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { - get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + PredictSchemata.prototype.predictionSchemaUri = ""; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new PredictSchemata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata instance */ - ModelMonitoringAlertConfig.create = function create(properties) { - return new ModelMonitoringAlertConfig(properties); + PredictSchemata.create = function create(properties) { + return new PredictSchemata(properties); }; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.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.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig 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 */ - ModelMonitoringAlertConfig.encode = function encode(message, writer) { + PredictSchemata.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.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 ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.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.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig 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 */ - ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + PredictSchemata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a PredictSchemata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @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.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @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 */ - ModelMonitoringAlertConfig.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.ModelMonitoringAlertConfig(); + 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.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + message.instanceSchemaUri = reader.string(); break; case 2: - message.enableLogging = reader.bool(); + message.parametersSchemaUri = reader.string(); + break; + case 3: + message.predictionSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -161003,329 +161694,134 @@ }; /** - * Decodes a ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @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 */ - ModelMonitoringAlertConfig.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 ModelMonitoringAlertConfig message. + * Verifies a PredictSchemata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @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 */ - ModelMonitoringAlertConfig.verify = function verify(message) { + PredictSchemata.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.enableLogging != null && message.hasOwnProperty("enableLogging")) - if (typeof message.enableLogging !== "boolean") - return "enableLogging: 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 ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata */ - ModelMonitoringAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + PredictSchemata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictSchemata) 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); - } - if (object.enableLogging != null) - message.enableLogging = Boolean(object.enableLogging); + 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 ModelMonitoringAlertConfig 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.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig + * @param {google.cloud.aiplatform.v1beta1.PredictSchemata} message PredictSchemata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringAlertConfig.toObject = function toObject(message, options) { + PredictSchemata.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.instanceSchemaUri = ""; + object.parametersSchemaUri = ""; + object.predictionSchemaUri = ""; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - object.enableLogging = message.enableLogging; + 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 ModelMonitoringAlertConfig to JSON. + * Converts this PredictSchemata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance * @returns {Object.} JSON object */ - ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { + PredictSchemata.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 PredictSchemata; })(); - v1beta1.ThresholdConfig = (function() { + v1beta1.ModelContainerSpec = (function() { /** - * Properties of a ThresholdConfig. + * Properties of a ModelContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value + * @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 ThresholdConfig. + * Constructs a new ModelContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig + * @classdesc Represents a ModelContainerSpec. + * @implements IModelContainerSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set */ - function ThresholdConfig(properties) { + 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) @@ -161333,89 +161829,165 @@ } /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * ModelContainerSpec imageUri. + * @member {string} imageUri + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - ThresholdConfig.prototype.value = null; + ModelContainerSpec.prototype.imageUri = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelContainerSpec command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.command = $util.emptyArray; /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * ModelContainerSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelContainerSpec.prototype.args = $util.emptyArray; /** - * Creates a new ThresholdConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig instance + * ModelContainerSpec env. + * @member {Array.} env + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); - }; + ModelContainerSpec.prototype.env = $util.emptyArray; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * ModelContainerSpec ports. + * @member {Array.} ports + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.ports = $util.emptyArray; + + /** + * ModelContainerSpec predictRoute. + * @member {string} predictRoute + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.predictRoute = ""; + + /** + * ModelContainerSpec healthRoute. + * @member {string} healthRoute + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.healthRoute = ""; + + /** + * Creates a new ModelContainerSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec instance + */ + ModelContainerSpec.create = function create(properties) { + return new ModelContainerSpec(properties); + }; + + /** + * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @static + * @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 */ - ThresholdConfig.encode = function encode(message, writer) { + ModelContainerSpec.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.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 ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.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.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig 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 */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ModelContainerSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @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.ThresholdConfig} ThresholdConfig + * @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 */ - ThresholdConfig.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.ThresholdConfig(); + 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 1: - message.value = reader.double(); + 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; + 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(); break; default: reader.skipType(tag & 7); @@ -161426,111 +161998,216 @@ }; /** - * Decodes a ThresholdConfig 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.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig + * @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 */ - ThresholdConfig.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 ThresholdConfig message. + * Verifies a ModelContainerSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @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 */ - ThresholdConfig.verify = function verify(message) { + ModelContainerSpec.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.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]); + if (error) + return "ports." + 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 ThresholdConfig 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.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ThresholdConfig) + ModelContainerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec) 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.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.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); return message; }; /** - * Creates a plain object from a ThresholdConfig 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.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ThresholdConfig} message ThresholdConfig + * @param {google.cloud.aiplatform.v1beta1.ModelContainerSpec} message ModelContainerSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThresholdConfig.toObject = function toObject(message, options) { + ModelContainerSpec.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.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 (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 ThresholdConfig to JSON. + * Converts this ModelContainerSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance * @returns {Object.} JSON object */ - ThresholdConfig.prototype.toJSON = function toJSON() { + ModelContainerSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ThresholdConfig; + return ModelContainerSpec; })(); - v1beta1.SamplingStrategy = (function() { + v1beta1.Port = (function() { /** - * Properties of a SamplingStrategy. + * Properties of a Port. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISamplingStrategy - * @property {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig + * @interface IPort + * @property {number|null} [containerPort] Port containerPort */ /** - * Constructs a new SamplingStrategy. + * Constructs a new Port. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SamplingStrategy. - * @implements ISamplingStrategy + * @classdesc Represents a Port. + * @implements IPort * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set */ - function SamplingStrategy(properties) { + function Port(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161538,75 +162215,75 @@ } /** - * SamplingStrategy randomSampleConfig. - * @member {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * Port containerPort. + * @member {number} containerPort + * @memberof google.cloud.aiplatform.v1beta1.Port * @instance */ - SamplingStrategy.prototype.randomSampleConfig = null; + Port.prototype.containerPort = 0; /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new Port instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy instance + * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Port} Port instance */ - SamplingStrategy.create = function create(properties) { - return new SamplingStrategy(properties); + Port.create = function create(properties) { + return new Port(properties); }; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.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.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy 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 */ - SamplingStrategy.encode = function encode(message, writer) { + Port.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.containerPort != null && Object.hasOwnProperty.call(message, "containerPort")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.containerPort); return writer; }; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.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.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy 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 */ - SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { + Port.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a Port message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @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.SamplingStrategy} SamplingStrategy + * @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 */ - SamplingStrategy.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.SamplingStrategy(); + 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.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); + case 3: + message.containerPort = reader.int32(); break; default: reader.skipType(tag & 7); @@ -161617,301 +162294,108 @@ }; /** - * Decodes a SamplingStrategy 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.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy + * @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 */ - SamplingStrategy.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 SamplingStrategy message. + * Verifies a Port message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @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 */ - SamplingStrategy.verify = function verify(message) { + Port.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.containerPort != null && message.hasOwnProperty("containerPort")) + if (!$util.isInteger(message.containerPort)) + return "containerPort: integer expected"; return null; }; /** - * Creates a SamplingStrategy 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.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1beta1.Port} Port */ - SamplingStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy) + Port.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Port) 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.Port(); + if (object.containerPort != null) + message.containerPort = object.containerPort | 0; return message; }; /** - * Creates a plain object from a SamplingStrategy 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.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy} message SamplingStrategy + * @param {google.cloud.aiplatform.v1beta1.Port} message Port * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SamplingStrategy.toObject = function toObject(message, options) { + Port.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); + object.containerPort = 0; + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + object.containerPort = message.containerPort; return object; }; /** - * Converts this SamplingStrategy to JSON. + * Converts this Port to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.Port * @instance * @returns {Object.} JSON object */ - SamplingStrategy.prototype.toJSON = function toJSON() { + Port.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - 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; + return Port; })(); - v1beta1.UnmanagedContainerModel = (function() { + v1beta1.DeployedModelRef = (function() { /** - * Properties of an UnmanagedContainerModel. + * Properties of a DeployedModelRef. * @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 IDeployedModelRef + * @property {string|null} [endpoint] DeployedModelRef endpoint + * @property {string|null} [deployedModelId] DeployedModelRef deployedModelId */ /** - * Constructs a new UnmanagedContainerModel. + * Constructs a new DeployedModelRef. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UnmanagedContainerModel. - * @implements IUnmanagedContainerModel + * @classdesc Represents a DeployedModelRef. + * @implements IDeployedModelRef * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set */ - function UnmanagedContainerModel(properties) { + function DeployedModelRef(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -161919,101 +162403,88 @@ } /** - * UnmanagedContainerModel artifactUri. - * @member {string} artifactUri - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel - * @instance - */ - UnmanagedContainerModel.prototype.artifactUri = ""; - - /** - * UnmanagedContainerModel predictSchemata. - * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * DeployedModelRef endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance */ - UnmanagedContainerModel.prototype.predictSchemata = null; + DeployedModelRef.prototype.endpoint = ""; /** - * UnmanagedContainerModel containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * DeployedModelRef deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance */ - UnmanagedContainerModel.prototype.containerSpec = null; + DeployedModelRef.prototype.deployedModelId = ""; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef instance */ - UnmanagedContainerModel.create = function create(properties) { - return new UnmanagedContainerModel(properties); + DeployedModelRef.create = function create(properties) { + return new DeployedModelRef(properties); }; /** - * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.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.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel 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 */ - UnmanagedContainerModel.encode = function encode(message, writer) { + DeployedModelRef.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.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 UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.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.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel 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 */ - UnmanagedContainerModel.encodeDelimited = function encodeDelimited(message, writer) { + DeployedModelRef.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer. + * Decodes a DeployedModelRef message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @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.UnmanagedContainerModel} UnmanagedContainerModel + * @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 */ - UnmanagedContainerModel.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.UnmanagedContainerModel(); + 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.artifactUri = reader.string(); + message.endpoint = reader.string(); break; case 2: - 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()); + message.deployedModelId = reader.string(); break; default: reader.skipType(tag & 7); @@ -162024,159 +162495,117 @@ }; /** - * Decodes an UnmanagedContainerModel 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.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel + * @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 */ - UnmanagedContainerModel.decodeDelimited = function decodeDelimited(reader) { + DeployedModelRef.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnmanagedContainerModel message. + * Verifies a DeployedModelRef message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @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 */ - UnmanagedContainerModel.verify = function verify(message) { + DeployedModelRef.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.containerSpec != null && message.hasOwnProperty("containerSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); - if (error) - return "containerSpec." + error; - } + 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 an UnmanagedContainerModel 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.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef */ - UnmanagedContainerModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel) + DeployedModelRef.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModelRef) 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.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 an UnmanagedContainerModel 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.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} message UnmanagedContainerModel + * @param {google.cloud.aiplatform.v1beta1.DeployedModelRef} message DeployedModelRef * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnmanagedContainerModel.toObject = function toObject(message, options) { + DeployedModelRef.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.artifactUri = ""; - object.predictSchemata = null; - object.containerSpec = null; + object.endpoint = ""; + object.deployedModelId = ""; } - 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.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; return object; }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this DeployedModelRef to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance * @returns {Object.} JSON object */ - UnmanagedContainerModel.prototype.toJSON = function toJSON() { + DeployedModelRef.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UnmanagedContainerModel; + return DeployedModelRef; })(); - v1beta1.Model = (function() { + v1beta1.EnvVar = (function() { /** - * Properties of a Model. + * Properties of an EnvVar. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModel - * @property {string|null} [name] Model name - * @property {string|null} [displayName] Model displayName - * @property {string|null} [description] Model description - * @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 IEnvVar + * @property {string|null} [name] EnvVar name + * @property {string|null} [value] EnvVar value */ /** - * Constructs a new Model. + * Constructs a new EnvVar. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Model. - * @implements IModel + * @classdesc Represents an EnvVar. + * @implements IEnvVar * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set */ - function Model(properties) { - this.supportedExportFormats = []; - this.supportedDeploymentResourcesTypes = []; - this.supportedInputStorageFormats = []; - this.supportedOutputStorageFormats = []; - this.deployedModels = []; - this.labels = {}; + function EnvVar(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162184,269 +162613,393 @@ } /** - * Model name. + * EnvVar name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance */ - Model.prototype.name = ""; + EnvVar.prototype.name = ""; /** - * Model displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Model + * EnvVar value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance */ - Model.prototype.displayName = ""; + EnvVar.prototype.value = ""; /** - * Model description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Creates a new EnvVar instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @static + * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar instance */ - Model.prototype.description = ""; + EnvVar.create = function create(properties) { + return new EnvVar(properties); + }; /** - * Model predictSchemata. - * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @static + * @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 */ - Model.prototype.predictSchemata = null; + EnvVar.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); + return writer; + }; /** - * Model metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * 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.EnvVar + * @static + * @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 */ - Model.prototype.metadataSchemaUri = ""; + EnvVar.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Model metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Decodes an EnvVar message from the specified reader or buffer. + * @function decode + * @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.EnvVar} EnvVar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Model.prototype.metadata = null; + 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.EnvVar(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Model supportedExportFormats. - * @member {Array.} supportedExportFormats - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Decodes an EnvVar message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - Model.prototype.supportedExportFormats = $util.emptyArray; + EnvVar.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Model trainingPipeline. - * @member {string} trainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Verifies an EnvVar message. + * @function verify + * @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 */ - Model.prototype.trainingPipeline = ""; + EnvVar.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"; + return null; + }; /** - * Model containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar */ - Model.prototype.containerSpec = null; + EnvVar.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EnvVar) + 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); + return message; + }; /** - * Model artifactUri. - * @member {string} artifactUri - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance + * Creates a plain object from an EnvVar message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @static + * @param {google.cloud.aiplatform.v1beta1.EnvVar} message EnvVar + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Model.prototype.artifactUri = ""; + EnvVar.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.value = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; /** - * Model supportedDeploymentResourcesTypes. - * @member {Array.} supportedDeploymentResourcesTypes - * @memberof google.cloud.aiplatform.v1beta1.Model + * Converts this EnvVar to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance + * @returns {Object.} JSON object */ - Model.prototype.supportedDeploymentResourcesTypes = $util.emptyArray; + EnvVar.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnvVar; + })(); + + v1beta1.Context = (function() { /** - * Model supportedInputStorageFormats. - * @member {Array.} supportedInputStorageFormats - * @memberof google.cloud.aiplatform.v1beta1.Model + * Properties of a Context. + * @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 + */ + + /** + * Constructs a new Context. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Context. + * @implements IContext + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Context name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.supportedInputStorageFormats = $util.emptyArray; + Context.prototype.name = ""; /** - * Model supportedOutputStorageFormats. - * @member {Array.} supportedOutputStorageFormats - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.supportedOutputStorageFormats = $util.emptyArray; + Context.prototype.displayName = ""; /** - * Model createTime. + * 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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.createTime = null; + Context.prototype.createTime = null; /** - * Model updateTime. + * Context updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.updateTime = null; + Context.prototype.updateTime = null; /** - * Model deployedModels. - * @member {Array.} deployedModels - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context parentContexts. + * @member {Array.} parentContexts + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.deployedModels = $util.emptyArray; + Context.prototype.parentContexts = $util.emptyArray; /** - * Model explanationSpec. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context schemaTitle. + * @member {string} schemaTitle + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.explanationSpec = null; + Context.prototype.schemaTitle = ""; /** - * Model etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.etag = ""; + Context.prototype.schemaVersion = ""; /** - * Model labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.labels = $util.emptyObject; + Context.prototype.metadata = null; /** - * Model encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Model + * Context description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - Model.prototype.encryptionSpec = null; + Context.prototype.description = ""; /** - * Creates a new Model instance using the specified properties. + * Creates a new Context instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Model} Model instance + * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Context} Context instance */ - Model.create = function create(properties) { - return new Model(properties); + Context.create = function create(properties) { + return new Context(properties); }; /** - * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IModel} message Model 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 */ - Model.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.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); + 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 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); + 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 Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IModel} message Model 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 */ - Model.encodeDelimited = function encodeDelimited(message, writer) { + Context.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Model message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Model + * @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.Model} Model + * @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 */ - Model.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.Model(), 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) { @@ -162456,70 +163009,10 @@ case 2: message.displayName = reader.string(); break; - case 3: - message.description = reader.string(); - break; - case 4: - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.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: + case 8: message.etag = reader.string(); break; - case 17: + case 9: if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -162541,8 +163034,28 @@ } message.labels[key] = value; break; - case 24: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + 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); @@ -162553,30 +163066,30 @@ }; /** - * Decodes a Model 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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Model} Model + * @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 */ - Model.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 Model message. + * Verifies a Context message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Model + * @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 */ - Model.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")) @@ -162585,68 +163098,16 @@ 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.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.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); @@ -162658,243 +163119,118 @@ 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; - } - } - 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.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.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.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + 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 "encryptionSpec." + error; + return "metadata." + error; } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a Model 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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Model} Model + * @returns {google.cloud.aiplatform.v1beta1.Context} Context */ - Model.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model) + Context.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Context) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Model(); + 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.description != null) - message.description = String(object.description); - 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.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.Model.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.Model.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.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]); - } - } - 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.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.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.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.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 Model 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.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.Model} message Model + * @param {google.cloud.aiplatform.v1beta1.Context} message Context * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Model.toObject = function toObject(message, options) { + Context.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 = []; - } + if (options.arrays || options.defaults) + object.parentContexts = []; 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.etag = ""; object.createTime = null; object.updateTime = null; - object.etag = ""; - object.explanationSpec = null; - object.encryptionSpec = null; - object.artifactUri = ""; + 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.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; @@ -162903,340 +163239,71 @@ 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.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.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.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 Model to JSON. + * Converts this Context to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance * @returns {Object.} JSON object */ - Model.prototype.toJSON = function toJSON() { + Context.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - 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; + return Context; })(); - v1beta1.PredictSchemata = (function() { + v1beta1.CustomJob = (function() { /** - * Properties of a PredictSchemata. + * Properties of a CustomJob. * @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 + * @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 PredictSchemata. + * Constructs a new CustomJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictSchemata. - * @implements IPredictSchemata + * @classdesc Represents a CustomJob. + * @implements ICustomJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set */ - function PredictSchemata(properties) { + 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) @@ -163244,101 +163311,258 @@ } /** - * PredictSchemata instanceSchemaUri. - * @member {string} instanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * CustomJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - PredictSchemata.prototype.instanceSchemaUri = ""; + CustomJob.prototype.name = ""; /** - * PredictSchemata parametersSchemaUri. - * @member {string} parametersSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * CustomJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - PredictSchemata.prototype.parametersSchemaUri = ""; + CustomJob.prototype.displayName = ""; /** - * PredictSchemata predictionSchemaUri. - * @member {string} predictionSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @instance - */ - PredictSchemata.prototype.predictionSchemaUri = ""; + * CustomJob jobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} jobSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.jobSpec = null; /** - * Creates a new PredictSchemata instance using the specified properties. + * CustomJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.state = 0; + + /** + * CustomJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.createTime = null; + + /** + * CustomJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.startTime = null; + + /** + * CustomJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.endTime = null; + + /** + * CustomJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.updateTime = null; + + /** + * CustomJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.error = null; + + /** + * CustomJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.labels = $util.emptyObject; + + /** + * CustomJob 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 + * @instance + */ + CustomJob.prototype.webAccessUris = $util.emptyObject; + + /** + * Creates a new CustomJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata instance + * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob instance */ - PredictSchemata.create = function create(properties) { - return new PredictSchemata(properties); + CustomJob.create = function create(properties) { + return new CustomJob(properties); }; /** - * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.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.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata 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 */ - PredictSchemata.encode = function encode(message, writer) { + CustomJob.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); + 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.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(); + 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(); + 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.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(); return writer; }; /** - * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.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.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata 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 */ - PredictSchemata.encodeDelimited = function encodeDelimited(message, writer) { + CustomJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictSchemata message from the specified reader or buffer. + * Decodes a CustomJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * @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.PredictSchemata} PredictSchemata + * @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 */ - PredictSchemata.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.PredictSchemata(); + 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) { case 1: - message.instanceSchemaUri = reader.string(); + message.name = reader.string(); break; case 2: - message.parametersSchemaUri = reader.string(); + message.displayName = reader.string(); break; - case 3: - message.predictionSchemaUri = reader.string(); + case 4: + message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + case 5: + message.state = reader.int32(); + break; + case 6: + message.createTime = $root.google.protobuf.Timestamp.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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + 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 12: + 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); @@ -163349,134 +163573,327 @@ }; /** - * Decodes a PredictSchemata 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.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata + * @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 */ - PredictSchemata.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 PredictSchemata message. + * Verifies a CustomJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * @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 */ - PredictSchemata.verify = function verify(message) { + CustomJob.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"; + 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.jobSpec != null && message.hasOwnProperty("jobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.jobSpec); + if (error) + return "jobSpec." + 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 (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 PredictSchemata 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.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob */ - PredictSchemata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictSchemata) + CustomJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJob) 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); + 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.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": + 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.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.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.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.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.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.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 PredictSchemata 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.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.PredictSchemata} message PredictSchemata + * @param {google.cloud.aiplatform.v1beta1.CustomJob} message CustomJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictSchemata.toObject = function toObject(message, options) { + CustomJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) { + object.labels = {}; + object.webAccessUris = {}; + } if (options.defaults) { - object.instanceSchemaUri = ""; - object.parametersSchemaUri = ""; - object.predictionSchemaUri = ""; + object.name = ""; + object.displayName = ""; + 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.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.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.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.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. + * Converts this CustomJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance * @returns {Object.} JSON object */ - PredictSchemata.prototype.toJSON = function toJSON() { + CustomJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PredictSchemata; + return CustomJob; })(); - v1beta1.ModelContainerSpec = (function() { + v1beta1.CustomJobSpec = (function() { /** - * Properties of a ModelContainerSpec. + * Properties of a CustomJobSpec. * @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 + * @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 ModelContainerSpec. + * Constructs a new CustomJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelContainerSpec. - * @implements IModelContainerSpec + * @classdesc Represents a CustomJobSpec. + * @implements ICustomJobSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set */ - function ModelContainerSpec(properties) { - this.command = []; - this.args = []; - this.env = []; - this.ports = []; + 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) @@ -163484,165 +163901,172 @@ } /** - * ModelContainerSpec imageUri. - * @member {string} imageUri - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec workerPoolSpecs. + * @member {Array.} workerPoolSpecs + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.imageUri = ""; + CustomJobSpec.prototype.workerPoolSpecs = $util.emptyArray; /** - * ModelContainerSpec command. - * @member {Array.} command - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec scheduling. + * @member {google.cloud.aiplatform.v1beta1.IScheduling|null|undefined} scheduling + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.command = $util.emptyArray; + CustomJobSpec.prototype.scheduling = null; /** - * ModelContainerSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.args = $util.emptyArray; + CustomJobSpec.prototype.serviceAccount = ""; /** - * ModelContainerSpec env. - * @member {Array.} env - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.env = $util.emptyArray; + CustomJobSpec.prototype.network = ""; /** - * ModelContainerSpec ports. - * @member {Array.} ports - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.ports = $util.emptyArray; + CustomJobSpec.prototype.reservedIpRanges = $util.emptyArray; /** - * ModelContainerSpec predictRoute. - * @member {string} predictRoute - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec baseOutputDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} baseOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.predictRoute = ""; + CustomJobSpec.prototype.baseOutputDirectory = null; /** - * ModelContainerSpec healthRoute. - * @member {string} healthRoute - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * CustomJobSpec tensorboard. + * @member {string} tensorboard + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ModelContainerSpec.prototype.healthRoute = ""; + CustomJobSpec.prototype.tensorboard = ""; /** - * Creates a new ModelContainerSpec instance using the specified properties. + * 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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec instance + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec instance */ - ModelContainerSpec.create = function create(properties) { - return new ModelContainerSpec(properties); + CustomJobSpec.create = function create(properties) { + return new CustomJobSpec(properties); }; /** - * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec 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 */ - ModelContainerSpec.encode = function encode(message, writer) { + CustomJobSpec.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.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 ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec 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 */ - ModelContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { + CustomJobSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer. + * Decodes a CustomJobSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @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.ModelContainerSpec} ModelContainerSpec + * @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 */ - ModelContainerSpec.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.ModelContainerSpec(); + 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.imageUri = reader.string(); - break; - case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); + if (!(message.workerPoolSpecs && message.workerPoolSpecs.length)) + message.workerPoolSpecs = []; + message.workerPoolSpecs.push($root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.decode(reader, reader.uint32())); break; case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.decode(reader, reader.uint32()); break; case 4: - if (!(message.env && message.env.length)) - message.env = []; - message.env.push($root.google.cloud.aiplatform.v1beta1.EnvVar.decode(reader, reader.uint32())); + message.serviceAccount = reader.string(); break; case 5: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push($root.google.cloud.aiplatform.v1beta1.Port.decode(reader, reader.uint32())); + message.network = reader.string(); + break; + case 13: + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); break; case 6: - message.predictRoute = reader.string(); + message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); break; case 7: - message.healthRoute = reader.string(); + message.tensorboard = reader.string(); + break; + case 10: + message.enableWebAccess = reader.bool(); break; default: reader.skipType(tag & 7); @@ -163653,216 +164077,211 @@ }; /** - * Decodes a ModelContainerSpec 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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec + * @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 */ - ModelContainerSpec.decodeDelimited = function decodeDelimited(reader) { + CustomJobSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelContainerSpec message. + * Verifies a CustomJobSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @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 */ - ModelContainerSpec.verify = function verify(message) { + CustomJobSpec.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 (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 "env." + error; + return "workerPoolSpecs." + 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]); - if (error) - return "ports." + 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.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.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"; return null; }; /** - * Creates a ModelContainerSpec 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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec */ - ModelContainerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec) + CustomJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJobSpec) 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.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.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.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.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.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.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.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.predictRoute != null) - message.predictRoute = String(object.predictRoute); - if (object.healthRoute != null) - message.healthRoute = String(object.healthRoute); + 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 a ModelContainerSpec 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.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ModelContainerSpec} message ModelContainerSpec + * @param {google.cloud.aiplatform.v1beta1.CustomJobSpec} message CustomJobSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelContainerSpec.toObject = function toObject(message, options) { + CustomJobSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.command = []; - object.args = []; - object.env = []; - object.ports = []; + object.workerPoolSpecs = []; + object.reservedIpRanges = []; } 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]; + object.scheduling = null; + object.serviceAccount = ""; + object.network = ""; + object.baseOutputDirectory = null; + object.tensorboard = ""; + object.enableWebAccess = false; } - 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.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.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.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.predictRoute != null && message.hasOwnProperty("predictRoute")) - object.predictRoute = message.predictRoute; - if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) - object.healthRoute = message.healthRoute; return object; }; /** - * Converts this ModelContainerSpec to JSON. + * Converts this CustomJobSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance * @returns {Object.} JSON object */ - ModelContainerSpec.prototype.toJSON = function toJSON() { + CustomJobSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModelContainerSpec; + return CustomJobSpec; })(); - v1beta1.Port = (function() { + v1beta1.WorkerPoolSpec = (function() { /** - * Properties of a Port. + * Properties of a WorkerPoolSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPort - * @property {number|null} [containerPort] Port containerPort + * @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 Port. + * Constructs a new WorkerPoolSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Port. - * @implements IPort + * @classdesc Represents a WorkerPoolSpec. + * @implements IWorkerPoolSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set */ - function Port(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) @@ -163870,75 +164289,157 @@ } /** - * Port containerPort. - * @member {number} containerPort - * @memberof google.cloud.aiplatform.v1beta1.Port + * WorkerPoolSpec containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - Port.prototype.containerPort = 0; + WorkerPoolSpec.prototype.containerSpec = null; /** - * Creates a new Port instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Port - * @static - * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Port} Port instance + * WorkerPoolSpec pythonPackageSpec. + * @member {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null|undefined} pythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance */ - Port.create = function create(properties) { - return new Port(properties); - }; + WorkerPoolSpec.prototype.pythonPackageSpec = null; /** - * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Port - * @static - * @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 + * WorkerPoolSpec machineSpec. + * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance */ - Port.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); - return writer; - }; + WorkerPoolSpec.prototype.machineSpec = null; /** - * 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.Port - * @static - * @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 + * WorkerPoolSpec replicaCount. + * @member {number|Long} replicaCount + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance */ - Port.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + WorkerPoolSpec.prototype.replicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Decodes a Port message from the specified reader or buffer. + * WorkerPoolSpec nfsMounts. + * @member {Array.} nfsMounts + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance + */ + WorkerPoolSpec.prototype.nfsMounts = $util.emptyArray; + + /** + * WorkerPoolSpec diskSpec. + * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance + */ + 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 WorkerPoolSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec instance + */ + WorkerPoolSpec.create = function create(properties) { + return new WorkerPoolSpec(properties); + }; + + /** + * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @static + * @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 + */ + WorkerPoolSpec.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(); + return writer; + }; + + /** + * 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.WorkerPoolSpec + * @static + * @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 + */ + WorkerPoolSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkerPoolSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Port + * @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.Port} Port + * @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 */ - Port.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.Port(); + 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 3: - message.containerPort = reader.int32(); + 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()); + break; + 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.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -163949,117 +164450,217 @@ }; /** - * Decodes a Port 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.Port + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Port} Port + * @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 */ - Port.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 Port message. + * Verifies a WorkerPoolSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Port + * @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 */ - Port.verify = function verify(message) { + WorkerPoolSpec.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.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.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.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 Port 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.Port + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Port} Port + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec */ - Port.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Port) + WorkerPoolSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec) 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.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 Port 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.Port + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Port} message Port + * @param {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} message WorkerPoolSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Port.toObject = function toObject(message, options) { + WorkerPoolSpec.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 (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.task = "containerSpec"; + } + 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"; + } return object; }; /** - * Converts this Port to JSON. + * Converts this WorkerPoolSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance * @returns {Object.} JSON object */ - Port.prototype.toJSON = function toJSON() { + WorkerPoolSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Port; + return WorkerPoolSpec; })(); - v1beta1.Dataset = (function() { + v1beta1.ContainerSpec = (function() { /** - * Properties of a Dataset. + * Properties of a ContainerSpec. * @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 IContainerSpec + * @property {string|null} [imageUri] ContainerSpec imageUri + * @property {Array.|null} [command] ContainerSpec command + * @property {Array.|null} [args] ContainerSpec args */ /** - * Constructs a new Dataset. + * Constructs a new ContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Dataset. - * @implements IDataset + * @classdesc Represents a ContainerSpec. + * @implements IContainerSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set */ - function Dataset(properties) { - this.labels = {}; + function ContainerSpec(properties) { + this.command = []; + this.args = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164067,212 +164668,107 @@ } /** - * 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 - * @instance - */ - Dataset.prototype.createTime = null; - - /** - * 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 + * ContainerSpec imageUri. + * @member {string} imageUri + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance */ - Dataset.prototype.etag = ""; + ContainerSpec.prototype.imageUri = ""; /** - * Dataset labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * ContainerSpec command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance */ - Dataset.prototype.labels = $util.emptyObject; + ContainerSpec.prototype.command = $util.emptyArray; /** - * Dataset encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * ContainerSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance */ - Dataset.prototype.encryptionSpec = null; + ContainerSpec.prototype.args = $util.emptyArray; /** - * Creates a new Dataset instance using the specified properties. + * Creates a new ContainerSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset instance + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec instance */ - Dataset.create = function create(properties) { - return new Dataset(properties); + ContainerSpec.create = function create(properties) { + return new ContainerSpec(properties); }; /** - * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.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.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset 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 */ - Dataset.encode = function encode(message, writer) { + ContainerSpec.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.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]); return writer; }; /** - * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.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.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset 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 */ - Dataset.encodeDelimited = function encodeDelimited(message, writer) { + ContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Dataset message from the specified reader or buffer. + * Decodes a ContainerSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @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.Dataset} Dataset + * @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 */ - Dataset.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.Dataset(), key, value; + 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.name = reader.string(); + message.imageUri = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 16: - message.description = reader.string(); + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); break; case 3: - message.metadataSchemaUri = reader.string(); - break; - case 8: - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - 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: - 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.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -164283,218 +164779,154 @@ }; /** - * Decodes a Dataset 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.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset + * @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 */ - Dataset.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 Dataset message. + * Verifies a ContainerSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @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 */ - Dataset.verify = function verify(message) { + ContainerSpec.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.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.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.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; + 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"; } return null; }; /** - * Creates a Dataset 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.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec */ - Dataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Dataset) + ContainerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ContainerSpec) 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); - } - 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]]); + 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.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.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]); } return message; }; /** - * Creates a plain object from a Dataset 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.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Dataset} message Dataset + * @param {google.cloud.aiplatform.v1beta1.ContainerSpec} message ContainerSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Dataset.toObject = function toObject(message, options) { + ContainerSpec.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.metadataSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.metadata = null; - object.encryptionSpec = null; - object.description = ""; + if (options.arrays || options.defaults) { + object.command = []; + object.args = []; } - 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 (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]; } - 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 ContainerSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance * @returns {Object.} JSON object */ - Dataset.prototype.toJSON = function toJSON() { + ContainerSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Dataset; + return ContainerSpec; })(); - v1beta1.ImportDataConfig = (function() { + v1beta1.PythonPackageSpec = (function() { /** - * Properties of an ImportDataConfig. + * Properties of a PythonPackageSpec. * @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 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 */ /** - * Constructs a new ImportDataConfig. + * Constructs a new PythonPackageSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataConfig. - * @implements IImportDataConfig + * @classdesc Represents a PythonPackageSpec. + * @implements IPythonPackageSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set */ - function ImportDataConfig(properties) { - this.dataItemLabels = {}; + function PythonPackageSpec(properties) { + this.packageUris = []; + this.args = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164502,135 +164934,120 @@ } /** - * ImportDataConfig gcsSource. - * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * PythonPackageSpec executorImageUri. + * @member {string} executorImageUri + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - ImportDataConfig.prototype.gcsSource = null; + PythonPackageSpec.prototype.executorImageUri = ""; /** - * ImportDataConfig dataItemLabels. - * @member {Object.} dataItemLabels - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * PythonPackageSpec packageUris. + * @member {Array.} packageUris + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - ImportDataConfig.prototype.dataItemLabels = $util.emptyObject; + PythonPackageSpec.prototype.packageUris = $util.emptyArray; /** - * ImportDataConfig importSchemaUri. - * @member {string} importSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * PythonPackageSpec pythonModule. + * @member {string} pythonModule + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - ImportDataConfig.prototype.importSchemaUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PythonPackageSpec.prototype.pythonModule = ""; /** - * ImportDataConfig source. - * @member {"gcsSource"|undefined} source - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * PythonPackageSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Object.defineProperty(ImportDataConfig.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + PythonPackageSpec.prototype.args = $util.emptyArray; /** - * Creates a new ImportDataConfig instance using the specified properties. + * Creates a new PythonPackageSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec instance */ - ImportDataConfig.create = function create(properties) { - return new ImportDataConfig(properties); + PythonPackageSpec.create = function create(properties) { + return new PythonPackageSpec(properties); }; /** - * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.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.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig 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 */ - ImportDataConfig.encode = function encode(message, writer) { + PythonPackageSpec.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.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]); return writer; }; /** - * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.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.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig 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 */ - ImportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + PythonPackageSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataConfig message from the specified reader or buffer. + * Decodes a PythonPackageSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @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.ImportDataConfig} ImportDataConfig + * @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 */ - ImportDataConfig.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.ImportDataConfig(), 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.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); + message.executorImageUri = reader.string(); 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; + if (!(message.packageUris && message.packageUris.length)) + message.packageUris = []; + message.packageUris.push(reader.string()); + break; + case 3: + message.pythonModule = reader.string(); break; case 4: - message.importSchemaUri = reader.string(); + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -164641,150 +165058,159 @@ }; /** - * Decodes an ImportDataConfig 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.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig + * @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 */ - ImportDataConfig.decodeDelimited = function decodeDelimited(reader) { + PythonPackageSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataConfig message. + * Verifies a PythonPackageSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @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 */ - ImportDataConfig.verify = function verify(message) { + PythonPackageSpec.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.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.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.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.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) - if (!$util.isString(message.importSchemaUri)) - return "importSchemaUri: string expected"; return null; }; /** - * Creates an ImportDataConfig 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.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec */ - ImportDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataConfig) + PythonPackageSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec) 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); + 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.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.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.importSchemaUri != null) - message.importSchemaUri = String(object.importSchemaUri); return message; }; /** - * Creates a plain object from an ImportDataConfig 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.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataConfig} message ImportDataConfig + * @param {google.cloud.aiplatform.v1beta1.PythonPackageSpec} message PythonPackageSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataConfig.toObject = function toObject(message, options) { + PythonPackageSpec.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"; + if (options.arrays || options.defaults) { + object.packageUris = []; + object.args = []; } - 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.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]; } - if (message.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) - object.importSchemaUri = message.importSchemaUri; return object; }; /** - * Converts this ImportDataConfig to JSON. + * Converts this PythonPackageSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance * @returns {Object.} JSON object */ - ImportDataConfig.prototype.toJSON = function toJSON() { + PythonPackageSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataConfig; + return PythonPackageSpec; })(); - v1beta1.ExportDataConfig = (function() { + v1beta1.Scheduling = (function() { /** - * Properties of an ExportDataConfig. + * Properties of a Scheduling. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataConfig - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination - * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter + * @interface IScheduling + * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout + * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart */ /** - * Constructs a new ExportDataConfig. + * Constructs a new Scheduling. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataConfig. - * @implements IExportDataConfig + * @classdesc Represents a Scheduling. + * @implements IScheduling * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set */ - function ExportDataConfig(properties) { + function Scheduling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164792,102 +165218,88 @@ } /** - * ExportDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig - * @instance - */ - ExportDataConfig.prototype.gcsDestination = null; - - /** - * ExportDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * Scheduling timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance */ - ExportDataConfig.prototype.annotationsFilter = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Scheduling.prototype.timeout = null; /** - * ExportDataConfig destination. - * @member {"gcsDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * Scheduling restartJobOnWorkerRestart. + * @member {boolean} restartJobOnWorkerRestart + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance */ - Object.defineProperty(ExportDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + Scheduling.prototype.restartJobOnWorkerRestart = false; /** - * Creates a new ExportDataConfig instance using the specified properties. + * Creates a new Scheduling instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling instance */ - ExportDataConfig.create = function create(properties) { - return new ExportDataConfig(properties); + Scheduling.create = function create(properties) { + return new Scheduling(properties); }; /** - * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.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.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig 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 */ - ExportDataConfig.encode = function encode(message, writer) { + Scheduling.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.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 ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.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.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig 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 */ - ExportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + Scheduling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataConfig message from the specified reader or buffer. + * Decodes a Scheduling message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @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.ExportDataConfig} ExportDataConfig + * @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 */ - ExportDataConfig.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.ExportDataConfig(); + 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.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; - case 2: - message.annotationsFilter = reader.string(); + case 3: + message.restartJobOnWorkerRestart = reader.bool(); break; default: reader.skipType(tag & 7); @@ -164898,127 +165310,127 @@ }; /** - * Decodes an ExportDataConfig 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.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig + * @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 */ - ExportDataConfig.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 ExportDataConfig message. + * Verifies a Scheduling message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @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 */ - ExportDataConfig.verify = function verify(message) { + Scheduling.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.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; + if (message.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) + if (typeof message.restartJobOnWorkerRestart !== "boolean") + return "restartJobOnWorkerRestart: boolean expected"; return null; }; /** - * Creates an ExportDataConfig 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.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling */ - ExportDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataConfig) + Scheduling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Scheduling) 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.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.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); + if (object.restartJobOnWorkerRestart != null) + message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); return message; }; /** - * Creates a plain object from an ExportDataConfig 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.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataConfig} message ExportDataConfig + * @param {google.cloud.aiplatform.v1beta1.Scheduling} message Scheduling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataConfig.toObject = function toObject(message, options) { + Scheduling.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.defaults) { + object.timeout = null; + object.restartJobOnWorkerRestart = false; } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; + 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 ExportDataConfig to JSON. + * Converts this Scheduling to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance * @returns {Object.} JSON object */ - ExportDataConfig.prototype.toJSON = function toJSON() { + Scheduling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataConfig; + return Scheduling; })(); - v1beta1.DeployedModelRef = (function() { + v1beta1.DataItem = (function() { /** - * Properties of a DeployedModelRef. + * Properties of a DataItem. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedModelRef - * @property {string|null} [endpoint] DeployedModelRef endpoint - * @property {string|null} [deployedModelId] DeployedModelRef deployedModelId + * @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 DeployedModelRef. + * Constructs a new DataItem. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedModelRef. - * @implements IDeployedModelRef + * @classdesc Represents a DataItem. + * @implements IDataItem * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set */ - function DeployedModelRef(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) @@ -165026,290 +165438,121 @@ } /** - * DeployedModelRef endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * DataItem name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - DeployedModelRef.prototype.endpoint = ""; + DataItem.prototype.name = ""; /** - * DeployedModelRef deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * DataItem createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - DeployedModelRef.prototype.deployedModelId = ""; - - /** - * Creates a new DeployedModelRef instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef instance - */ - DeployedModelRef.create = function create(properties) { - return new DeployedModelRef(properties); - }; - - /** - * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @static - * @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 - */ - DeployedModelRef.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); - return writer; - }; - - /** - * 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.DeployedModelRef - * @static - * @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 - */ - DeployedModelRef.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeployedModelRef message from the specified reader or buffer. - * @function decode - * @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.DeployedModelRef} DeployedModelRef - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.endpoint = reader.string(); - break; - case 2: - message.deployedModelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeployedModelRef.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeployedModelRef message. - * @function verify - * @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 - */ - DeployedModelRef.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"; - return null; - }; - - /** - * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef - */ - DeployedModelRef.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModelRef) - 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); - return message; - }; - - /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedModelRef} message DeployedModelRef - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployedModelRef.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; - return object; - }; + DataItem.prototype.createTime = null; /** - * Converts this DeployedModelRef to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * DataItem updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance - * @returns {Object.} JSON object - */ - DeployedModelRef.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeployedModelRef; - })(); - - v1beta1.EnvVar = (function() { - - /** - * Properties of an EnvVar. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IEnvVar - * @property {string|null} [name] EnvVar name - * @property {string|null} [value] EnvVar value */ + DataItem.prototype.updateTime = null; /** - * Constructs a new EnvVar. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EnvVar. - * @implements IEnvVar - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set + * DataItem labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @instance */ - function EnvVar(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]]; - } + DataItem.prototype.labels = $util.emptyObject; /** - * EnvVar name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * DataItem payload. + * @member {google.protobuf.IValue|null|undefined} payload + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - EnvVar.prototype.name = ""; + DataItem.prototype.payload = null; /** - * EnvVar value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * DataItem etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - EnvVar.prototype.value = ""; + DataItem.prototype.etag = ""; /** - * Creates a new EnvVar instance using the specified properties. + * Creates a new DataItem instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar instance + * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem instance */ - EnvVar.create = function create(properties) { - return new EnvVar(properties); + DataItem.create = function create(properties) { + return new DataItem(properties); }; /** - * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.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.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar 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 */ - EnvVar.encode = function encode(message, writer) { + DataItem.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.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 EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.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.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar 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 */ - EnvVar.encodeDelimited = function encodeDelimited(message, writer) { + DataItem.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnvVar message from the specified reader or buffer. + * Decodes a DataItem message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @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.EnvVar} EnvVar + * @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 */ - EnvVar.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.EnvVar(); + 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) { @@ -165317,7 +165560,38 @@ message.name = reader.string(); break; case 2: - message.value = 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); @@ -165328,128 +165602,199 @@ }; /** - * Decodes an EnvVar 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.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar + * @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 */ - EnvVar.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 EnvVar message. + * Verifies a DataItem message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @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 */ - EnvVar.verify = function verify(message) { + DataItem.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.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.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 EnvVar 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.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem */ - EnvVar.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.EnvVar) + DataItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataItem) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.EnvVar(); + var message = new $root.google.cloud.aiplatform.v1beta1.DataItem(); if (object.name != null) message.name = String(object.name); - if (object.value != null) - message.value = String(object.value); + 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.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 EnvVar 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.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.EnvVar} message EnvVar + * @param {google.cloud.aiplatform.v1beta1.DataItem} message DataItem * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnvVar.toObject = function toObject(message, options) { + DataItem.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; - object.value = ""; + object.createTime = null; + object.payload = null; + object.updateTime = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + 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 EnvVar to JSON. + * Converts this DataItem to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance * @returns {Object.} JSON object */ - EnvVar.prototype.toJSON = function toJSON() { + DataItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnvVar; + return DataItem; })(); - v1beta1.Context = (function() { + v1beta1.DataLabelingJob = (function() { /** - * Properties of a Context. + * Properties of a DataLabelingJob. * @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 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 */ /** - * Constructs a new Context. + * Constructs a new DataLabelingJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Context. - * @implements IContext + * @classdesc Represents a DataLabelingJob. + * @implements IDataLabelingJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set */ - function Context(properties) { + function DataLabelingJob(properties) { + this.datasets = []; + this.annotationLabels = {}; this.labels = {}; - this.parentContexts = []; + this.specialistPools = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165457,172 +165802,244 @@ } /** - * Context name. + * DataLabelingJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.name = ""; + DataLabelingJob.prototype.name = ""; /** - * Context displayName. + * DataLabelingJob displayName. * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.displayName = ""; + DataLabelingJob.prototype.displayName = ""; /** - * Context etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob datasets. + * @member {Array.} datasets + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.etag = ""; + DataLabelingJob.prototype.datasets = $util.emptyArray; /** - * Context labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob annotationLabels. + * @member {Object.} annotationLabels + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.labels = $util.emptyObject; + DataLabelingJob.prototype.annotationLabels = $util.emptyObject; /** - * Context createTime. + * 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 + * @instance + */ + DataLabelingJob.prototype.inputsSchemaUri = ""; + + /** + * DataLabelingJob inputs. + * @member {google.protobuf.IValue|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance + */ + DataLabelingJob.prototype.inputs = null; + + /** + * DataLabelingJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance + */ + DataLabelingJob.prototype.state = 0; + + /** + * DataLabelingJob labelingProgress. + * @member {number} labelingProgress + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance + */ + DataLabelingJob.prototype.labelingProgress = 0; + + /** + * DataLabelingJob currentSpend. + * @member {google.type.IMoney|null|undefined} currentSpend + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance + */ + DataLabelingJob.prototype.currentSpend = null; + + /** + * DataLabelingJob createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.createTime = null; + DataLabelingJob.prototype.createTime = null; /** - * Context updateTime. + * DataLabelingJob updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.updateTime = null; + DataLabelingJob.prototype.updateTime = null; /** - * Context parentContexts. - * @member {Array.} parentContexts - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.parentContexts = $util.emptyArray; + DataLabelingJob.prototype.error = null; /** - * Context schemaTitle. - * @member {string} schemaTitle - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.schemaTitle = ""; + DataLabelingJob.prototype.labels = $util.emptyObject; /** - * Context schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob specialistPools. + * @member {Array.} specialistPools + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.schemaVersion = ""; + DataLabelingJob.prototype.specialistPools = $util.emptyArray; /** - * Context metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.metadata = null; + DataLabelingJob.prototype.encryptionSpec = null; /** - * Context description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Context + * DataLabelingJob activeLearningConfig. + * @member {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null|undefined} activeLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - Context.prototype.description = ""; + DataLabelingJob.prototype.activeLearningConfig = null; /** - * Creates a new Context instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Context} Context instance + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob instance */ - Context.create = function create(properties) { - return new Context(properties); + DataLabelingJob.create = function create(properties) { + return new DataLabelingJob(properties); }; /** - * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.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.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.IContext} message Context 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 */ - Context.encode = function encode(message, writer) { + DataLabelingJob.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.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 10, wireType 2 =*/82).fork()).ldelim(); + $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 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); + $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 Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.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.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.IContext} message Context 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 */ - Context.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Context message from the specified reader or buffer. + * Decodes a DataLabelingJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Context + * @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.Context} Context + * @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 */ - Context.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.Context(), key, value; + 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) { @@ -165632,12 +166049,14 @@ case 2: message.displayName = reader.string(); break; - case 8: - message.etag = reader.string(); + case 3: + if (!(message.datasets && message.datasets.length)) + message.datasets = []; + message.datasets.push(reader.string()); break; - case 9: - if (message.labels === $util.emptyObject) - message.labels = {}; + case 12: + if (message.annotationLabels === $util.emptyObject) + message.annotationLabels = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = ""; @@ -165655,30 +166074,70 @@ break; } } - message.labels[key] = value; + message.annotationLabels[key] = value; break; - case 10: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 4: + message.labelerCount = reader.int32(); break; - case 11: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: + message.instructionUri = reader.string(); break; - case 12: - if (!(message.parentContexts && message.parentContexts.length)) - message.parentContexts = []; - message.parentContexts.push(reader.string()); + 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.schemaTitle = reader.string(); + message.labelingProgress = reader.int32(); break; case 14: - message.schemaVersion = reader.string(); + message.currentSpend = $root.google.type.Money.decode(reader, reader.uint32()); break; - case 15: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + 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: - message.description = reader.string(); + 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); @@ -165689,30 +166148,30 @@ }; /** - * Decodes a Context 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.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Context} Context + * @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 */ - Context.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 Context message. + * Verifies a DataLabelingJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Context + * @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 */ - Context.verify = function verify(message) { + DataLabelingJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -165721,16 +166180,59 @@ 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); + 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.labels[key[i]])) - return "labels: string{k:string} expected"; + 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 "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); @@ -165742,191 +166244,299 @@ 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.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + 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.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 "metadata." + 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.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. + * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Context} Context + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob */ - Context.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Context) + DataLabelingJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataLabelingJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Context(); + 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.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.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.Context.createTime: object expected"); + 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.Context.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.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.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.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.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); } - 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. + * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.Context} message Context + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} message DataLabelingJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Context.toObject = function toObject(message, options) { + DataLabelingJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.parentContexts = []; - if (options.objects || options.defaults) + if (options.arrays || options.defaults) { + object.datasets = []; + object.specialistPools = []; + } + if (options.objects || options.defaults) { object.labels = {}; + object.annotationLabels = {}; + } if (options.defaults) { object.name = ""; object.displayName = ""; - object.etag = ""; + 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.schemaTitle = ""; - object.schemaVersion = ""; - object.metadata = null; - object.description = ""; + object.labelingProgress = 0; + object.currentSpend = null; + object.encryptionSpec = null; + object.activeLearningConfig = null; + object.error = 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.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + 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.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.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.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 (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 Context to JSON. + * Converts this DataLabelingJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance * @returns {Object.} JSON object */ - Context.prototype.toJSON = function toJSON() { + DataLabelingJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Context; + return DataLabelingJob; })(); - v1beta1.CustomJob = (function() { + v1beta1.ActiveLearningConfig = (function() { /** - * Properties of a CustomJob. + * Properties of an ActiveLearningConfig. * @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 + * @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 CustomJob. + * Constructs a new ActiveLearningConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CustomJob. - * @implements ICustomJob + * @classdesc Represents an ActiveLearningConfig. + * @implements IActiveLearningConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set */ - function CustomJob(properties) { - this.labels = {}; - this.webAccessUris = {}; + function ActiveLearningConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165934,258 +166544,128 @@ } /** - * CustomJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.name = ""; - - /** - * CustomJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.displayName = ""; - - /** - * CustomJob jobSpec. - * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} jobSpec - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.jobSpec = null; - - /** - * CustomJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.state = 0; - - /** - * CustomJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.createTime = null; - - /** - * CustomJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.startTime = null; - - /** - * CustomJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * ActiveLearningConfig maxDataItemCount. + * @member {number|Long|null|undefined} maxDataItemCount + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CustomJob.prototype.endTime = null; + ActiveLearningConfig.prototype.maxDataItemCount = null; /** - * CustomJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * ActiveLearningConfig maxDataItemPercentage. + * @member {number|null|undefined} maxDataItemPercentage + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CustomJob.prototype.updateTime = null; + ActiveLearningConfig.prototype.maxDataItemPercentage = null; /** - * CustomJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * ActiveLearningConfig sampleConfig. + * @member {google.cloud.aiplatform.v1beta1.ISampleConfig|null|undefined} sampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CustomJob.prototype.error = null; + ActiveLearningConfig.prototype.sampleConfig = null; /** - * CustomJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * ActiveLearningConfig trainingConfig. + * @member {google.cloud.aiplatform.v1beta1.ITrainingConfig|null|undefined} trainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CustomJob.prototype.labels = $util.emptyObject; + ActiveLearningConfig.prototype.trainingConfig = null; - /** - * CustomJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.encryptionSpec = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CustomJob webAccessUris. - * @member {Object.} webAccessUris - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * ActiveLearningConfig humanLabelingBudget. + * @member {"maxDataItemCount"|"maxDataItemPercentage"|undefined} humanLabelingBudget + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CustomJob.prototype.webAccessUris = $util.emptyObject; + Object.defineProperty(ActiveLearningConfig.prototype, "humanLabelingBudget", { + get: $util.oneOfGetter($oneOfFields = ["maxDataItemCount", "maxDataItemPercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new ActiveLearningConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob instance + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig instance */ - CustomJob.create = function create(properties) { - return new CustomJob(properties); + ActiveLearningConfig.create = function create(properties) { + return new ActiveLearningConfig(properties); }; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.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.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob 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 */ - CustomJob.encode = function encode(message, writer) { + ActiveLearningConfig.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.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(); - 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(); - 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.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(); + 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 CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.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.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob 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 */ - CustomJob.encodeDelimited = function encodeDelimited(message, writer) { + ActiveLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes an ActiveLearningConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @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.CustomJob} CustomJob + * @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 */ - CustomJob.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.CustomJob(), key, value; + 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.name = reader.string(); + message.maxDataItemCount = reader.int64(); break; case 2: - message.displayName = reader.string(); - break; - case 4: - message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); - break; - case 5: - message.state = reader.int32(); - break; - case 6: - message.createTime = $root.google.protobuf.Timestamp.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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - 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; + message.maxDataItemPercentage = reader.int32(); break; - case 12: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + case 3: + message.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.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; + case 4: + message.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -166196,320 +166676,165 @@ }; /** - * Decodes a CustomJob 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.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob + * @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 */ - CustomJob.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 CustomJob message. + * Verifies an ActiveLearningConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @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 */ - CustomJob.verify = function verify(message) { + ActiveLearningConfig.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.jobSpec != null && message.hasOwnProperty("jobSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.jobSpec); - if (error) - return "jobSpec." + 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: - 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; + 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.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + 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.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + if (message.sampleConfig != null && message.hasOwnProperty("sampleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.SampleConfig.verify(message.sampleConfig); 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"; + return "sampleConfig." + error; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.verify(message.trainingConfig); 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 "trainingConfig." + error; } return null; }; /** - * Creates a CustomJob 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.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig */ - CustomJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJob) + ActiveLearningConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig) return object; - 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.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": - 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; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - 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.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.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.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.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + 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.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]]); + 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 CustomJob 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.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.CustomJob} message CustomJob + * @param {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} message ActiveLearningConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomJob.toObject = function toObject(message, options) { + ActiveLearningConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.labels = {}; - object.webAccessUris = {}; - } if (options.defaults) { - object.name = ""; - object.displayName = ""; - 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.error = null; - object.encryptionSpec = null; + object.sampleConfig = null; + object.trainingConfig = 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.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.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.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.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 CustomJob to JSON. + * Converts this ActiveLearningConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance * @returns {Object.} JSON object */ - CustomJob.prototype.toJSON = function toJSON() { + ActiveLearningConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CustomJob; + return ActiveLearningConfig; })(); - v1beta1.CustomJobSpec = (function() { + v1beta1.SampleConfig = (function() { /** - * Properties of a CustomJobSpec. + * Properties of a SampleConfig. * @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 {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory - * @property {string|null} [tensorboard] CustomJobSpec tensorboard - * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess + * @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 CustomJobSpec. + * Constructs a new SampleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CustomJobSpec. - * @implements ICustomJobSpec + * @classdesc Represents a SampleConfig. + * @implements ISampleConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set */ - function CustomJobSpec(properties) { - this.workerPoolSpecs = []; + function SampleConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166517,156 +166842,126 @@ } /** - * 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 + * SampleConfig initialBatchSamplePercentage. + * @member {number|null|undefined} initialBatchSamplePercentage + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - CustomJobSpec.prototype.scheduling = null; + SampleConfig.prototype.initialBatchSamplePercentage = null; /** - * CustomJobSpec serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * SampleConfig followingBatchSamplePercentage. + * @member {number|null|undefined} followingBatchSamplePercentage + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - CustomJobSpec.prototype.serviceAccount = ""; + SampleConfig.prototype.followingBatchSamplePercentage = null; /** - * CustomJobSpec network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * SampleConfig sampleStrategy. + * @member {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy} sampleStrategy + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - CustomJobSpec.prototype.network = ""; + SampleConfig.prototype.sampleStrategy = 0; - /** - * CustomJobSpec baseOutputDirectory. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} baseOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.baseOutputDirectory = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CustomJobSpec tensorboard. - * @member {string} tensorboard - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * SampleConfig initialBatchSampleSize. + * @member {"initialBatchSamplePercentage"|undefined} initialBatchSampleSize + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - CustomJobSpec.prototype.tensorboard = ""; + Object.defineProperty(SampleConfig.prototype, "initialBatchSampleSize", { + get: $util.oneOfGetter($oneOfFields = ["initialBatchSamplePercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * CustomJobSpec enableWebAccess. - * @member {boolean} enableWebAccess - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * SampleConfig followingBatchSampleSize. + * @member {"followingBatchSamplePercentage"|undefined} followingBatchSampleSize + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - CustomJobSpec.prototype.enableWebAccess = false; + Object.defineProperty(SampleConfig.prototype, "followingBatchSampleSize", { + get: $util.oneOfGetter($oneOfFields = ["followingBatchSamplePercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CustomJobSpec instance using the specified properties. + * Creates a new SampleConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec instance + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig instance */ - CustomJobSpec.create = function create(properties) { - return new CustomJobSpec(properties); + SampleConfig.create = function create(properties) { + return new SampleConfig(properties); }; /** - * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.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.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec 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 */ - CustomJobSpec.encode = function encode(message, writer) { + SampleConfig.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.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 CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.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.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec 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 */ - CustomJobSpec.encodeDelimited = function encodeDelimited(message, writer) { + SampleConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJobSpec message from the specified reader or buffer. + * Decodes a SampleConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @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.CustomJobSpec} CustomJobSpec + * @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 */ - CustomJobSpec.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.CustomJobSpec(); + 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: - if (!(message.workerPoolSpecs && message.workerPoolSpecs.length)) - message.workerPoolSpecs = []; - message.workerPoolSpecs.push($root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.decode(reader, reader.uint32())); + message.initialBatchSamplePercentage = reader.int32(); break; case 3: - message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.decode(reader, reader.uint32()); - break; - case 4: - message.serviceAccount = reader.string(); + message.followingBatchSamplePercentage = reader.int32(); break; case 5: - message.network = 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(); + message.sampleStrategy = reader.int32(); break; default: reader.skipType(tag & 7); @@ -166677,188 +166972,159 @@ }; /** - * Decodes a CustomJobSpec 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.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec + * @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 */ - CustomJobSpec.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 CustomJobSpec message. + * Verifies a SampleConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @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 */ - CustomJobSpec.verify = function verify(message) { + SampleConfig.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; + var properties = {}; + if (message.initialBatchSamplePercentage != null && message.hasOwnProperty("initialBatchSamplePercentage")) { + properties.initialBatchSampleSize = 1; + if (!$util.isInteger(message.initialBatchSamplePercentage)) + return "initialBatchSamplePercentage: integer expected"; } - 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.baseOutputDirectory != null && message.hasOwnProperty("baseOutputDirectory")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.baseOutputDirectory); - if (error) - return "baseOutputDirectory." + error; + if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { + properties.followingBatchSampleSize = 1; + if (!$util.isInteger(message.followingBatchSamplePercentage)) + return "followingBatchSamplePercentage: integer expected"; } - 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.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) + switch (message.sampleStrategy) { + default: + return "sampleStrategy: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a CustomJobSpec 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.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig */ - CustomJobSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJobSpec) + SampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SampleConfig) 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.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); + 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; } - 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 a CustomJobSpec 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.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.CustomJobSpec} message CustomJobSpec + * @param {google.cloud.aiplatform.v1beta1.SampleConfig} message SampleConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomJobSpec.toObject = function toObject(message, options) { + SampleConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.workerPoolSpecs = []; - if (options.defaults) { - object.scheduling = null; - object.serviceAccount = ""; - object.network = ""; - object.baseOutputDirectory = null; - object.tensorboard = ""; - object.enableWebAccess = false; + 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.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.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { + object.followingBatchSamplePercentage = message.followingBatchSamplePercentage; + if (options.oneofs) + object.followingBatchSampleSize = "followingBatchSamplePercentage"; } - 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.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 CustomJobSpec to JSON. + * Converts this SampleConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance * @returns {Object.} JSON object */ - CustomJobSpec.prototype.toJSON = function toJSON() { + SampleConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CustomJobSpec; + /** + * 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.WorkerPoolSpec = (function() { + v1beta1.TrainingConfig = (function() { /** - * Properties of a WorkerPoolSpec. + * Properties of a TrainingConfig. * @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 {google.cloud.aiplatform.v1beta1.IDiskSpec|null} [diskSpec] WorkerPoolSpec diskSpec + * @interface ITrainingConfig + * @property {number|Long|null} [timeoutTrainingMilliHours] TrainingConfig timeoutTrainingMilliHours */ /** - * Constructs a new WorkerPoolSpec. + * Constructs a new TrainingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a WorkerPoolSpec. - * @implements IWorkerPoolSpec + * @classdesc Represents a TrainingConfig. + * @implements ITrainingConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set */ - function WorkerPoolSpec(properties) { + function TrainingConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166866,141 +167132,75 @@ } /** - * WorkerPoolSpec containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec - * @instance - */ - WorkerPoolSpec.prototype.containerSpec = null; - - /** - * WorkerPoolSpec pythonPackageSpec. - * @member {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null|undefined} pythonPackageSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec - * @instance - */ - WorkerPoolSpec.prototype.pythonPackageSpec = null; - - /** - * WorkerPoolSpec machineSpec. - * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec - * @instance - */ - WorkerPoolSpec.prototype.machineSpec = null; - - /** - * 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; - - /** - * WorkerPoolSpec diskSpec. - * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec - * @instance - */ - 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 + * TrainingConfig timeoutTrainingMilliHours. + * @member {number|Long} timeoutTrainingMilliHours + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @instance */ - Object.defineProperty(WorkerPoolSpec.prototype, "task", { - get: $util.oneOfGetter($oneOfFields = ["containerSpec", "pythonPackageSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + TrainingConfig.prototype.timeoutTrainingMilliHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec instance + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig instance */ - WorkerPoolSpec.create = function create(properties) { - return new WorkerPoolSpec(properties); + TrainingConfig.create = function create(properties) { + return new TrainingConfig(properties); }; /** - * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.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.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec 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 */ - WorkerPoolSpec.encode = function encode(message, writer) { + TrainingConfig.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.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.timeoutTrainingMilliHours != null && Object.hasOwnProperty.call(message, "timeoutTrainingMilliHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timeoutTrainingMilliHours); return writer; }; /** - * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.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.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec 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 */ - WorkerPoolSpec.encodeDelimited = function encodeDelimited(message, writer) { + TrainingConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer. + * Decodes a TrainingConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @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.WorkerPoolSpec} WorkerPoolSpec + * @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 */ - WorkerPoolSpec.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.WorkerPoolSpec(); + 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 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()); - break; - case 2: - message.replicaCount = reader.int64(); - break; - case 5: - message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); + message.timeoutTrainingMilliHours = reader.int64(); break; default: reader.skipType(tag & 7); @@ -167011,191 +167211,131 @@ }; /** - * Decodes a WorkerPoolSpec 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.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec + * @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 */ - WorkerPoolSpec.decodeDelimited = function decodeDelimited(reader) { + TrainingConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WorkerPoolSpec message. + * Verifies a TrainingConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @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 */ - WorkerPoolSpec.verify = function verify(message) { + TrainingConfig.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.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.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.diskSpec != null && message.hasOwnProperty("diskSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.DiskSpec.verify(message.diskSpec); - if (error) - return "diskSpec." + 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 a WorkerPoolSpec 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.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig */ - WorkerPoolSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec) + TrainingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingConfig) 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); - } - 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) + var message = new $root.google.cloud.aiplatform.v1beta1.TrainingConfig(); + if (object.timeoutTrainingMilliHours != 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.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); - } + (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 a WorkerPoolSpec 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.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} message WorkerPoolSpec + * @param {google.cloud.aiplatform.v1beta1.TrainingConfig} message TrainingConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WorkerPoolSpec.toObject = function toObject(message, options) { + TrainingConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.machineSpec = null; + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, false); - object.replicaCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.timeoutTrainingMilliHours = 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; + 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.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.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.pythonPackageSpec != null && message.hasOwnProperty("pythonPackageSpec")) { - object.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.toObject(message.pythonPackageSpec, options); - if (options.oneofs) - object.task = "pythonPackageSpec"; - } + 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 WorkerPoolSpec to JSON. + * Converts this TrainingConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @instance * @returns {Object.} JSON object */ - WorkerPoolSpec.prototype.toJSON = function toJSON() { + TrainingConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WorkerPoolSpec; + return TrainingConfig; })(); - v1beta1.ContainerSpec = (function() { + v1beta1.Dataset = (function() { /** - * Properties of a ContainerSpec. + * Properties of a Dataset. * @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 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 ContainerSpec. + * Constructs a new Dataset. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ContainerSpec. - * @implements IContainerSpec + * @classdesc Represents a Dataset. + * @implements IDataset * @constructor - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set */ - function ContainerSpec(properties) { - this.command = []; - this.args = []; + function Dataset(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167203,107 +167343,212 @@ } /** - * ContainerSpec imageUri. - * @member {string} imageUri - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * Dataset name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ContainerSpec.prototype.imageUri = ""; + Dataset.prototype.name = ""; /** - * ContainerSpec command. - * @member {Array.} command - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * Dataset displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ContainerSpec.prototype.command = $util.emptyArray; + Dataset.prototype.displayName = ""; /** - * ContainerSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * Dataset description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ContainerSpec.prototype.args = $util.emptyArray; + Dataset.prototype.description = ""; /** - * Creates a new ContainerSpec instance using the specified properties. + * 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 + * @instance + */ + Dataset.prototype.createTime = null; + + /** + * 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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec instance + * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset instance */ - ContainerSpec.create = function create(properties) { - return new ContainerSpec(properties); + Dataset.create = function create(properties) { + return new Dataset(properties); }; /** - * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec 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 */ - ContainerSpec.encode = function encode(message, writer) { + Dataset.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.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 ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec 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 */ - ContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { + Dataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ContainerSpec message from the specified reader or buffer. + * Decodes a Dataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @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.ContainerSpec} ContainerSpec + * @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 */ - ContainerSpec.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.ContainerSpec(); + 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.imageUri = reader.string(); + message.name = reader.string(); break; case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); + message.displayName = reader.string(); + break; + case 16: + message.description = reader.string(); break; case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.metadataSchemaUri = reader.string(); + break; + case 8: + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + 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: + 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); @@ -167314,154 +167559,218 @@ }; /** - * Decodes a ContainerSpec 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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec + * @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 */ - ContainerSpec.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 ContainerSpec message. + * Verifies a Dataset message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @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 */ - ContainerSpec.verify = function verify(message) { + Dataset.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.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.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.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; } return null; }; /** - * Creates a ContainerSpec 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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset */ - ContainerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ContainerSpec) + Dataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Dataset) 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]); + 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.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.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); } return message; }; /** - * Creates a plain object from a ContainerSpec 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.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.ContainerSpec} message ContainerSpec + * @param {google.cloud.aiplatform.v1beta1.Dataset} message Dataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ContainerSpec.toObject = function toObject(message, options) { + Dataset.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 (options.objects || options.defaults) + object.labels = {}; + 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 = ""; } - 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.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 ContainerSpec to JSON. + * Converts this Dataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance * @returns {Object.} JSON object */ - ContainerSpec.prototype.toJSON = function toJSON() { + Dataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ContainerSpec; + return Dataset; })(); - v1beta1.PythonPackageSpec = (function() { + v1beta1.ImportDataConfig = (function() { /** - * Properties of a PythonPackageSpec. + * Properties of an ImportDataConfig. * @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 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 PythonPackageSpec. + * Constructs a new ImportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PythonPackageSpec. - * @implements IPythonPackageSpec + * @classdesc Represents an ImportDataConfig. + * @implements IImportDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set */ - function PythonPackageSpec(properties) { - this.packageUris = []; - this.args = []; + function ImportDataConfig(properties) { + this.dataItemLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167469,120 +167778,135 @@ } /** - * PythonPackageSpec executorImageUri. - * @member {string} executorImageUri - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * ImportDataConfig gcsSource. + * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - PythonPackageSpec.prototype.executorImageUri = ""; + ImportDataConfig.prototype.gcsSource = null; /** - * PythonPackageSpec packageUris. - * @member {Array.} packageUris - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * ImportDataConfig dataItemLabels. + * @member {Object.} dataItemLabels + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - PythonPackageSpec.prototype.packageUris = $util.emptyArray; + ImportDataConfig.prototype.dataItemLabels = $util.emptyObject; /** - * PythonPackageSpec pythonModule. - * @member {string} pythonModule - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * ImportDataConfig importSchemaUri. + * @member {string} importSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - PythonPackageSpec.prototype.pythonModule = ""; + ImportDataConfig.prototype.importSchemaUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * PythonPackageSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * ImportDataConfig source. + * @member {"gcsSource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - PythonPackageSpec.prototype.args = $util.emptyArray; + Object.defineProperty(ImportDataConfig.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsSource"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new PythonPackageSpec instance using the specified properties. + * Creates a new ImportDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig instance */ - PythonPackageSpec.create = function create(properties) { - return new PythonPackageSpec(properties); + ImportDataConfig.create = function create(properties) { + return new ImportDataConfig(properties); }; /** - * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.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.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec 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 */ - PythonPackageSpec.encode = function encode(message, writer) { + ImportDataConfig.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.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 PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.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.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec 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 */ - PythonPackageSpec.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer. + * Decodes an ImportDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @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.PythonPackageSpec} PythonPackageSpec + * @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 */ - PythonPackageSpec.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.PythonPackageSpec(); + 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: - message.executorImageUri = reader.string(); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); break; case 2: - if (!(message.packageUris && message.packageUris.length)) - message.packageUris = []; - message.packageUris.push(reader.string()); - break; - case 3: - message.pythonModule = reader.string(); - break; + 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: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.importSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -167593,159 +167917,150 @@ }; /** - * Decodes a PythonPackageSpec 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.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec + * @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 */ - PythonPackageSpec.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 PythonPackageSpec message. + * Verifies an ImportDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @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 */ - PythonPackageSpec.verify = function verify(message) { + ImportDataConfig.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"; + 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.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.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 PythonPackageSpec 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.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig */ - PythonPackageSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec) + ImportDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataConfig) 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]); + 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.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.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 PythonPackageSpec 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.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.PythonPackageSpec} message PythonPackageSpec + * @param {google.cloud.aiplatform.v1beta1.ImportDataConfig} message ImportDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PythonPackageSpec.toObject = function toObject(message, options) { + ImportDataConfig.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 (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"; } - 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]; + 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 PythonPackageSpec to JSON. + * Converts this ImportDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance * @returns {Object.} JSON object */ - PythonPackageSpec.prototype.toJSON = function toJSON() { + ImportDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PythonPackageSpec; + return ImportDataConfig; })(); - v1beta1.Scheduling = (function() { + v1beta1.ExportDataConfig = (function() { /** - * Properties of a Scheduling. + * Properties of an ExportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IScheduling - * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout - * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart + * @interface IExportDataConfig + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination + * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter */ /** - * Constructs a new Scheduling. + * Constructs a new ExportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Scheduling. - * @implements IScheduling + * @classdesc Represents an ExportDataConfig. + * @implements IExportDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set */ - function Scheduling(properties) { + function ExportDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167753,88 +168068,102 @@ } /** - * Scheduling timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * ExportDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @instance */ - Scheduling.prototype.timeout = null; + ExportDataConfig.prototype.gcsDestination = null; /** - * Scheduling restartJobOnWorkerRestart. - * @member {boolean} restartJobOnWorkerRestart - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * ExportDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @instance */ - Scheduling.prototype.restartJobOnWorkerRestart = false; + ExportDataConfig.prototype.annotationsFilter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new Scheduling instance using the specified properties. + * 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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig instance */ - Scheduling.create = function create(properties) { - return new Scheduling(properties); + ExportDataConfig.create = function create(properties) { + return new ExportDataConfig(properties); }; /** - * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling 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 */ - Scheduling.encode = function encode(message, writer) { + ExportDataConfig.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.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 Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling 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 */ - Scheduling.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Scheduling message from the specified reader or buffer. + * Decodes an ExportDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @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.Scheduling} Scheduling + * @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 */ - Scheduling.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.Scheduling(); + 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.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); break; - case 3: - message.restartJobOnWorkerRestart = reader.bool(); + case 2: + message.annotationsFilter = reader.string(); break; default: reader.skipType(tag & 7); @@ -167845,288 +168174,581 @@ }; /** - * Decodes a Scheduling 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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling + * @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 */ - Scheduling.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 Scheduling message. + * Verifies an ExportDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @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 */ - Scheduling.verify = function verify(message) { + ExportDataConfig.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; + 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.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) - if (typeof message.restartJobOnWorkerRestart !== "boolean") - return "restartJobOnWorkerRestart: boolean expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; return null; }; /** - * Creates a Scheduling 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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig */ - Scheduling.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Scheduling) + ExportDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataConfig) 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); + 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.restartJobOnWorkerRestart != null) - message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); return message; }; /** - * Creates a plain object from a Scheduling 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.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.Scheduling} message Scheduling + * @param {google.cloud.aiplatform.v1beta1.ExportDataConfig} message ExportDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Scheduling.toObject = function toObject(message, options) { + ExportDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.timeout = null; - object.restartJobOnWorkerRestart = false; + 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 (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.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; return object; }; /** - * Converts this Scheduling to JSON. + * Converts this ExportDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @instance * @returns {Object.} JSON object */ - Scheduling.prototype.toJSON = function toJSON() { + ExportDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Scheduling; + return ExportDataConfig; })(); - v1beta1.DataItem = (function() { + v1beta1.DatasetService = (function() { /** - * Properties of a DataItem. + * Constructs a new DatasetService service. * @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 + * @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 DataItem. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DataItem. - * @implements IDataItem - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set + * 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. */ - function DataItem(properties) { - 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]]; - } + DatasetService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * DataItem name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.name = ""; + 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" }); /** - * DataItem createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.createTime = null; /** - * DataItem updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.updateTime = null; + 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" }); /** - * DataItem labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.labels = $util.emptyObject; /** - * DataItem payload. - * @member {google.protobuf.IValue|null|undefined} payload - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.payload = null; + 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" }); /** - * DataItem etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * 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 */ - DataItem.prototype.etag = ""; /** - * Creates a new DataItem instance using the specified properties. + * 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#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 + * @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]]; + } + + /** + * CreateDatasetRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @instance + */ + CreateDatasetRequest.prototype.parent = ""; + + /** + * CreateDatasetRequest dataset. + * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @instance + */ + CreateDatasetRequest.prototype.dataset = null; + + /** + * Creates a new CreateDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest instance */ - DataItem.create = function create(properties) { - return new DataItem(properties); + CreateDatasetRequest.create = function create(properties) { + return new CreateDatasetRequest(properties); }; /** - * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.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.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem 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 */ - DataItem.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.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); + 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 DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.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.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem 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 */ - DataItem.encodeDelimited = function encodeDelimited(message, writer) { + CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataItem message from the specified reader or buffer. + * Decodes a CreateDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @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.DataItem} DataItem + * @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 */ - DataItem.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.DataItem(), key, value; + 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: - 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(); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -168137,199 +168759,121 @@ }; /** - * Decodes a DataItem 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.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem + * @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 */ - DataItem.decodeDelimited = function decodeDelimited(reader) { + CreateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataItem message. + * Verifies a CreateDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @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 */ - DataItem.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.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.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Value.verify(message.payload); + 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 "payload." + error; + return "dataset." + error; } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a DataItem 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.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest */ - DataItem.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataItem) + CreateDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest) return object; - 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.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); + 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); } - if (object.etag != null) - message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a DataItem 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.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DataItem} message DataItem + * @param {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} message CreateDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataItem.toObject = function toObject(message, options) { + CreateDatasetRequest.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.payload = null; - object.updateTime = null; - object.etag = ""; - } - 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]]; + object.parent = ""; + object.dataset = null; } - 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; + 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 DataItem to JSON. + * Converts this CreateDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @instance * @returns {Object.} JSON object */ - DataItem.prototype.toJSON = function toJSON() { + CreateDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataItem; + return CreateDatasetRequest; })(); - v1beta1.DataLabelingJob = (function() { + v1beta1.CreateDatasetOperationMetadata = (function() { /** - * Properties of a DataLabelingJob. + * Properties of a CreateDatasetOperationMetadata. * @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 ICreateDatasetOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateDatasetOperationMetadata genericMetadata + */ /** - * Constructs a new DataLabelingJob. + * Constructs a new CreateDatasetOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DataLabelingJob. - * @implements IDataLabelingJob + * @classdesc Represents a CreateDatasetOperationMetadata. + * @implements ICreateDatasetOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set */ - function DataLabelingJob(properties) { - this.datasets = []; - this.annotationLabels = {}; - this.labels = {}; - this.specialistPools = []; + function CreateDatasetOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -168337,244 +168881,273 @@ } /** - * DataLabelingJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.name = ""; - - /** - * DataLabelingJob 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 + * CreateDatasetOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @instance */ - DataLabelingJob.prototype.datasets = $util.emptyArray; + CreateDatasetOperationMetadata.prototype.genericMetadata = null; /** - * DataLabelingJob annotationLabels. - * @member {Object.} annotationLabels - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata instance */ - DataLabelingJob.prototype.annotationLabels = $util.emptyObject; + CreateDatasetOperationMetadata.create = function create(properties) { + return new CreateDatasetOperationMetadata(properties); + }; /** - * DataLabelingJob labelerCount. - * @member {number} labelerCount - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @static + * @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 */ - DataLabelingJob.prototype.labelerCount = 0; + 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; + }; /** - * DataLabelingJob instructionUri. - * @member {string} instructionUri - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * 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.CreateDatasetOperationMetadata + * @static + * @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 */ - DataLabelingJob.prototype.instructionUri = ""; + CreateDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * DataLabelingJob inputsSchemaUri. - * @member {string} inputsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataLabelingJob.prototype.inputsSchemaUri = ""; + 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.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; + } + } + return message; + }; /** - * DataLabelingJob inputs. - * @member {google.protobuf.IValue|null|undefined} inputs - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - DataLabelingJob.prototype.inputs = null; + CreateDatasetOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * DataLabelingJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Verifies a CreateDatasetOperationMetadata message. + * @function verify + * @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 */ - DataLabelingJob.prototype.state = 0; + 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; + }; /** - * DataLabelingJob labelingProgress. - * @member {number} labelingProgress - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata */ - DataLabelingJob.prototype.labelingProgress = 0; + CreateDatasetOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata) + 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); + } + return message; + }; /** - * DataLabelingJob currentSpend. - * @member {google.type.IMoney|null|undefined} currentSpend - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} message CreateDatasetOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - DataLabelingJob.prototype.currentSpend = null; + 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; + }; /** - * DataLabelingJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * Converts this CreateDatasetOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @instance + * @returns {Object.} JSON object */ - DataLabelingJob.prototype.createTime = null; + CreateDatasetOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DataLabelingJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.updateTime = null; + return CreateDatasetOperationMetadata; + })(); - /** - * DataLabelingJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.error = null; + v1beta1.GetDatasetRequest = (function() { /** - * DataLabelingJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Properties of a GetDatasetRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetDatasetRequest + * @property {string|null} [name] GetDatasetRequest name + * @property {google.protobuf.IFieldMask|null} [readMask] GetDatasetRequest readMask */ - DataLabelingJob.prototype.labels = $util.emptyObject; /** - * DataLabelingJob specialistPools. - * @member {Array.} specialistPools - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance + * Constructs a new GetDatasetRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetDatasetRequest. + * @implements IGetDatasetRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set */ - DataLabelingJob.prototype.specialistPools = $util.emptyArray; + function GetDatasetRequest(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 encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * GetDatasetRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @instance */ - DataLabelingJob.prototype.encryptionSpec = null; + GetDatasetRequest.prototype.name = ""; /** - * DataLabelingJob activeLearningConfig. - * @member {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null|undefined} activeLearningConfig - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * GetDatasetRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @instance */ - DataLabelingJob.prototype.activeLearningConfig = null; + GetDatasetRequest.prototype.readMask = null; /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new GetDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob instance + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest instance */ - DataLabelingJob.create = function create(properties) { - return new DataLabelingJob(properties); + GetDatasetRequest.create = function create(properties) { + return new GetDatasetRequest(properties); }; /** - * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.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.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob 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 */ - DataLabelingJob.encode = function encode(message, writer) { + GetDatasetRequest.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.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(); + 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 DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.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.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob 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 */ - DataLabelingJob.encodeDelimited = function encodeDelimited(message, writer) { + GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataLabelingJob message from the specified reader or buffer. + * Decodes a GetDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @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.DataLabelingJob} DataLabelingJob + * @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 */ - DataLabelingJob.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.DataLabelingJob(), key, value; + 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) { @@ -168582,97 +169155,7 @@ message.name = reader.string(); break; 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(); - 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()); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -168683,390 +169166,122 @@ }; /** - * Decodes a DataLabelingJob 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.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob + * @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 */ - DataLabelingJob.decodeDelimited = function decodeDelimited(reader) { + GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataLabelingJob message. + * Verifies a GetDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @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 */ - DataLabelingJob.verify = function verify(message) { + GetDatasetRequest.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.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 "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: - 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 (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "activeLearningConfig." + error; + return "readMask." + error; } return null; }; /** - * Creates a DataLabelingJob 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.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest */ - DataLabelingJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataLabelingJob) + GetDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DataLabelingJob(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); 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; - } - 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); + 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 a DataLabelingJob 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.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} message DataLabelingJob + * @param {google.cloud.aiplatform.v1beta1.GetDatasetRequest} message GetDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataLabelingJob.toObject = function toObject(message, options) { + GetDatasetRequest.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.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; + object.readMask = 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.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); + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this DataLabelingJob to JSON. + * Converts this GetDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @instance * @returns {Object.} JSON object */ - DataLabelingJob.prototype.toJSON = function toJSON() { + GetDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataLabelingJob; + return GetDatasetRequest; })(); - v1beta1.ActiveLearningConfig = (function() { + v1beta1.UpdateDatasetRequest = (function() { /** - * Properties of an ActiveLearningConfig. + * Properties of an UpdateDatasetRequest. * @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 IUpdateDatasetRequest + * @property {google.cloud.aiplatform.v1beta1.IDataset|null} [dataset] UpdateDatasetRequest dataset + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDatasetRequest updateMask */ /** - * Constructs a new ActiveLearningConfig. + * Constructs a new UpdateDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ActiveLearningConfig. - * @implements IActiveLearningConfig + * @classdesc Represents an UpdateDatasetRequest. + * @implements IUpdateDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set */ - function ActiveLearningConfig(properties) { + function UpdateDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169074,128 +169289,88 @@ } /** - * ActiveLearningConfig maxDataItemCount. - * @member {number|Long|null|undefined} maxDataItemCount - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig - * @instance - */ - ActiveLearningConfig.prototype.maxDataItemCount = null; - - /** - * 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 + * UpdateDatasetRequest dataset. + * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance */ - ActiveLearningConfig.prototype.trainingConfig = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateDatasetRequest.prototype.dataset = null; /** - * ActiveLearningConfig humanLabelingBudget. - * @member {"maxDataItemCount"|"maxDataItemPercentage"|undefined} humanLabelingBudget - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * UpdateDatasetRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance */ - Object.defineProperty(ActiveLearningConfig.prototype, "humanLabelingBudget", { - get: $util.oneOfGetter($oneOfFields = ["maxDataItemCount", "maxDataItemPercentage"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateDatasetRequest.prototype.updateMask = null; /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest instance */ - ActiveLearningConfig.create = function create(properties) { - return new ActiveLearningConfig(properties); + UpdateDatasetRequest.create = function create(properties) { + return new UpdateDatasetRequest(properties); }; /** - * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.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.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig 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 */ - ActiveLearningConfig.encode = function encode(message, writer) { + UpdateDatasetRequest.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.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 ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.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.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig 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 */ - ActiveLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @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.ActiveLearningConfig} ActiveLearningConfig + * @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 */ - ActiveLearningConfig.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.ActiveLearningConfig(); + 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.maxDataItemCount = reader.int64(); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); 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()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -169206,165 +169381,131 @@ }; /** - * Decodes an ActiveLearningConfig 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.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig + * @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 */ - ActiveLearningConfig.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 ActiveLearningConfig message. + * Verifies an UpdateDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @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 */ - ActiveLearningConfig.verify = function verify(message) { + UpdateDatasetRequest.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.sampleConfig != null && message.hasOwnProperty("sampleConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.SampleConfig.verify(message.sampleConfig); + if (message.dataset != null && message.hasOwnProperty("dataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.dataset); if (error) - return "sampleConfig." + error; + return "dataset." + error; } - if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.verify(message.trainingConfig); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "trainingConfig." + error; + return "updateMask." + error; } return null; }; /** - * Creates an ActiveLearningConfig 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.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest */ - ActiveLearningConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig) + UpdateDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest) 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.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.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.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 ActiveLearningConfig 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.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} message ActiveLearningConfig + * @param {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} message UpdateDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActiveLearningConfig.toObject = function toObject(message, options) { + UpdateDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; 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"; + object.dataset = null; + object.updateMask = null; } - 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); + 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 ActiveLearningConfig to JSON. + * Converts this UpdateDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance * @returns {Object.} JSON object */ - ActiveLearningConfig.prototype.toJSON = function toJSON() { + UpdateDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ActiveLearningConfig; + return UpdateDatasetRequest; })(); - v1beta1.SampleConfig = (function() { + v1beta1.ListDatasetsRequest = (function() { /** - * Properties of a SampleConfig. + * Properties of a ListDatasetsRequest. * @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 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 SampleConfig. + * Constructs a new ListDatasetsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SampleConfig. - * @implements ISampleConfig + * @classdesc Represents a ListDatasetsRequest. + * @implements IListDatasetsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set */ - function SampleConfig(properties) { + function ListDatasetsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169372,126 +169513,140 @@ } /** - * SampleConfig initialBatchSamplePercentage. - * @member {number|null|undefined} initialBatchSamplePercentage - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * ListDatasetsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - SampleConfig.prototype.initialBatchSamplePercentage = null; + ListDatasetsRequest.prototype.parent = ""; /** - * SampleConfig followingBatchSamplePercentage. - * @member {number|null|undefined} followingBatchSamplePercentage - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * ListDatasetsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - SampleConfig.prototype.followingBatchSamplePercentage = null; + ListDatasetsRequest.prototype.filter = ""; /** - * SampleConfig sampleStrategy. - * @member {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy} sampleStrategy - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * ListDatasetsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - SampleConfig.prototype.sampleStrategy = 0; + ListDatasetsRequest.prototype.pageSize = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListDatasetsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.pageToken = ""; /** - * SampleConfig initialBatchSampleSize. - * @member {"initialBatchSamplePercentage"|undefined} initialBatchSampleSize - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * ListDatasetsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - Object.defineProperty(SampleConfig.prototype, "initialBatchSampleSize", { - get: $util.oneOfGetter($oneOfFields = ["initialBatchSamplePercentage"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListDatasetsRequest.prototype.readMask = null; /** - * SampleConfig followingBatchSampleSize. - * @member {"followingBatchSamplePercentage"|undefined} followingBatchSampleSize - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * ListDatasetsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - Object.defineProperty(SampleConfig.prototype, "followingBatchSampleSize", { - get: $util.oneOfGetter($oneOfFields = ["followingBatchSamplePercentage"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListDatasetsRequest.prototype.orderBy = ""; /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new ListDatasetsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest instance */ - SampleConfig.create = function create(properties) { - return new SampleConfig(properties); + ListDatasetsRequest.create = function create(properties) { + return new ListDatasetsRequest(properties); }; /** - * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.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.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig 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 */ - SampleConfig.encode = function encode(message, writer) { + ListDatasetsRequest.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.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 SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.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.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig 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 */ - SampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SampleConfig message from the specified reader or buffer. + * Decodes a ListDatasetsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @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.SampleConfig} SampleConfig + * @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 */ - SampleConfig.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.SampleConfig(); + 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: - message.initialBatchSamplePercentage = reader.int32(); + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); break; case 3: - message.followingBatchSamplePercentage = reader.int32(); + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); break; case 5: - message.sampleStrategy = reader.int32(); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -169502,159 +169657,155 @@ }; /** - * Decodes a SampleConfig 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.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig + * @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 */ - SampleConfig.decodeDelimited = function decodeDelimited(reader) { + ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SampleConfig message. + * Verifies a ListDatasetsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @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 */ - SampleConfig.verify = function verify(message) { + ListDatasetsRequest.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.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { - properties.followingBatchSampleSize = 1; - if (!$util.isInteger(message.followingBatchSamplePercentage)) - return "followingBatchSamplePercentage: integer 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.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) - switch (message.sampleStrategy) { - default: - return "sampleStrategy: enum value expected"; - case 0: - case 1: - break; - } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a SampleConfig 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.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest */ - SampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SampleConfig) + ListDatasetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest) 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.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 a SampleConfig 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.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SampleConfig} message SampleConfig + * @param {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} message ListDatasetsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SampleConfig.toObject = function toObject(message, options) { + ListDatasetsRequest.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.oneofs) - object.initialBatchSampleSize = "initialBatchSamplePercentage"; - } - if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { - object.followingBatchSamplePercentage = message.followingBatchSamplePercentage; - if (options.oneofs) - object.followingBatchSampleSize = "followingBatchSamplePercentage"; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } - if (message.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) - object.sampleStrategy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy[message.sampleStrategy] : message.sampleStrategy; + 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 SampleConfig to JSON. + * Converts this ListDatasetsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance * @returns {Object.} JSON object */ - SampleConfig.prototype.toJSON = function toJSON() { + ListDatasetsRequest.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 ListDatasetsRequest; })(); - v1beta1.TrainingConfig = (function() { + v1beta1.ListDatasetsResponse = (function() { /** - * Properties of a TrainingConfig. + * Properties of a ListDatasetsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITrainingConfig - * @property {number|Long|null} [timeoutTrainingMilliHours] TrainingConfig timeoutTrainingMilliHours + * @interface IListDatasetsResponse + * @property {Array.|null} [datasets] ListDatasetsResponse datasets + * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken */ /** - * Constructs a new TrainingConfig. + * Constructs a new ListDatasetsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TrainingConfig. - * @implements ITrainingConfig + * @classdesc Represents a ListDatasetsResponse. + * @implements IListDatasetsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set */ - function TrainingConfig(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) @@ -169662,75 +169813,91 @@ } /** - * TrainingConfig timeoutTrainingMilliHours. - * @member {number|Long} timeoutTrainingMilliHours - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * ListDatasetsResponse datasets. + * @member {Array.} datasets + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @instance */ - TrainingConfig.prototype.timeoutTrainingMilliHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListDatasetsResponse.prototype.datasets = $util.emptyArray; /** - * Creates a new TrainingConfig instance using the specified properties. + * ListDatasetsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @instance + */ + ListDatasetsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDatasetsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse instance */ - TrainingConfig.create = function create(properties) { - return new TrainingConfig(properties); + ListDatasetsResponse.create = function create(properties) { + return new ListDatasetsResponse(properties); }; /** - * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.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.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig 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 */ - TrainingConfig.encode = function encode(message, writer) { + ListDatasetsResponse.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.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 TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.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.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig 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 */ - TrainingConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingConfig message from the specified reader or buffer. + * Decodes a ListDatasetsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @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.TrainingConfig} TrainingConfig + * @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 */ - TrainingConfig.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.TrainingConfig(); + 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.timeoutTrainingMilliHours = reader.int64(); + 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.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -169741,129 +169908,133 @@ }; /** - * Decodes a TrainingConfig 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.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig + * @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 */ - TrainingConfig.decodeDelimited = function decodeDelimited(reader) { + ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingConfig message. + * Verifies a ListDatasetsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @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 */ - TrainingConfig.verify = function verify(message) { + ListDatasetsResponse.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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TrainingConfig 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.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse */ - TrainingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingConfig) + ListDatasetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse) 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.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.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TrainingConfig 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.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.TrainingConfig} message TrainingConfig + * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} message ListDatasetsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingConfig.toObject = function toObject(message, options) { + ListDatasetsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datasets = []; 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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TrainingConfig to JSON. + * Converts this ListDatasetsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @instance * @returns {Object.} JSON object */ - TrainingConfig.prototype.toJSON = function toJSON() { + ListDatasetsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TrainingConfig; + return ListDatasetsResponse; })(); - v1beta1.SpecialistPool = (function() { + v1beta1.DeleteDatasetRequest = (function() { /** - * Properties of a SpecialistPool. + * Properties of a DeleteDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISpecialistPool - * @property {string|null} [name] SpecialistPool name - * @property {string|null} [displayName] SpecialistPool displayName - * @property {number|null} [specialistManagersCount] SpecialistPool specialistManagersCount - * @property {Array.|null} [specialistManagerEmails] SpecialistPool specialistManagerEmails - * @property {Array.|null} [pendingDataLabelingJobs] SpecialistPool pendingDataLabelingJobs - * @property {Array.|null} [specialistWorkerEmails] SpecialistPool specialistWorkerEmails + * @interface IDeleteDatasetRequest + * @property {string|null} [name] DeleteDatasetRequest name */ /** - * Constructs a new SpecialistPool. + * Constructs a new DeleteDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SpecialistPool. - * @implements ISpecialistPool + * @classdesc Represents a DeleteDatasetRequest. + * @implements IDeleteDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set */ - function SpecialistPool(properties) { - this.specialistManagerEmails = []; - this.pendingDataLabelingJobs = []; - this.specialistWorkerEmails = []; + function DeleteDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169871,123 +170042,270 @@ } /** - * SpecialistPool name. + * DeleteDatasetRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @instance */ - SpecialistPool.prototype.name = ""; + DeleteDatasetRequest.prototype.name = ""; /** - * SpecialistPool displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool - * @instance + * Creates a new DeleteDatasetRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest instance */ - SpecialistPool.prototype.displayName = ""; + DeleteDatasetRequest.create = function create(properties) { + return new DeleteDatasetRequest(properties); + }; /** - * SpecialistPool specialistManagersCount. - * @member {number} specialistManagersCount - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool - * @instance + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @static + * @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 */ - SpecialistPool.prototype.specialistManagersCount = 0; + DeleteDatasetRequest.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; + }; /** - * SpecialistPool specialistManagerEmails. - * @member {Array.} specialistManagerEmails - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * 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.DeleteDatasetRequest + * @static + * @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 + */ + DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteDatasetRequest} DeleteDatasetRequest + * @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) { + 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(); + 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 DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDatasetRequest message. + * @function verify + * @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 + */ + DeleteDatasetRequest.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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + */ + DeleteDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest) + return object; + 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 DeleteDatasetRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} message DeleteDatasetRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDatasetRequest.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 DeleteDatasetRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @instance + * @returns {Object.} JSON object */ - SpecialistPool.prototype.specialistManagerEmails = $util.emptyArray; + DeleteDatasetRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteDatasetRequest; + })(); + + v1beta1.ImportDataRequest = (function() { /** - * SpecialistPool pendingDataLabelingJobs. - * @member {Array.} pendingDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * Properties of an ImportDataRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IImportDataRequest + * @property {string|null} [name] ImportDataRequest name + * @property {Array.|null} [importConfigs] ImportDataRequest importConfigs + */ + + /** + * Constructs a new ImportDataRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ImportDataRequest. + * @implements IImportDataRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set + */ + function ImportDataRequest(properties) { + this.importConfigs = []; + 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]]; + } + + /** + * ImportDataRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance */ - SpecialistPool.prototype.pendingDataLabelingJobs = $util.emptyArray; + ImportDataRequest.prototype.name = ""; /** - * SpecialistPool specialistWorkerEmails. - * @member {Array.} specialistWorkerEmails - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * ImportDataRequest importConfigs. + * @member {Array.} importConfigs + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance */ - SpecialistPool.prototype.specialistWorkerEmails = $util.emptyArray; + ImportDataRequest.prototype.importConfigs = $util.emptyArray; /** - * Creates a new SpecialistPool instance using the specified properties. + * Creates a new ImportDataRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest instance */ - SpecialistPool.create = function create(properties) { - return new SpecialistPool(properties); + ImportDataRequest.create = function create(properties) { + return new ImportDataRequest(properties); }; /** - * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.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.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool} message SpecialistPool 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 */ - SpecialistPool.encode = function encode(message, writer) { + ImportDataRequest.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.specialistManagersCount != null && Object.hasOwnProperty.call(message, "specialistManagersCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.specialistManagersCount); - if (message.specialistManagerEmails != null && message.specialistManagerEmails.length) - for (var i = 0; i < message.specialistManagerEmails.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.specialistManagerEmails[i]); - if (message.pendingDataLabelingJobs != null && message.pendingDataLabelingJobs.length) - for (var i = 0; i < message.pendingDataLabelingJobs.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pendingDataLabelingJobs[i]); - if (message.specialistWorkerEmails != null && message.specialistWorkerEmails.length) - for (var i = 0; i < message.specialistWorkerEmails.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.specialistWorkerEmails[i]); + 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 SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.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.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool} message SpecialistPool 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 */ - SpecialistPool.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpecialistPool message from the specified reader or buffer. + * Decodes an ImportDataRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @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.SpecialistPool} SpecialistPool + * @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 */ - SpecialistPool.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.SpecialistPool(); + 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) { @@ -169995,25 +170313,9 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.specialistManagersCount = reader.int32(); - break; - case 4: - if (!(message.specialistManagerEmails && message.specialistManagerEmails.length)) - message.specialistManagerEmails = []; - message.specialistManagerEmails.push(reader.string()); - break; - case 5: - if (!(message.pendingDataLabelingJobs && message.pendingDataLabelingJobs.length)) - message.pendingDataLabelingJobs = []; - message.pendingDataLabelingJobs.push(reader.string()); - break; - case 7: - if (!(message.specialistWorkerEmails && message.specialistWorkerEmails.length)) - message.specialistWorkerEmails = []; - message.specialistWorkerEmails.push(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); @@ -170024,642 +170326,196 @@ }; /** - * Decodes a SpecialistPool 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.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool + * @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 */ - SpecialistPool.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 SpecialistPool message. + * Verifies an ImportDataRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @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 */ - SpecialistPool.verify = function verify(message) { + ImportDataRequest.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.specialistManagersCount != null && message.hasOwnProperty("specialistManagersCount")) - if (!$util.isInteger(message.specialistManagersCount)) - return "specialistManagersCount: integer expected"; - if (message.specialistManagerEmails != null && message.hasOwnProperty("specialistManagerEmails")) { - if (!Array.isArray(message.specialistManagerEmails)) - return "specialistManagerEmails: array expected"; - for (var i = 0; i < message.specialistManagerEmails.length; ++i) - if (!$util.isString(message.specialistManagerEmails[i])) - return "specialistManagerEmails: string[] expected"; - } - if (message.pendingDataLabelingJobs != null && message.hasOwnProperty("pendingDataLabelingJobs")) { - if (!Array.isArray(message.pendingDataLabelingJobs)) - return "pendingDataLabelingJobs: array expected"; - for (var i = 0; i < message.pendingDataLabelingJobs.length; ++i) - if (!$util.isString(message.pendingDataLabelingJobs[i])) - return "pendingDataLabelingJobs: string[] expected"; - } - if (message.specialistWorkerEmails != null && message.hasOwnProperty("specialistWorkerEmails")) { - if (!Array.isArray(message.specialistWorkerEmails)) - return "specialistWorkerEmails: array expected"; - for (var i = 0; i < message.specialistWorkerEmails.length; ++i) - if (!$util.isString(message.specialistWorkerEmails[i])) - return "specialistWorkerEmails: 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; + } } return null; }; /** - * Creates a SpecialistPool 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.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest */ - SpecialistPool.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SpecialistPool) + ImportDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SpecialistPool(); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.specialistManagersCount != null) - message.specialistManagersCount = object.specialistManagersCount | 0; - if (object.specialistManagerEmails) { - if (!Array.isArray(object.specialistManagerEmails)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.specialistManagerEmails: array expected"); - message.specialistManagerEmails = []; - for (var i = 0; i < object.specialistManagerEmails.length; ++i) - message.specialistManagerEmails[i] = String(object.specialistManagerEmails[i]); - } - if (object.pendingDataLabelingJobs) { - if (!Array.isArray(object.pendingDataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.pendingDataLabelingJobs: array expected"); - message.pendingDataLabelingJobs = []; - for (var i = 0; i < object.pendingDataLabelingJobs.length; ++i) - message.pendingDataLabelingJobs[i] = String(object.pendingDataLabelingJobs[i]); - } - if (object.specialistWorkerEmails) { - if (!Array.isArray(object.specialistWorkerEmails)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.specialistWorkerEmails: array expected"); - message.specialistWorkerEmails = []; - for (var i = 0; i < object.specialistWorkerEmails.length; ++i) - message.specialistWorkerEmails[i] = String(object.specialistWorkerEmails[i]); + 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]); + } } return message; }; /** - * Creates a plain object from a SpecialistPool 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.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SpecialistPool} message SpecialistPool + * @param {google.cloud.aiplatform.v1beta1.ImportDataRequest} message ImportDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpecialistPool.toObject = function toObject(message, options) { + ImportDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.specialistManagerEmails = []; - object.pendingDataLabelingJobs = []; - object.specialistWorkerEmails = []; - } - if (options.defaults) { + if (options.arrays || options.defaults) + object.importConfigs = []; + if (options.defaults) object.name = ""; - object.displayName = ""; - object.specialistManagersCount = 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.specialistManagersCount != null && message.hasOwnProperty("specialistManagersCount")) - object.specialistManagersCount = message.specialistManagersCount; - if (message.specialistManagerEmails && message.specialistManagerEmails.length) { - object.specialistManagerEmails = []; - for (var j = 0; j < message.specialistManagerEmails.length; ++j) - object.specialistManagerEmails[j] = message.specialistManagerEmails[j]; - } - if (message.pendingDataLabelingJobs && message.pendingDataLabelingJobs.length) { - object.pendingDataLabelingJobs = []; - for (var j = 0; j < message.pendingDataLabelingJobs.length; ++j) - object.pendingDataLabelingJobs[j] = message.pendingDataLabelingJobs[j]; - } - if (message.specialistWorkerEmails && message.specialistWorkerEmails.length) { - object.specialistWorkerEmails = []; - for (var j = 0; j < message.specialistWorkerEmails.length; ++j) - object.specialistWorkerEmails[j] = message.specialistWorkerEmails[j]; + 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); } return object; }; /** - * Converts this SpecialistPool to JSON. + * Converts this ImportDataRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance * @returns {Object.} JSON object */ - SpecialistPool.prototype.toJSON = function toJSON() { + ImportDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SpecialistPool; + return ImportDataRequest; })(); - v1beta1.DatasetService = (function() { + v1beta1.ImportDataResponse = (function() { /** - * Constructs a new DatasetService service. + * Properties of an ImportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DatasetService - * @extends $protobuf.rpc.Service + * @interface IImportDataResponse + */ + + /** + * Constructs a new ImportDataResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ImportDataResponse. + * @implements IImportDataResponse * @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 + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set */ - function DatasetService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function ImportDataResponse(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]]; } - (DatasetService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DatasetService; - /** - * Creates new DatasetService service using the specified rpc implementation. + * Creates a new ImportDataResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @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. + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse instance */ - DatasetService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + ImportDataResponse.create = function create(properties) { + return new ImportDataResponse(properties); }; /** - * 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 + * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @static + * @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 */ + ImportDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * 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 + * 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.ImportDataResponse + * @static + * @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 */ - 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" }); + ImportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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#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 - * @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]]; - } - - /** - * CreateDatasetRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest - * @instance - */ - CreateDatasetRequest.prototype.parent = ""; - - /** - * CreateDatasetRequest dataset. - * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest - * @instance - */ - CreateDatasetRequest.prototype.dataset = null; - - /** - * Creates a new CreateDatasetRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest instance - */ - CreateDatasetRequest.create = function create(properties) { - return new CreateDatasetRequest(properties); - }; - - /** - * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest - * @static - * @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 - */ - CreateDatasetRequest.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(); - return writer; - }; - - /** - * 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.CreateDatasetRequest - * @static - * @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 - */ - CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * Decodes an ImportDataResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @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.CreateDatasetRequest} CreateDatasetRequest + * @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 */ - CreateDatasetRequest.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.CreateDatasetRequest(); + 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.parent = reader.string(); - break; - case 2: - message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -170669,121 +170525,94 @@ }; /** - * Decodes a CreateDatasetRequest 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.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest + * @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 */ - CreateDatasetRequest.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 CreateDatasetRequest message. + * Verifies an ImportDataResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @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 */ - CreateDatasetRequest.verify = function verify(message) { + ImportDataResponse.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 (error) - return "dataset." + error; - } return null; }; /** - * Creates a CreateDatasetRequest 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.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse */ - CreateDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest) + ImportDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataResponse) 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); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); }; /** - * Creates a plain object from a CreateDatasetRequest 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.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} message CreateDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.ImportDataResponse} message ImportDataResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDatasetRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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; + ImportDataResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this ImportDataResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @instance * @returns {Object.} JSON object */ - CreateDatasetRequest.prototype.toJSON = function toJSON() { + ImportDataResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDatasetRequest; + return ImportDataResponse; })(); - v1beta1.CreateDatasetOperationMetadata = (function() { + v1beta1.ImportDataOperationMetadata = (function() { /** - * Properties of a CreateDatasetOperationMetadata. + * Properties of an ImportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDatasetOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateDatasetOperationMetadata genericMetadata + * @interface IImportDataOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportDataOperationMetadata genericMetadata */ /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ImportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDatasetOperationMetadata. - * @implements ICreateDatasetOperationMetadata + * @classdesc Represents an ImportDataOperationMetadata. + * @implements IImportDataOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set */ - function CreateDatasetOperationMetadata(properties) { + function ImportDataOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170791,35 +170620,35 @@ } /** - * CreateDatasetOperationMetadata genericMetadata. + * ImportDataOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @instance */ - CreateDatasetOperationMetadata.prototype.genericMetadata = null; + ImportDataOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata instance */ - CreateDatasetOperationMetadata.create = function create(properties) { - return new CreateDatasetOperationMetadata(properties); + ImportDataOperationMetadata.create = function create(properties) { + return new ImportDataOperationMetadata(properties); }; /** - * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.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.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata 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 */ - CreateDatasetOperationMetadata.encode = function encode(message, writer) { + ImportDataOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -170828,33 +170657,33 @@ }; /** - * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.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.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata 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 */ - CreateDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @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.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @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 */ - CreateDatasetOperationMetadata.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.CreateDatasetOperationMetadata(); + 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) { @@ -170870,30 +170699,30 @@ }; /** - * Decodes a CreateDatasetOperationMetadata 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.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @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 */ - CreateDatasetOperationMetadata.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 CreateDatasetOperationMetadata message. + * Verifies an ImportDataOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @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 */ - CreateDatasetOperationMetadata.verify = function verify(message) { + ImportDataOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -170905,35 +170734,35 @@ }; /** - * Creates a CreateDatasetOperationMetadata 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.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata */ - CreateDatasetOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata) + ImportDataOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a CreateDatasetOperationMetadata 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.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} message CreateDatasetOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} message ImportDataOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDatasetOperationMetadata.toObject = function toObject(message, options) { + ImportDataOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -170945,38 +170774,38 @@ }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateDatasetOperationMetadata.prototype.toJSON = function toJSON() { + ImportDataOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDatasetOperationMetadata; + return ImportDataOperationMetadata; })(); - v1beta1.GetDatasetRequest = (function() { + v1beta1.ExportDataRequest = (function() { /** - * Properties of a GetDatasetRequest. + * Properties of an ExportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDatasetRequest - * @property {string|null} [name] GetDatasetRequest name - * @property {google.protobuf.IFieldMask|null} [readMask] GetDatasetRequest readMask + * @interface IExportDataRequest + * @property {string|null} [name] ExportDataRequest name + * @property {google.cloud.aiplatform.v1beta1.IExportDataConfig|null} [exportConfig] ExportDataRequest exportConfig */ /** - * Constructs a new GetDatasetRequest. + * Constructs a new ExportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDatasetRequest. - * @implements IGetDatasetRequest + * @classdesc Represents an ExportDataRequest. + * @implements IExportDataRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set */ - function GetDatasetRequest(properties) { + function ExportDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170984,80 +170813,80 @@ } /** - * GetDatasetRequest name. + * ExportDataRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance */ - GetDatasetRequest.prototype.name = ""; + ExportDataRequest.prototype.name = ""; /** - * GetDatasetRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * ExportDataRequest exportConfig. + * @member {google.cloud.aiplatform.v1beta1.IExportDataConfig|null|undefined} exportConfig + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance */ - GetDatasetRequest.prototype.readMask = null; + ExportDataRequest.prototype.exportConfig = null; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest instance */ - GetDatasetRequest.create = function create(properties) { - return new GetDatasetRequest(properties); + ExportDataRequest.create = function create(properties) { + return new ExportDataRequest(properties); }; /** - * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.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.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest 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 */ - GetDatasetRequest.encode = function encode(message, writer) { + ExportDataRequest.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.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 GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.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.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest 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 */ - GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer. + * Decodes an ExportDataRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @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.GetDatasetRequest} GetDatasetRequest + * @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 */ - GetDatasetRequest.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.GetDatasetRequest(); + 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) { @@ -171065,7 +170894,7 @@ message.name = reader.string(); break; case 2: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -171076,122 +170905,122 @@ }; /** - * Decodes a GetDatasetRequest 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.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest + * @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 */ - GetDatasetRequest.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 GetDatasetRequest message. + * Verifies an ExportDataRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @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 */ - GetDatasetRequest.verify = function verify(message) { + ExportDataRequest.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 (message.exportConfig != null && message.hasOwnProperty("exportConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.verify(message.exportConfig); if (error) - return "readMask." + error; + return "exportConfig." + error; } return null; }; /** - * Creates a GetDatasetRequest 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.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest */ - GetDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest) + ExportDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataRequest(); 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); + 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); } return message; }; /** - * Creates a plain object from a GetDatasetRequest 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.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetDatasetRequest} message GetDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.ExportDataRequest} message ExportDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDatasetRequest.toObject = function toObject(message, options) { + ExportDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.readMask = null; + object.exportConfig = 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); + if (message.exportConfig != null && message.hasOwnProperty("exportConfig")) + object.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.toObject(message.exportConfig, options); return object; }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this ExportDataRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance * @returns {Object.} JSON object */ - GetDatasetRequest.prototype.toJSON = function toJSON() { + ExportDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDatasetRequest; + return ExportDataRequest; })(); - v1beta1.UpdateDatasetRequest = (function() { + v1beta1.ExportDataResponse = (function() { /** - * Properties of an UpdateDatasetRequest. + * Properties of an ExportDataResponse. * @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 IExportDataResponse + * @property {Array.|null} [exportedFiles] ExportDataResponse exportedFiles */ /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new ExportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateDatasetRequest. - * @implements IUpdateDatasetRequest + * @classdesc Represents an ExportDataResponse. + * @implements IExportDataResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set */ - function UpdateDatasetRequest(properties) { + function ExportDataResponse(properties) { + this.exportedFiles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171199,88 +171028,78 @@ } /** - * 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 + * ExportDataResponse exportedFiles. + * @member {Array.} exportedFiles + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @instance */ - UpdateDatasetRequest.prototype.updateMask = null; + ExportDataResponse.prototype.exportedFiles = $util.emptyArray; /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse instance */ - UpdateDatasetRequest.create = function create(properties) { - return new UpdateDatasetRequest(properties); + ExportDataResponse.create = function create(properties) { + return new ExportDataResponse(properties); }; /** - * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.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.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest 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 */ - UpdateDatasetRequest.encode = function encode(message, writer) { + ExportDataResponse.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.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 UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.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.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest 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 */ - UpdateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer. + * Decodes an ExportDataResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @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.UpdateDatasetRequest} UpdateDatasetRequest + * @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 */ - UpdateDatasetRequest.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.UpdateDatasetRequest(); + 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: - 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()); + if (!(message.exportedFiles && message.exportedFiles.length)) + message.exportedFiles = []; + message.exportedFiles.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -171291,131 +171110,120 @@ }; /** - * Decodes an UpdateDatasetRequest 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.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest + * @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 */ - UpdateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + ExportDataResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDatasetRequest message. + * Verifies an ExportDataResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @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 */ - UpdateDatasetRequest.verify = function verify(message) { + ExportDataResponse.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.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 an UpdateDatasetRequest 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.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse */ - UpdateDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest) + ExportDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataResponse) 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.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 an UpdateDatasetRequest 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.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} message UpdateDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.ExportDataResponse} message ExportDataResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDatasetRequest.toObject = function toObject(message, options) { + ExportDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.dataset = null; - object.updateMask = null; + 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 (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 UpdateDatasetRequest to JSON. + * Converts this ExportDataResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @instance * @returns {Object.} JSON object */ - UpdateDatasetRequest.prototype.toJSON = function toJSON() { + ExportDataResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDatasetRequest; + return ExportDataResponse; })(); - v1beta1.ListDatasetsRequest = (function() { + v1beta1.ExportDataOperationMetadata = (function() { /** - * Properties of a ListDatasetsRequest. + * Properties of an ExportDataOperationMetadata. * @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 IExportDataOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportDataOperationMetadata genericMetadata + * @property {string|null} [gcsOutputDirectory] ExportDataOperationMetadata gcsOutputDirectory */ /** - * Constructs a new ListDatasetsRequest. + * Constructs a new ExportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDatasetsRequest. - * @implements IListDatasetsRequest + * @classdesc Represents an ExportDataOperationMetadata. + * @implements IExportDataOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set */ - function ListDatasetsRequest(properties) { + function ExportDataOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171423,130 +171231,349 @@ } /** - * ListDatasetsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest - * @instance - */ - ListDatasetsRequest.prototype.parent = ""; - - /** - * 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 + * ExportDataOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @instance */ - ListDatasetsRequest.prototype.readMask = null; + ExportDataOperationMetadata.prototype.genericMetadata = null; /** - * ListDatasetsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * ExportDataOperationMetadata gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @instance */ - ListDatasetsRequest.prototype.orderBy = ""; + ExportDataOperationMetadata.prototype.gcsOutputDirectory = ""; /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata instance */ - ListDatasetsRequest.create = function create(properties) { - return new ListDatasetsRequest(properties); + ExportDataOperationMetadata.create = function create(properties) { + return new ExportDataOperationMetadata(properties); }; /** - * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.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.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest 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 */ - ListDatasetsRequest.encode = function encode(message, writer) { + ExportDataOperationMetadata.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(); + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); return writer; }; /** - * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.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.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest 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 */ - ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @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.ListDatasetsRequest} ListDatasetsRequest + * @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 */ - ListDatasetsRequest.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.ListDatasetsRequest(); + 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.parent = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; case 2: - message.filter = reader.string(); + message.gcsOutputDirectory = reader.string(); break; - case 3: + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ExportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportDataOperationMetadata message. + * @function verify + * @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 + */ + ExportDataOperationMetadata.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.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + return null; + }; + + /** + * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata + */ + ExportDataOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata) + 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); + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + return message; + }; + + /** + * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} message ExportDataOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportDataOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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 ExportDataOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + ExportDataOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExportDataOperationMetadata; + })(); + + v1beta1.ListDataItemsRequest = (function() { + + /** + * Properties of a ListDataItemsRequest. + * @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 + */ + + /** + * Constructs a new ListDataItemsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListDataItemsRequest. + * @implements IListDataItemsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set + */ + function ListDataItemsRequest(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]]; + } + + /** + * 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 + * @instance + */ + ListDataItemsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataItemsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest instance + */ + ListDataItemsRequest.create = function create(properties) { + return new ListDataItemsRequest(properties); + }; + + /** + * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @static + * @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 + */ + ListDataItemsRequest.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 ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @static + * @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 + */ + ListDataItemsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * @function decode + * @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.ListDataItemsRequest} ListDataItemsRequest + * @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) { + 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(); + 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: @@ -171567,30 +171594,30 @@ }; /** - * Decodes a ListDatasetsRequest 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.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest + * @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 */ - ListDatasetsRequest.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 ListDatasetsRequest message. + * Verifies a ListDataItemsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @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 */ - ListDatasetsRequest.verify = function verify(message) { + ListDataItemsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -171617,17 +171644,17 @@ }; /** - * Creates a ListDatasetsRequest 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.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest */ - ListDatasetsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest) + ListDataItemsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -171638,7 +171665,7 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } if (object.orderBy != null) @@ -171647,15 +171674,15 @@ }; /** - * Creates a plain object from a ListDatasetsRequest 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.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} message ListDatasetsRequest + * @param {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} message ListDataItemsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDatasetsRequest.toObject = function toObject(message, options) { + ListDataItemsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -171683,39 +171710,39 @@ }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this ListDataItemsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @instance * @returns {Object.} JSON object */ - ListDatasetsRequest.prototype.toJSON = function toJSON() { + ListDataItemsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDatasetsRequest; + return ListDataItemsRequest; })(); - v1beta1.ListDatasetsResponse = (function() { + v1beta1.ListDataItemsResponse = (function() { /** - * Properties of a ListDatasetsResponse. + * Properties of a ListDataItemsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDatasetsResponse - * @property {Array.|null} [datasets] ListDatasetsResponse datasets - * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken + * @interface IListDataItemsResponse + * @property {Array.|null} [dataItems] ListDataItemsResponse dataItems + * @property {string|null} [nextPageToken] ListDataItemsResponse nextPageToken */ /** - * Constructs a new ListDatasetsResponse. + * Constructs a new ListDataItemsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDatasetsResponse. - * @implements IListDatasetsResponse + * @classdesc Represents a ListDataItemsResponse. + * @implements IListDataItemsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set */ - function ListDatasetsResponse(properties) { - this.datasets = []; + function ListDataItemsResponse(properties) { + this.dataItems = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171723,88 +171750,88 @@ } /** - * ListDatasetsResponse datasets. - * @member {Array.} datasets - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * ListDataItemsResponse dataItems. + * @member {Array.} dataItems + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance */ - ListDatasetsResponse.prototype.datasets = $util.emptyArray; + ListDataItemsResponse.prototype.dataItems = $util.emptyArray; /** - * ListDatasetsResponse nextPageToken. + * ListDataItemsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance */ - ListDatasetsResponse.prototype.nextPageToken = ""; + ListDataItemsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse instance */ - ListDatasetsResponse.create = function create(properties) { - return new ListDatasetsResponse(properties); + ListDataItemsResponse.create = function create(properties) { + return new ListDataItemsResponse(properties); }; /** - * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.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.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse 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 */ - ListDatasetsResponse.encode = function encode(message, writer) { + ListDataItemsResponse.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.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 ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.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.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse 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 */ - ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDataItemsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * Decodes a ListDataItemsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @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.ListDatasetsResponse} ListDatasetsResponse + * @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 */ - ListDatasetsResponse.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.ListDatasetsResponse(); + 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: - if (!(message.datasets && message.datasets.length)) - message.datasets = []; - message.datasets.push($root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32())); + 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.nextPageToken = reader.string(); @@ -171818,39 +171845,39 @@ }; /** - * Decodes a ListDatasetsResponse 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.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse + * @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 */ - ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDataItemsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDatasetsResponse message. + * Verifies a ListDataItemsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @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 */ - ListDatasetsResponse.verify = function verify(message) { + ListDataItemsResponse.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]); + 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 "datasets." + error; + return "dataItems." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -171860,25 +171887,25 @@ }; /** - * Creates a ListDatasetsResponse 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.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse */ - ListDatasetsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse) + ListDataItemsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse) 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.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.nextPageToken != null) @@ -171887,26 +171914,26 @@ }; /** - * Creates a plain object from a ListDatasetsResponse 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.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} message ListDatasetsResponse + * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} message ListDataItemsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDatasetsResponse.toObject = function toObject(message, options) { + ListDataItemsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.datasets = []; + object.dataItems = []; 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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -171914,37 +171941,38 @@ }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this ListDataItemsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance * @returns {Object.} JSON object */ - ListDatasetsResponse.prototype.toJSON = function toJSON() { + ListDataItemsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDatasetsResponse; + return ListDataItemsResponse; })(); - v1beta1.DeleteDatasetRequest = (function() { + v1beta1.GetAnnotationSpecRequest = (function() { /** - * Properties of a DeleteDatasetRequest. + * Properties of a GetAnnotationSpecRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDatasetRequest - * @property {string|null} [name] DeleteDatasetRequest name + * @interface IGetAnnotationSpecRequest + * @property {string|null} [name] GetAnnotationSpecRequest name + * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask */ /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new GetAnnotationSpecRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDatasetRequest. - * @implements IDeleteDatasetRequest + * @classdesc Represents a GetAnnotationSpecRequest. + * @implements IGetAnnotationSpecRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set */ - function DeleteDatasetRequest(properties) { + function GetAnnotationSpecRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171952,76 +171980,89 @@ } /** - * DeleteDatasetRequest name. + * GetAnnotationSpecRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @instance */ - DeleteDatasetRequest.prototype.name = ""; + GetAnnotationSpecRequest.prototype.name = ""; /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * 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. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance */ - DeleteDatasetRequest.create = function create(properties) { - return new DeleteDatasetRequest(properties); + GetAnnotationSpecRequest.create = function create(properties) { + return new GetAnnotationSpecRequest(properties); }; /** - * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.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.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest 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 */ - DeleteDatasetRequest.encode = function encode(message, 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 DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.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.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest 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 */ - DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @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.DeleteDatasetRequest} DeleteDatasetRequest + * @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 */ - DeleteDatasetRequest.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.DeleteDatasetRequest(); + 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.name = reader.string(); break; + case 2: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -172031,109 +172072,126 @@ }; /** - * Decodes a DeleteDatasetRequest 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.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + * @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 */ - DeleteDatasetRequest.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 DeleteDatasetRequest message. + * Verifies a GetAnnotationSpecRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @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 */ - DeleteDatasetRequest.verify = function verify(message) { + 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 DeleteDatasetRequest 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.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest */ - DeleteDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest) + GetAnnotationSpecRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(); + 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 DeleteDatasetRequest 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.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} message DeleteDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDatasetRequest.toObject = function toObject(message, options) { + GetAnnotationSpecRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 DeleteDatasetRequest to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @instance * @returns {Object.} JSON object */ - DeleteDatasetRequest.prototype.toJSON = function toJSON() { + GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDatasetRequest; + return GetAnnotationSpecRequest; })(); - v1beta1.ImportDataRequest = (function() { + v1beta1.ListAnnotationsRequest = (function() { /** - * Properties of an ImportDataRequest. + * Properties of a ListAnnotationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataRequest - * @property {string|null} [name] ImportDataRequest name - * @property {Array.|null} [importConfigs] ImportDataRequest importConfigs + * @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 ImportDataRequest. + * Constructs a new ListAnnotationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataRequest. - * @implements IImportDataRequest + * @classdesc Represents a ListAnnotationsRequest. + * @implements IListAnnotationsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set */ - function ImportDataRequest(properties) { - this.importConfigs = []; + function ListAnnotationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172141,91 +172199,140 @@ } /** - * ImportDataRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * ListAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance */ - ImportDataRequest.prototype.name = ""; + ListAnnotationsRequest.prototype.parent = ""; /** - * ImportDataRequest importConfigs. - * @member {Array.} importConfigs - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * ListAnnotationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance */ - ImportDataRequest.prototype.importConfigs = $util.emptyArray; + ListAnnotationsRequest.prototype.filter = ""; /** - * Creates a new ImportDataRequest instance using the specified properties. + * 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 + * @instance + */ + ListAnnotationsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListAnnotationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest instance */ - ImportDataRequest.create = function create(properties) { - return new ImportDataRequest(properties); + ListAnnotationsRequest.create = function create(properties) { + return new ListAnnotationsRequest(properties); }; /** - * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.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.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest 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 */ - ImportDataRequest.encode = function encode(message, writer) { + ListAnnotationsRequest.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.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 ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.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.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest 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 */ - ImportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataRequest message from the specified reader or buffer. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @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.ImportDataRequest} ImportDataRequest + * @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 */ - ImportDataRequest.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.ImportDataRequest(); + 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) { 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.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); @@ -172236,132 +172343,155 @@ }; /** - * Decodes an ImportDataRequest 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.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest + * @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 */ - ImportDataRequest.decodeDelimited = function decodeDelimited(reader) { + ListAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataRequest message. + * Verifies a ListAnnotationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @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 */ - ImportDataRequest.verify = function verify(message) { + ListAnnotationsRequest.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.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 ImportDataRequest 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.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest */ - ImportDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataRequest) + ListAnnotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest) 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.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); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an ImportDataRequest 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.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataRequest} message ImportDataRequest + * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} message ListAnnotationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataRequest.toObject = function toObject(message, options) { + ListAnnotationsRequest.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.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 ImportDataRequest to JSON. + * Converts this ListAnnotationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance * @returns {Object.} JSON object */ - ImportDataRequest.prototype.toJSON = function toJSON() { + ListAnnotationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataRequest; + return ListAnnotationsRequest; })(); - v1beta1.ImportDataResponse = (function() { + v1beta1.ListAnnotationsResponse = (function() { /** - * Properties of an ImportDataResponse. + * Properties of a ListAnnotationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataResponse + * @interface IListAnnotationsResponse + * @property {Array.|null} [annotations] ListAnnotationsResponse annotations + * @property {string|null} [nextPageToken] ListAnnotationsResponse nextPageToken */ /** - * Constructs a new ImportDataResponse. + * Constructs a new ListAnnotationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataResponse. - * @implements IImportDataResponse + * @classdesc Represents a ListAnnotationsResponse. + * @implements IListAnnotationsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set */ - function ImportDataResponse(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) @@ -172369,63 +172499,92 @@ } /** - * Creates a new ImportDataResponse instance using the specified properties. + * ListAnnotationsResponse annotations. + * @member {Array.} annotations + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @instance + */ + ListAnnotationsResponse.prototype.annotations = $util.emptyArray; + + /** + * 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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse instance */ - ImportDataResponse.create = function create(properties) { - return new ImportDataResponse(properties); + ListAnnotationsResponse.create = function create(properties) { + return new ListAnnotationsResponse(properties); }; /** - * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse 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 */ - ImportDataResponse.encode = function encode(message, writer) { + ListAnnotationsResponse.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); return writer; }; /** - * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse 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 */ - ImportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataResponse message from the specified reader or buffer. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @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.ImportDataResponse} ImportDataResponse + * @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 */ - ImportDataResponse.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.ImportDataResponse(); + 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: + 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); break; @@ -172435,94 +172594,136 @@ }; /** - * Decodes an ImportDataResponse 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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse + * @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 */ - ImportDataResponse.decodeDelimited = function decodeDelimited(reader) { + ListAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataResponse message. + * Verifies a ListAnnotationsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @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 */ - ImportDataResponse.verify = function verify(message) { + ListAnnotationsResponse.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ImportDataResponse 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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse */ - ImportDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataResponse) + ListAnnotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); + 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 an ImportDataResponse 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.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataResponse} message ImportDataResponse + * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} message ListAnnotationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ImportDataResponse to JSON. + ListAnnotationsResponse.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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListAnnotationsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @instance * @returns {Object.} JSON object */ - ImportDataResponse.prototype.toJSON = function toJSON() { + ListAnnotationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataResponse; + return ListAnnotationsResponse; })(); - v1beta1.ImportDataOperationMetadata = (function() { + v1beta1.GenericOperationMetadata = (function() { /** - * Properties of an ImportDataOperationMetadata. + * Properties of a GenericOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportDataOperationMetadata genericMetadata + * @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 ImportDataOperationMetadata. + * Constructs a new GenericOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataOperationMetadata. - * @implements IImportDataOperationMetadata + * @classdesc Represents a GenericOperationMetadata. + * @implements IGenericOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set */ - function ImportDataOperationMetadata(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) @@ -172530,75 +172731,104 @@ } /** - * ImportDataOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * GenericOperationMetadata partialFailures. + * @member {Array.} partialFailures + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @instance */ - ImportDataOperationMetadata.prototype.genericMetadata = null; + GenericOperationMetadata.prototype.partialFailures = $util.emptyArray; /** - * Creates a new ImportDataOperationMetadata 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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata instance */ - ImportDataOperationMetadata.create = function create(properties) { - return new ImportDataOperationMetadata(properties); + GenericOperationMetadata.create = function create(properties) { + return new GenericOperationMetadata(properties); }; /** - * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata 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 */ - ImportDataOperationMetadata.encode = function encode(message, writer) { + GenericOperationMetadata.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.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 ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata 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 */ - ImportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GenericOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. + * Decodes a GenericOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @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.ImportDataOperationMetadata} ImportDataOperationMetadata + * @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 */ - ImportDataOperationMetadata.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.ImportDataOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + 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); @@ -172609,113 +172839,152 @@ }; /** - * Decodes an ImportDataOperationMetadata 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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata + * @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 */ - ImportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + GenericOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataOperationMetadata message. + * Verifies a GenericOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @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 */ - ImportDataOperationMetadata.verify = function verify(message) { + GenericOperationMetadata.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.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 "genericMetadata." + 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 an ImportDataOperationMetadata 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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata */ - ImportDataOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata) + GenericOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata) 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.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 an ImportDataOperationMetadata 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.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} message ImportDataOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} message GenericOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataOperationMetadata.toObject = function toObject(message, options) { + GenericOperationMetadata.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.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 ImportDataOperationMetadata to JSON. + * Converts this GenericOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @instance * @returns {Object.} JSON object */ - ImportDataOperationMetadata.prototype.toJSON = function toJSON() { + GenericOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataOperationMetadata; + return GenericOperationMetadata; })(); - v1beta1.ExportDataRequest = (function() { + v1beta1.DeleteOperationMetadata = (function() { /** - * Properties of an ExportDataRequest. + * Properties of a DeleteOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataRequest - * @property {string|null} [name] ExportDataRequest name - * @property {google.cloud.aiplatform.v1beta1.IExportDataConfig|null} [exportConfig] ExportDataRequest exportConfig + * @interface IDeleteOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteOperationMetadata genericMetadata */ /** - * Constructs a new ExportDataRequest. + * Constructs a new DeleteOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataRequest. - * @implements IExportDataRequest + * @classdesc Represents a DeleteOperationMetadata. + * @implements IDeleteOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set */ - function ExportDataRequest(properties) { + function DeleteOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172723,88 +172992,75 @@ } /** - * ExportDataRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest - * @instance - */ - ExportDataRequest.prototype.name = ""; - - /** - * ExportDataRequest exportConfig. - * @member {google.cloud.aiplatform.v1beta1.IExportDataConfig|null|undefined} exportConfig - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * DeleteOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @instance */ - ExportDataRequest.prototype.exportConfig = null; + DeleteOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata instance */ - ExportDataRequest.create = function create(properties) { - return new ExportDataRequest(properties); + DeleteOperationMetadata.create = function create(properties) { + return new DeleteOperationMetadata(properties); }; /** - * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.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.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest 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 */ - ExportDataRequest.encode = function encode(message, writer) { + DeleteOperationMetadata.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.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 ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.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.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest 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 */ - ExportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataRequest message from the specified reader or buffer. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @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.ExportDataRequest} ExportDataRequest + * @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 */ - ExportDataRequest.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.ExportDataRequest(); + 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.name = reader.string(); - break; - case 2: - message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -172815,122 +173071,113 @@ }; /** - * Decodes an ExportDataRequest 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.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest + * @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 */ - ExportDataRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataRequest message. + * Verifies a DeleteOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @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 */ - ExportDataRequest.verify = function verify(message) { + DeleteOperationMetadata.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.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "exportConfig." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates an ExportDataRequest 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.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata */ - ExportDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataRequest) + DeleteOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata) 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.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 an ExportDataRequest 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.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataRequest} message ExportDataRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} message DeleteOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataRequest.toObject = function toObject(message, options) { + DeleteOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.exportConfig = 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 (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 ExportDataRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @instance * @returns {Object.} JSON object */ - ExportDataRequest.prototype.toJSON = function toJSON() { + DeleteOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataRequest; + return DeleteOperationMetadata; })(); - v1beta1.ExportDataResponse = (function() { + v1beta1.DeployedIndexRef = (function() { /** - * Properties of an ExportDataResponse. + * Properties of a DeployedIndexRef. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataResponse - * @property {Array.|null} [exportedFiles] ExportDataResponse exportedFiles + * @interface IDeployedIndexRef + * @property {string|null} [indexEndpoint] DeployedIndexRef indexEndpoint + * @property {string|null} [deployedIndexId] DeployedIndexRef deployedIndexId */ /** - * Constructs a new ExportDataResponse. + * Constructs a new DeployedIndexRef. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataResponse. - * @implements IExportDataResponse + * @classdesc Represents a DeployedIndexRef. + * @implements IDeployedIndexRef * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set */ - function ExportDataResponse(properties) { - this.exportedFiles = []; + function DeployedIndexRef(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172938,78 +173185,88 @@ } /** - * ExportDataResponse exportedFiles. - * @member {Array.} exportedFiles - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * DeployedIndexRef indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @instance */ - ExportDataResponse.prototype.exportedFiles = $util.emptyArray; + DeployedIndexRef.prototype.indexEndpoint = ""; /** - * Creates a new ExportDataResponse instance using the specified properties. + * DeployedIndexRef deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @instance + */ + DeployedIndexRef.prototype.deployedIndexId = ""; + + /** + * Creates a new DeployedIndexRef instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef instance */ - ExportDataResponse.create = function create(properties) { - return new ExportDataResponse(properties); + DeployedIndexRef.create = function create(properties) { + return new DeployedIndexRef(properties); }; /** - * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.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.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse 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 */ - ExportDataResponse.encode = function encode(message, writer) { + DeployedIndexRef.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.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 ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.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.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse 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 */ - ExportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndexRef.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataResponse message from the specified reader or buffer. + * Decodes a DeployedIndexRef message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @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.ExportDataResponse} ExportDataResponse + * @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 */ - ExportDataResponse.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.ExportDataResponse(); + 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: - if (!(message.exportedFiles && message.exportedFiles.length)) - message.exportedFiles = []; - message.exportedFiles.push(reader.string()); + message.indexEndpoint = reader.string(); + break; + case 2: + message.deployedIndexId = reader.string(); break; default: reader.skipType(tag & 7); @@ -173020,120 +173277,132 @@ }; /** - * Decodes an ExportDataResponse 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.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse + * @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 */ - ExportDataResponse.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 ExportDataResponse message. + * Verifies a DeployedIndexRef message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @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 */ - ExportDataResponse.verify = function verify(message) { + DeployedIndexRef.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.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 ExportDataResponse 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.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef */ - ExportDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataResponse) + DeployedIndexRef.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef) 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.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 ExportDataResponse 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.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataResponse} message ExportDataResponse + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexRef} message DeployedIndexRef * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataResponse.toObject = function toObject(message, options) { + DeployedIndexRef.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.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; return object; }; /** - * Converts this ExportDataResponse to JSON. + * Converts this DeployedIndexRef to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @instance * @returns {Object.} JSON object */ - ExportDataResponse.prototype.toJSON = function toJSON() { + DeployedIndexRef.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataResponse; + return DeployedIndexRef; })(); - v1beta1.ExportDataOperationMetadata = (function() { + v1beta1.Endpoint = (function() { /** - * Properties of an ExportDataOperationMetadata. + * Properties of an Endpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportDataOperationMetadata genericMetadata - * @property {string|null} [gcsOutputDirectory] ExportDataOperationMetadata gcsOutputDirectory + * @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 ExportDataOperationMetadata. + * Constructs a new Endpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataOperationMetadata. - * @implements IExportDataOperationMetadata + * @classdesc Represents an Endpoint. + * @implements IEndpoint * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set */ - function ExportDataOperationMetadata(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) @@ -173141,359 +173410,287 @@ } /** - * ExportDataOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * Endpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ExportDataOperationMetadata.prototype.genericMetadata = null; + Endpoint.prototype.name = ""; /** - * ExportDataOperationMetadata gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * Endpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ExportDataOperationMetadata.prototype.gcsOutputDirectory = ""; - - /** - * Creates a new ExportDataOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata instance - */ - ExportDataOperationMetadata.create = function create(properties) { - return new ExportDataOperationMetadata(properties); - }; - - /** - * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @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 - */ - 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 ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @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 - */ - ExportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. - * @function decode - * @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.ExportDataOperationMetadata} ExportDataOperationMetadata - * @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) { - 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(); - 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; - } - } - return message; - }; - - /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ExportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Endpoint.prototype.displayName = ""; /** - * Verifies an ExportDataOperationMetadata message. - * @function verify - * @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 + * Endpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - ExportDataOperationMetadata.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.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - return null; - }; + Endpoint.prototype.description = ""; /** - * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata + * Endpoint deployedModels. + * @member {Array.} deployedModels + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - ExportDataOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata) - 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); - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - return message; - }; + Endpoint.prototype.deployedModels = $util.emptyArray; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} message ExportDataOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Endpoint trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - ExportDataOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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; - }; + Endpoint.prototype.trafficSplit = $util.emptyObject; /** - * Converts this ExportDataOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * Endpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance - * @returns {Object.} JSON object */ - ExportDataOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExportDataOperationMetadata; - })(); - - v1beta1.ListDataItemsRequest = (function() { + Endpoint.prototype.etag = ""; /** - * Properties of a ListDataItemsRequest. - * @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 + * Endpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ + Endpoint.prototype.labels = $util.emptyObject; /** - * Constructs a new ListDataItemsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataItemsRequest. - * @implements IListDataItemsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set + * Endpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - function ListDataItemsRequest(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]]; - } + Endpoint.prototype.createTime = null; /** - * ListDataItemsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.parent = ""; + Endpoint.prototype.updateTime = null; /** - * ListDataItemsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.filter = ""; + Endpoint.prototype.encryptionSpec = null; /** - * ListDataItemsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.pageSize = 0; + Endpoint.prototype.network = ""; /** - * ListDataItemsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.pageToken = ""; + Endpoint.prototype.enablePrivateServiceConnect = false; /** - * ListDataItemsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.readMask = null; + Endpoint.prototype.modelDeploymentMonitoringJob = ""; /** - * ListDataItemsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * Endpoint predictRequestResponseLoggingConfig. + * @member {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null|undefined} predictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - ListDataItemsRequest.prototype.orderBy = ""; + Endpoint.prototype.predictRequestResponseLoggingConfig = null; /** - * Creates a new ListDataItemsRequest instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint instance */ - ListDataItemsRequest.create = function create(properties) { - return new ListDataItemsRequest(properties); + Endpoint.create = function create(properties) { + return new Endpoint(properties); }; /** - * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.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.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest 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 */ - ListDataItemsRequest.encode = function encode(message, writer) { + Endpoint.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.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(); return writer; }; /** - * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.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.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest 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 */ - ListDataItemsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Endpoint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * Decodes an Endpoint message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @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.ListDataItemsRequest} ListDataItemsRequest + * @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 */ - ListDataItemsRequest.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.ListDataItemsRequest(); + 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.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(); + if (!(message.deployedModels && message.deployedModels.length)) + message.deployedModels = []; + message.deployedModels.push($root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32())); break; case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + 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.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 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); @@ -173504,155 +173701,290 @@ }; /** - * Decodes a ListDataItemsRequest 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.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest + * @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 */ - ListDataItemsRequest.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 ListDataItemsRequest message. + * Verifies an Endpoint message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @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 */ - ListDataItemsRequest.verify = function verify(message) { + Endpoint.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.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)) + 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 "readMask." + 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.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListDataItemsRequest 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.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint */ - ListDataItemsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest) + Endpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Endpoint) 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); + 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.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.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListDataItemsRequest 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.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} message ListDataItemsRequest + * @param {google.cloud.aiplatform.v1beta1.Endpoint} message Endpoint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataItemsRequest.toObject = function toObject(message, options) { + Endpoint.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.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; + 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.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.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]]; + } + 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 ListDataItemsRequest to JSON. + * Converts this Endpoint to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance * @returns {Object.} JSON object */ - ListDataItemsRequest.prototype.toJSON = function toJSON() { + Endpoint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataItemsRequest; + return Endpoint; })(); - v1beta1.ListDataItemsResponse = (function() { + v1beta1.DeployedModel = (function() { /** - * Properties of a ListDataItemsResponse. + * Properties of a DeployedModel. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataItemsResponse - * @property {Array.|null} [dataItems] ListDataItemsResponse dataItems - * @property {string|null} [nextPageToken] ListDataItemsResponse nextPageToken + * @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 ListDataItemsResponse. + * Constructs a new DeployedModel. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataItemsResponse. - * @implements IListDataItemsResponse + * @classdesc Represents a DeployedModel. + * @implements IDeployedModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set */ - function ListDataItemsResponse(properties) { - this.dataItems = []; + function DeployedModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173660,91 +173992,232 @@ } /** - * ListDataItemsResponse dataItems. - * @member {Array.} dataItems - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * DeployedModel dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @instance */ - ListDataItemsResponse.prototype.dataItems = $util.emptyArray; + DeployedModel.prototype.dedicatedResources = null; /** - * ListDataItemsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * DeployedModel automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @instance */ - ListDataItemsResponse.prototype.nextPageToken = ""; + DeployedModel.prototype.automaticResources = null; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * 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.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel instance */ - ListDataItemsResponse.create = function create(properties) { - return new ListDataItemsResponse(properties); + DeployedModel.create = function create(properties) { + return new DeployedModel(properties); }; /** - * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.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.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse 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 */ - ListDataItemsResponse.encode = function encode(message, writer) { + DeployedModel.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.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 ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.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.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse 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 */ - ListDataItemsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeployedModel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer. + * Decodes a DeployedModel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @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.ListDataItemsResponse} ListDataItemsResponse + * @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 */ - ListDataItemsResponse.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.ListDataItemsResponse(); + 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: - if (!(message.dataItems && message.dataItems.length)) - message.dataItems = []; - message.dataItems.push($root.google.cloud.aiplatform.v1beta1.DataItem.decode(reader, reader.uint32())); + message.id = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + 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); @@ -173755,134 +174228,237 @@ }; /** - * Decodes a ListDataItemsResponse 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.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse + * @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 */ - ListDataItemsResponse.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 ListDataItemsResponse message. + * Verifies a DeployedModel message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @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 */ - ListDataItemsResponse.verify = function verify(message) { + DeployedModel.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]); + 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 "dataItems." + error; + return "dedicatedResources." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + 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 (error) + return "privateEndpoints." + error; + } return null; }; /** - * Creates a ListDataItemsResponse 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.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel */ - ListDataItemsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse) + DeployedModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModel) 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.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); } - 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 a DeployedModel message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} message ListDataItemsResponse + * @param {google.cloud.aiplatform.v1beta1.DeployedModel} message DeployedModel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataItemsResponse.toObject = function toObject(message, options) { + DeployedModel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - 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 (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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListDataItemsResponse to JSON. + * Converts this DeployedModel to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @instance * @returns {Object.} JSON object */ - ListDataItemsResponse.prototype.toJSON = function toJSON() { + DeployedModel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataItemsResponse; + return DeployedModel; })(); - v1beta1.GetAnnotationSpecRequest = (function() { + v1beta1.PrivateEndpoints = (function() { /** - * Properties of a GetAnnotationSpecRequest. + * Properties of a PrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetAnnotationSpecRequest - * @property {string|null} [name] GetAnnotationSpecRequest name - * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask + * @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 GetAnnotationSpecRequest. + * Constructs a new PrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetAnnotationSpecRequest. - * @implements IGetAnnotationSpecRequest + * @classdesc Represents a PrivateEndpoints. + * @implements IPrivateEndpoints * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set */ - function GetAnnotationSpecRequest(properties) { + function PrivateEndpoints(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173890,88 +174466,114 @@ } /** - * GetAnnotationSpecRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * PrivateEndpoints predictHttpUri. + * @member {string} predictHttpUri + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @instance */ - GetAnnotationSpecRequest.prototype.name = ""; + PrivateEndpoints.prototype.predictHttpUri = ""; /** - * GetAnnotationSpecRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * PrivateEndpoints explainHttpUri. + * @member {string} explainHttpUri + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @instance */ - GetAnnotationSpecRequest.prototype.readMask = null; + PrivateEndpoints.prototype.explainHttpUri = ""; /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * 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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints instance */ - GetAnnotationSpecRequest.create = function create(properties) { - return new GetAnnotationSpecRequest(properties); + PrivateEndpoints.create = function create(properties) { + return new PrivateEndpoints(properties); }; /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest 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 */ - GetAnnotationSpecRequest.encode = function encode(message, writer) { + PrivateEndpoints.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.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 GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest 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 */ - GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * Decodes a PrivateEndpoints message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @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.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @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 */ - GetAnnotationSpecRequest.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.GetAnnotationSpecRequest(); + 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.name = reader.string(); + message.predictHttpUri = reader.string(); break; case 2: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.explainHttpUri = reader.string(); + break; + case 3: + message.healthHttpUri = reader.string(); + break; + case 4: + message.serviceAttachment = reader.string(); break; default: reader.skipType(tag & 7); @@ -173982,126 +174584,134 @@ }; /** - * Decodes a GetAnnotationSpecRequest 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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @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 */ - GetAnnotationSpecRequest.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 GetAnnotationSpecRequest message. + * Verifies a PrivateEndpoints message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @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 */ - GetAnnotationSpecRequest.verify = function verify(message) { + PrivateEndpoints.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; - } + 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 GetAnnotationSpecRequest 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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints */ - GetAnnotationSpecRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest) + PrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints) 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); - } + 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 GetAnnotationSpecRequest 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.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest + * @param {google.cloud.aiplatform.v1beta1.PrivateEndpoints} message PrivateEndpoints * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAnnotationSpecRequest.toObject = function toObject(message, options) { + PrivateEndpoints.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.readMask = null; + object.predictHttpUri = ""; + object.explainHttpUri = ""; + object.healthHttpUri = ""; + object.serviceAttachment = ""; } - 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.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 GetAnnotationSpecRequest to JSON. + * Converts this PrivateEndpoints to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @instance * @returns {Object.} JSON object */ - GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { + PrivateEndpoints.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetAnnotationSpecRequest; + return PrivateEndpoints; })(); - v1beta1.ListAnnotationsRequest = (function() { + v1beta1.PredictRequestResponseLoggingConfig = (function() { /** - * Properties of a ListAnnotationsRequest. + * Properties of a PredictRequestResponseLoggingConfig. * @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 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 ListAnnotationsRequest. + * Constructs a new PredictRequestResponseLoggingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListAnnotationsRequest. - * @implements IListAnnotationsRequest + * @classdesc Represents a PredictRequestResponseLoggingConfig. + * @implements IPredictRequestResponseLoggingConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set */ - function ListAnnotationsRequest(properties) { + function PredictRequestResponseLoggingConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174109,143 +174719,104 @@ } /** - * 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 + * PredictRequestResponseLoggingConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - ListAnnotationsRequest.prototype.pageToken = ""; + PredictRequestResponseLoggingConfig.prototype.enabled = false; /** - * ListAnnotationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * PredictRequestResponseLoggingConfig samplingRate. + * @member {number} samplingRate + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - ListAnnotationsRequest.prototype.readMask = null; + PredictRequestResponseLoggingConfig.prototype.samplingRate = 0; /** - * ListAnnotationsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * PredictRequestResponseLoggingConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - ListAnnotationsRequest.prototype.orderBy = ""; + PredictRequestResponseLoggingConfig.prototype.bigqueryDestination = null; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig instance */ - ListAnnotationsRequest.create = function create(properties) { - return new ListAnnotationsRequest(properties); + PredictRequestResponseLoggingConfig.create = function create(properties) { + return new PredictRequestResponseLoggingConfig(properties); }; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.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.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest 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 */ - ListAnnotationsRequest.encode = function encode(message, writer) { + PredictRequestResponseLoggingConfig.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.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 ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.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.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest 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 */ - ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredictRequestResponseLoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @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.ListAnnotationsRequest} ListAnnotationsRequest + * @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 */ - ListAnnotationsRequest.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.ListAnnotationsRequest(); + 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.parent = reader.string(); + message.enabled = reader.bool(); break; case 2: - message.filter = reader.string(); + message.samplingRate = reader.double(); break; case 3: - message.pageSize = reader.int32(); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); 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); + default: + reader.skipType(tag & 7); break; } } @@ -174253,155 +174824,397 @@ }; /** - * Decodes a ListAnnotationsRequest 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.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest + * @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 */ - ListAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { + PredictRequestResponseLoggingConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAnnotationsRequest message. + * Verifies a PredictRequestResponseLoggingConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @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 */ - ListAnnotationsRequest.verify = function verify(message) { + PredictRequestResponseLoggingConfig.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.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 "readMask." + error; + return "bigqueryDestination." + 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 a PredictRequestResponseLoggingConfig 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.PredictRequestResponseLoggingConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig */ - ListAnnotationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest) + PredictRequestResponseLoggingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) 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.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); } - 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 a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} message ListAnnotationsRequest + * @param {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAnnotationsRequest.toObject = function toObject(message, options) { + PredictRequestResponseLoggingConfig.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 = ""; + object.enabled = false; + object.samplingRate = 0; + object.bigqueryDestination = 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.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + 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 ListAnnotationsRequest to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance * @returns {Object.} JSON object */ - ListAnnotationsRequest.prototype.toJSON = function toJSON() { + PredictRequestResponseLoggingConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAnnotationsRequest; + return PredictRequestResponseLoggingConfig; })(); - v1beta1.ListAnnotationsResponse = (function() { + v1beta1.EndpointService = (function() { /** - * Properties of a ListAnnotationsResponse. + * Constructs a new EndpointService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListAnnotationsResponse - * @property {Array.|null} [annotations] ListAnnotationsResponse annotations - * @property {string|null} [nextPageToken] ListAnnotationsResponse nextPageToken + * @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 */ /** - * Constructs a new ListAnnotationsResponse. + * 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 a ListAnnotationsResponse. - * @implements IListAnnotationsResponse + * @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.IListAnnotationsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set */ - function ListAnnotationsResponse(properties) { - this.annotations = []; + function CreateEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174409,91 +175222,101 @@ } /** - * ListAnnotationsResponse annotations. - * @member {Array.} annotations - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * CreateEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @instance */ - ListAnnotationsResponse.prototype.annotations = $util.emptyArray; + CreateEndpointRequest.prototype.parent = ""; /** - * ListAnnotationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * CreateEndpointRequest endpoint. + * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @instance */ - ListAnnotationsResponse.prototype.nextPageToken = ""; + CreateEndpointRequest.prototype.endpoint = null; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * 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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest instance */ - ListAnnotationsResponse.create = function create(properties) { - return new ListAnnotationsResponse(properties); + CreateEndpointRequest.create = function create(properties) { + return new CreateEndpointRequest(properties); }; /** - * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse 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 */ - ListAnnotationsResponse.encode = function encode(message, writer) { + CreateEndpointRequest.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.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 ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse 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 */ - ListAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer. + * Decodes a CreateEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @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.ListAnnotationsResponse} ListAnnotationsResponse + * @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 */ - ListAnnotationsResponse.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.ListAnnotationsResponse(); + 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: - if (!(message.annotations && message.annotations.length)) - message.annotations = []; - message.annotations.push($root.google.cloud.aiplatform.v1beta1.Annotation.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + 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); @@ -174504,136 +175327,129 @@ }; /** - * Decodes a ListAnnotationsResponse 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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse + * @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 */ - ListAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAnnotationsResponse message. + * Verifies a CreateEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @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 */ - ListAnnotationsResponse.verify = function verify(message) { + CreateEndpointRequest.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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.endpointId != null && message.hasOwnProperty("endpointId")) + if (!$util.isString(message.endpointId)) + return "endpointId: string expected"; return null; }; /** - * Creates a ListAnnotationsResponse 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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest */ - ListAnnotationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) + CreateEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest) 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.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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.endpointId != null) + message.endpointId = String(object.endpointId); return message; }; /** - * Creates a plain object from a ListAnnotationsResponse 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.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} message ListAnnotationsResponse + * @param {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} message CreateEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAnnotationsResponse.toObject = function toObject(message, options) { + CreateEndpointRequest.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.parent = ""; + object.endpoint = null; + object.endpointId = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListAnnotationsResponse to JSON. + * Converts this CreateEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @instance * @returns {Object.} JSON object */ - ListAnnotationsResponse.prototype.toJSON = function toJSON() { + CreateEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAnnotationsResponse; + return CreateEndpointRequest; })(); - v1beta1.GenericOperationMetadata = (function() { + v1beta1.CreateEndpointOperationMetadata = (function() { /** - * Properties of a GenericOperationMetadata. + * Properties of a CreateEndpointOperationMetadata. * @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 ICreateEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEndpointOperationMetadata genericMetadata */ /** - * Constructs a new GenericOperationMetadata. + * Constructs a new CreateEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GenericOperationMetadata. - * @implements IGenericOperationMetadata + * @classdesc Represents a CreateEndpointOperationMetadata. + * @implements ICreateEndpointOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set */ - function GenericOperationMetadata(properties) { - this.partialFailures = []; + function CreateEndpointOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174641,104 +175457,75 @@ } /** - * 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 + * CreateEndpointOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @instance */ - GenericOperationMetadata.prototype.updateTime = null; + CreateEndpointOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata instance */ - GenericOperationMetadata.create = function create(properties) { - return new GenericOperationMetadata(properties); + CreateEndpointOperationMetadata.create = function create(properties) { + return new CreateEndpointOperationMetadata(properties); }; /** - * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.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.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata 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 */ - GenericOperationMetadata.encode = function encode(message, writer) { + CreateEndpointOperationMetadata.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.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 GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.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.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata 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 */ - GenericOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @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.GenericOperationMetadata} GenericOperationMetadata + * @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 */ - GenericOperationMetadata.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.GenericOperationMetadata(); + 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) { 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()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -174749,152 +175536,112 @@ }; /** - * Decodes a GenericOperationMetadata 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.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata + * @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 */ - GenericOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenericOperationMetadata message. + * Verifies a CreateEndpointOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @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 */ - GenericOperationMetadata.verify = function verify(message) { + CreateEndpointOperationMetadata.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 (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "updateTime." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a GenericOperationMetadata 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.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata */ - GenericOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata) + CreateEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata) 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.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); } return message; }; /** - * Creates a plain object from a GenericOperationMetadata 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.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} message GenericOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} message CreateEndpointOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenericOperationMetadata.toObject = function toObject(message, options) { + CreateEndpointOperationMetadata.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); - } - 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 (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 GenericOperationMetadata to JSON. + * Converts this CreateEndpointOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @instance * @returns {Object.} JSON object */ - GenericOperationMetadata.prototype.toJSON = function toJSON() { + CreateEndpointOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenericOperationMetadata; + return CreateEndpointOperationMetadata; })(); - v1beta1.DeleteOperationMetadata = (function() { + v1beta1.GetEndpointRequest = (function() { /** - * Properties of a DeleteOperationMetadata. + * Properties of a GetEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteOperationMetadata genericMetadata + * @interface IGetEndpointRequest + * @property {string|null} [name] GetEndpointRequest name */ /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new GetEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteOperationMetadata. - * @implements IDeleteOperationMetadata + * @classdesc Represents a GetEndpointRequest. + * @implements IGetEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set */ - function DeleteOperationMetadata(properties) { + function GetEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174902,75 +175649,75 @@ } /** - * DeleteOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * GetEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @instance */ - DeleteOperationMetadata.prototype.genericMetadata = null; + GetEndpointRequest.prototype.name = ""; /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * Creates a new GetEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest instance */ - DeleteOperationMetadata.create = function create(properties) { - return new DeleteOperationMetadata(properties); + GetEndpointRequest.create = function create(properties) { + return new GetEndpointRequest(properties); }; /** - * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode + * @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 */ - DeleteOperationMetadata.encode = function encode(message, writer) { + GetEndpointRequest.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 DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * 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.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode + * @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 */ - DeleteOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer. + * Decodes a GetEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @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.DeleteOperationMetadata} DeleteOperationMetadata + * @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 */ - DeleteOperationMetadata.decode = function decode(reader, length) { + 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.DeleteOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -174981,127 +175728,111 @@ }; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata + * @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 */ - DeleteOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + GetEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteOperationMetadata message. + * Verifies a GetEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @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 */ - DeleteOperationMetadata.verify = function verify(message) { + GetEndpointRequest.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 DeleteOperationMetadata 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest */ - DeleteOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata) + GetEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest) return object; - 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); - } + 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 DeleteOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} message DeleteOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GetEndpointRequest} message GetEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteOperationMetadata.toObject = function toObject(message, options) { + GetEndpointRequest.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 DeleteOperationMetadata to JSON. + * Converts this GetEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @instance * @returns {Object.} JSON object */ - DeleteOperationMetadata.prototype.toJSON = function toJSON() { + GetEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteOperationMetadata; + return GetEndpointRequest; })(); - v1beta1.TrainingPipeline = (function() { + v1beta1.ListEndpointsRequest = (function() { /** - * Properties of a TrainingPipeline. + * Properties of a ListEndpointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITrainingPipeline - * @property {string|null} [name] TrainingPipeline name - * @property {string|null} [displayName] TrainingPipeline displayName - * @property {google.cloud.aiplatform.v1beta1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig - * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition - * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs - * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload - * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] TrainingPipeline state - * @property {google.rpc.IStatus|null} [error] TrainingPipeline error - * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime - * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime - * @property {Object.|null} [labels] TrainingPipeline labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec + * @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 TrainingPipeline. + * Constructs a new ListEndpointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TrainingPipeline. - * @implements ITrainingPipeline + * @classdesc Represents a ListEndpointsRequest. + * @implements IListEndpointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set */ - function TrainingPipeline(properties) { - this.labels = {}; + function ListEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175109,277 +175840,127 @@ } /** - * TrainingPipeline name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.name = ""; - - /** - * TrainingPipeline displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * ListEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - TrainingPipeline.prototype.displayName = ""; + ListEndpointsRequest.prototype.parent = ""; /** - * TrainingPipeline inputDataConfig. - * @member {google.cloud.aiplatform.v1beta1.IInputDataConfig|null|undefined} inputDataConfig - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * ListEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - TrainingPipeline.prototype.inputDataConfig = null; + ListEndpointsRequest.prototype.filter = ""; /** - * TrainingPipeline trainingTaskDefinition. - * @member {string} trainingTaskDefinition - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * ListEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - TrainingPipeline.prototype.trainingTaskDefinition = ""; + ListEndpointsRequest.prototype.pageSize = 0; /** - * TrainingPipeline trainingTaskInputs. - * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * ListEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - TrainingPipeline.prototype.trainingTaskInputs = null; + ListEndpointsRequest.prototype.pageToken = ""; /** - * TrainingPipeline trainingTaskMetadata. - * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * ListEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - TrainingPipeline.prototype.trainingTaskMetadata = null; + ListEndpointsRequest.prototype.readMask = null; /** - * TrainingPipeline modelToUpload. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} modelToUpload - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance + * Creates a new ListEndpointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest instance */ - TrainingPipeline.prototype.modelToUpload = null; + ListEndpointsRequest.create = function create(properties) { + return new ListEndpointsRequest(properties); + }; /** - * TrainingPipeline state. - * @member {google.cloud.aiplatform.v1beta1.PipelineState} state - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.state = 0; - - /** - * TrainingPipeline error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.error = null; - - /** - * TrainingPipeline createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.createTime = null; - - /** - * TrainingPipeline startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.startTime = null; - - /** - * TrainingPipeline endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.endTime = null; - - /** - * TrainingPipeline updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.updateTime = null; - - /** - * TrainingPipeline labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.labels = $util.emptyObject; - - /** - * TrainingPipeline encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.encryptionSpec = null; - - /** - * Creates a new TrainingPipeline instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline - * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline instance - */ - TrainingPipeline.create = function create(properties) { - return new TrainingPipeline(properties); - }; - - /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.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.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline 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 */ - TrainingPipeline.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) - $root.google.cloud.aiplatform.v1beta1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); - if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) - $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) - $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - 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.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.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - 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.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).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 TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.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.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline 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 */ - TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { + ListEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a ListEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @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.TrainingPipeline} TrainingPipeline + * @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 */ - TrainingPipeline.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.TrainingPipeline(), 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.displayName = reader.string(); + message.filter = reader.string(); break; case 3: - message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 4: - message.trainingTaskDefinition = reader.string(); + message.pageToken = reader.string(); break; case 5: - message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 6: - message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 7: - message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); - break; - case 9: - message.state = reader.int32(); - break; - case 10: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - 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: - 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 18: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -175390,342 +175971,147 @@ }; /** - * Decodes a TrainingPipeline 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.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline + * @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 */ - TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { + ListEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingPipeline message. + * Verifies a ListEndpointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @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 */ - TrainingPipeline.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.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.verify(message.inputDataConfig); - if (error) - return "inputDataConfig." + error; - } - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - if (!$util.isString(message.trainingTaskDefinition)) - return "trainingTaskDefinition: string expected"; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); - if (error) - return "trainingTaskInputs." + error; - } - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); - if (error) - return "trainingTaskMetadata." + error; - } - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.modelToUpload); - if (error) - return "modelToUpload." + 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: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + 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) - 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.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + 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 "encryptionSpec." + error; + return "readMask." + error; } return null; }; /** - * Creates a TrainingPipeline 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.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest */ - TrainingPipeline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingPipeline) + ListEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.inputDataConfig != null) { - if (typeof object.inputDataConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.inputDataConfig: object expected"); - message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.fromObject(object.inputDataConfig); - } - if (object.trainingTaskDefinition != null) - message.trainingTaskDefinition = String(object.trainingTaskDefinition); - if (object.trainingTaskInputs != null) { - if (typeof object.trainingTaskInputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskInputs: object expected"); - message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); - } - if (object.trainingTaskMetadata != null) { - if (typeof object.trainingTaskMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskMetadata: object expected"); - message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); - } - if (object.modelToUpload != null) { - if (typeof object.modelToUpload !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.modelToUpload: object expected"); - message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.modelToUpload); - } - switch (object.state) { - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + 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 a TrainingPipeline 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.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} message TrainingPipeline + * @param {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} message ListEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingPipeline.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.displayName = ""; - object.inputDataConfig = null; - object.trainingTaskDefinition = ""; - object.trainingTaskInputs = null; - object.trainingTaskMetadata = null; - object.modelToUpload = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = 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.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) - object.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.toObject(message.inputDataConfig, options); - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - object.trainingTaskDefinition = message.trainingTaskDefinition; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) - object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) - object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) - object.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.modelToUpload, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - 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); - 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.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, 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 TrainingPipeline to JSON. + * Converts this ListEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance * @returns {Object.} JSON object */ - TrainingPipeline.prototype.toJSON = function toJSON() { + ListEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TrainingPipeline; + return ListEndpointsRequest; })(); - v1beta1.InputDataConfig = (function() { + v1beta1.ListEndpointsResponse = (function() { /** - * Properties of an InputDataConfig. + * Properties of a ListEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IInputDataConfig - * @property {google.cloud.aiplatform.v1beta1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit - * @property {google.cloud.aiplatform.v1beta1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit - * @property {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit - * @property {google.cloud.aiplatform.v1beta1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit - * @property {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination - * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination - * @property {string|null} [datasetId] InputDataConfig datasetId - * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter - * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @interface IListEndpointsResponse + * @property {Array.|null} [endpoints] ListEndpointsResponse endpoints + * @property {string|null} [nextPageToken] ListEndpointsResponse nextPageToken */ /** - * Constructs a new InputDataConfig. + * Constructs a new ListEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an InputDataConfig. - * @implements IInputDataConfig + * @classdesc Represents a ListEndpointsResponse. + * @implements IListEndpointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set */ - function InputDataConfig(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) @@ -175733,217 +176119,91 @@ } /** - * InputDataConfig fractionSplit. - * @member {google.cloud.aiplatform.v1beta1.IFractionSplit|null|undefined} fractionSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.fractionSplit = null; - - /** - * InputDataConfig filterSplit. - * @member {google.cloud.aiplatform.v1beta1.IFilterSplit|null|undefined} filterSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.filterSplit = null; - - /** - * InputDataConfig predefinedSplit. - * @member {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null|undefined} predefinedSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.predefinedSplit = null; - - /** - * InputDataConfig timestampSplit. - * @member {google.cloud.aiplatform.v1beta1.ITimestampSplit|null|undefined} timestampSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.timestampSplit = null; - - /** - * InputDataConfig stratifiedSplit. - * @member {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null|undefined} stratifiedSplit - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.stratifiedSplit = null; - - /** - * InputDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.gcsDestination = null; - - /** - * InputDataConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.bigqueryDestination = null; - - /** - * InputDataConfig datasetId. - * @member {string} datasetId - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.datasetId = ""; - - /** - * InputDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.annotationsFilter = ""; - - /** - * InputDataConfig annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.annotationSchemaUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputDataConfig split. - * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ListEndpointsResponse endpoints. + * @member {Array.} endpoints + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance */ - Object.defineProperty(InputDataConfig.prototype, "split", { - get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListEndpointsResponse.prototype.endpoints = $util.emptyArray; /** - * InputDataConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * ListEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance */ - Object.defineProperty(InputDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListEndpointsResponse.prototype.nextPageToken = ""; /** - * Creates a new InputDataConfig instance using the specified properties. + * Creates a new ListEndpointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse instance */ - InputDataConfig.create = function create(properties) { - return new InputDataConfig(properties); + ListEndpointsResponse.create = function create(properties) { + return new ListEndpointsResponse(properties); }; /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @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 */ - InputDataConfig.encode = function encode(message, writer) { + ListEndpointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); - if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) - $root.google.cloud.aiplatform.v1beta1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) - $root.google.cloud.aiplatform.v1beta1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) - $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) - $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.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")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) - $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + 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 InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. + * 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.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @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 */ - InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes a ListEndpointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @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.InputDataConfig} InputDataConfig + * @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 */ - InputDataConfig.decode = function decode(reader, length) { + 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.InputDataConfig(); + 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 2: - message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.decode(reader, reader.uint32()); - break; - case 3: - message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.decode(reader, reader.uint32()); - break; - case 4: - message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.decode(reader, reader.uint32()); - break; - case 5: - message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.decode(reader, reader.uint32()); - break; - case 12: - message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.decode(reader, reader.uint32()); - break; - case 8: - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - case 10: - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); - break; case 1: - message.datasetId = reader.string(); - break; - case 6: - message.annotationsFilter = reader.string(); + if (!(message.endpoints && message.endpoints.length)) + message.endpoints = []; + message.endpoints.push($root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32())); break; - case 9: - message.annotationSchemaUri = reader.string(); + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -175954,263 +176214,134 @@ }; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig + * @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 */ - InputDataConfig.decodeDelimited = function decodeDelimited(reader) { + ListEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputDataConfig message. + * Verifies a ListEndpointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @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 */ - InputDataConfig.verify = function verify(message) { + ListEndpointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FractionSplit.verify(message.fractionSplit); - if (error) - return "fractionSplit." + error; - } - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FilterSplit.verify(message.filterSplit); - if (error) - return "filterSplit." + error; - } - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.verify(message.predefinedSplit); - if (error) - return "predefinedSplit." + error; - } - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.verify(message.timestampSplit); - if (error) - return "timestampSplit." + error; - } - } - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.verify(message.stratifiedSplit); - if (error) - return "stratifiedSplit." + error; - } - } - 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.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + 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 "bigqueryDestination." + error; + return "endpoints." + error; } } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an InputDataConfig 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse */ - InputDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.InputDataConfig) + ListEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); - if (object.fractionSplit != null) { - if (typeof object.fractionSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.fractionSplit: object expected"); - message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.fromObject(object.fractionSplit); - } - if (object.filterSplit != null) { - if (typeof object.filterSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.filterSplit: object expected"); - message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.fromObject(object.filterSplit); - } - if (object.predefinedSplit != null) { - if (typeof object.predefinedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.predefinedSplit: object expected"); - message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.fromObject(object.predefinedSplit); - } - if (object.timestampSplit != null) { - if (typeof object.timestampSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.timestampSplit: object expected"); - message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.fromObject(object.timestampSplit); - } - if (object.stratifiedSplit != null) { - if (typeof object.stratifiedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.stratifiedSplit: object expected"); - message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.fromObject(object.stratifiedSplit); - } - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); - } - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + 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.datasetId != null) - message.datasetId = String(object.datasetId); - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.InputDataConfig} message InputDataConfig + * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} message ListEndpointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputDataConfig.toObject = function toObject(message, options) { + ListEndpointsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.datasetId = ""; - object.annotationsFilter = ""; - object.annotationSchemaUri = ""; - } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - object.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.toObject(message.fractionSplit, options); - if (options.oneofs) - object.split = "fractionSplit"; - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - object.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.toObject(message.filterSplit, options); - if (options.oneofs) - object.split = "filterSplit"; - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - object.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.toObject(message.predefinedSplit, options); - if (options.oneofs) - object.split = "predefinedSplit"; - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - object.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.toObject(message.timestampSplit, options); - if (options.oneofs) - object.split = "timestampSplit"; - } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.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.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - 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.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - object.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.toObject(message.stratifiedSplit, options); - if (options.oneofs) - object.split = "stratifiedSplit"; + 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 InputDataConfig to JSON. + * Converts this ListEndpointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance * @returns {Object.} JSON object */ - InputDataConfig.prototype.toJSON = function toJSON() { + ListEndpointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InputDataConfig; + return ListEndpointsResponse; })(); - v1beta1.FractionSplit = (function() { + v1beta1.UpdateEndpointRequest = (function() { /** - * Properties of a FractionSplit. + * Properties of an UpdateEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFractionSplit - * @property {number|null} [trainingFraction] FractionSplit trainingFraction - * @property {number|null} [validationFraction] FractionSplit validationFraction - * @property {number|null} [testFraction] FractionSplit testFraction + * @interface IUpdateEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IEndpoint|null} [endpoint] UpdateEndpointRequest endpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEndpointRequest updateMask */ /** - * Constructs a new FractionSplit. + * Constructs a new UpdateEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FractionSplit. - * @implements IFractionSplit + * @classdesc Represents an UpdateEndpointRequest. + * @implements IUpdateEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set */ - function FractionSplit(properties) { + function UpdateEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176218,101 +176349,88 @@ } /** - * FractionSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit - * @instance - */ - FractionSplit.prototype.trainingFraction = 0; - - /** - * FractionSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * UpdateEndpointRequest endpoint. + * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @instance */ - FractionSplit.prototype.validationFraction = 0; + UpdateEndpointRequest.prototype.endpoint = null; /** - * FractionSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * UpdateEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @instance */ - FractionSplit.prototype.testFraction = 0; + UpdateEndpointRequest.prototype.updateMask = null; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new UpdateEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest instance */ - FractionSplit.create = function create(properties) { - return new FractionSplit(properties); + UpdateEndpointRequest.create = function create(properties) { + return new UpdateEndpointRequest(properties); }; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.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.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit 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 */ - FractionSplit.encode = function encode(message, writer) { + UpdateEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + 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 FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.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.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit 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 */ - FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes an UpdateEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @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.FractionSplit} FractionSplit + * @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 */ - FractionSplit.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.FractionSplit(); + 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.trainingFraction = reader.double(); + message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); break; case 2: - message.validationFraction = reader.double(); - break; - case 3: - message.testFraction = reader.double(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -176323,126 +176441,126 @@ }; /** - * Decodes a FractionSplit 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.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit + * @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 */ - FractionSplit.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 FractionSplit message. + * Verifies an UpdateEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @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 */ - FractionSplit.verify = function verify(message) { + UpdateEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number 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; + } return null; }; /** - * Creates a FractionSplit 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.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest */ - FractionSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FractionSplit) + UpdateEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); + 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); + } return message; }; /** - * Creates a plain object from a FractionSplit 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.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FractionSplit} message FractionSplit + * @param {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} message UpdateEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FractionSplit.toObject = function toObject(message, options) { + UpdateEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; + object.endpoint = null; + object.updateMask = null; } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + 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 FractionSplit to JSON. + * Converts this UpdateEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @instance * @returns {Object.} JSON object */ - FractionSplit.prototype.toJSON = function toJSON() { + UpdateEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FractionSplit; + return UpdateEndpointRequest; })(); - v1beta1.FilterSplit = (function() { + v1beta1.DeleteEndpointRequest = (function() { /** - * Properties of a FilterSplit. + * Properties of a DeleteEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFilterSplit - * @property {string|null} [trainingFilter] FilterSplit trainingFilter - * @property {string|null} [validationFilter] FilterSplit validationFilter - * @property {string|null} [testFilter] FilterSplit testFilter + * @interface IDeleteEndpointRequest + * @property {string|null} [name] DeleteEndpointRequest name */ /** - * Constructs a new FilterSplit. + * Constructs a new DeleteEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FilterSplit. - * @implements IFilterSplit + * @classdesc Represents a DeleteEndpointRequest. + * @implements IDeleteEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set */ - function FilterSplit(properties) { + function DeleteEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176450,101 +176568,75 @@ } /** - * FilterSplit trainingFilter. - * @member {string} trainingFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit - * @instance - */ - FilterSplit.prototype.trainingFilter = ""; - - /** - * FilterSplit validationFilter. - * @member {string} validationFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit - * @instance - */ - FilterSplit.prototype.validationFilter = ""; - - /** - * FilterSplit testFilter. - * @member {string} testFilter - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * DeleteEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @instance */ - FilterSplit.prototype.testFilter = ""; + DeleteEndpointRequest.prototype.name = ""; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new DeleteEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest instance */ - FilterSplit.create = function create(properties) { - return new FilterSplit(properties); + DeleteEndpointRequest.create = function create(properties) { + return new DeleteEndpointRequest(properties); }; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode + * @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 */ - FilterSplit.encode = function encode(message, writer) { + DeleteEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); - if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); - if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. + * 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.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode + * @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 */ - FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @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.FilterSplit} FilterSplit + * @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 */ - FilterSplit.decode = function decode(reader, length) { + 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.FilterSplit(); + 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.trainingFilter = reader.string(); - break; - case 2: - message.validationFilter = reader.string(); - break; - case 3: - message.testFilter = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -176555,124 +176647,110 @@ }; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit + * @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 */ - FilterSplit.decodeDelimited = function decodeDelimited(reader) { + DeleteEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilterSplit message. + * Verifies a DeleteEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @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 */ - FilterSplit.verify = function verify(message) { + DeleteEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - if (!$util.isString(message.trainingFilter)) - return "trainingFilter: string expected"; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - if (!$util.isString(message.validationFilter)) - return "validationFilter: string expected"; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - if (!$util.isString(message.testFilter)) - return "testFilter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FilterSplit 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest */ - FilterSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FilterSplit) + DeleteEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); - if (object.trainingFilter != null) - message.trainingFilter = String(object.trainingFilter); - if (object.validationFilter != null) - message.validationFilter = String(object.validationFilter); - if (object.testFilter != null) - message.testFilter = String(object.testFilter); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FilterSplit} message FilterSplit + * @param {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} message DeleteEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilterSplit.toObject = function toObject(message, options) { + DeleteEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFilter = ""; - object.validationFilter = ""; - object.testFilter = ""; - } - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - object.trainingFilter = message.trainingFilter; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - object.validationFilter = message.validationFilter; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - object.testFilter = message.testFilter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FilterSplit to JSON. + * Converts this DeleteEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FilterSplit + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest * @instance * @returns {Object.} JSON object */ - FilterSplit.prototype.toJSON = function toJSON() { + DeleteEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FilterSplit; + return DeleteEndpointRequest; })(); - v1beta1.PredefinedSplit = (function() { + v1beta1.DeployModelRequest = (function() { /** - * Properties of a PredefinedSplit. + * Properties of a DeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredefinedSplit - * @property {string|null} [key] PredefinedSplit key + * @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 PredefinedSplit. + * Constructs a new DeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredefinedSplit. - * @implements IPredefinedSplit + * @classdesc Represents a DeployModelRequest. + * @implements IDeployModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set */ - function PredefinedSplit(properties) { + function DeployModelRequest(properties) { + this.trafficSplit = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176680,75 +176758,121 @@ } /** - * PredefinedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * DeployModelRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance */ - PredefinedSplit.prototype.key = ""; + DeployModelRequest.prototype.endpoint = ""; /** - * Creates a new PredefinedSplit instance using the specified properties. + * DeployModelRequest deployedModel. + * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @instance + */ + DeployModelRequest.prototype.deployedModel = null; + + /** + * DeployModelRequest trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @instance + */ + DeployModelRequest.prototype.trafficSplit = $util.emptyObject; + + /** + * Creates a new DeployModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest instance */ - PredefinedSplit.create = function create(properties) { - return new PredefinedSplit(properties); + DeployModelRequest.create = function create(properties) { + return new DeployModelRequest(properties); }; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.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.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit 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 */ - PredefinedSplit.encode = function encode(message, writer) { + DeployModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + 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 PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.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.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit 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 */ - PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a DeployModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @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.PredefinedSplit} PredefinedSplit + * @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 */ - PredefinedSplit.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.PredefinedSplit(); + 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.key = reader.string(); + message.endpoint = reader.string(); + break; + case 2: + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + 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; break; default: reader.skipType(tag & 7); @@ -176759,110 +176883,144 @@ }; /** - * Decodes a PredefinedSplit 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.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit + * @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 */ - PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { + DeployModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredefinedSplit message. + * Verifies a DeployModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @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 */ - PredefinedSplit.verify = function verify(message) { + DeployModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string 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.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"; + } return null; }; /** - * Creates a PredefinedSplit 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.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest */ - PredefinedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredefinedSplit) + DeployModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); - if (object.key != null) - message.key = String(object.key); + 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.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 a PredefinedSplit 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.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PredefinedSplit} message PredefinedSplit + * @param {google.cloud.aiplatform.v1beta1.DeployModelRequest} message DeployModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredefinedSplit.toObject = function toObject(message, options) { + DeployModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (options.objects || options.defaults) + object.trafficSplit = {}; + if (options.defaults) { + object.endpoint = ""; + object.deployedModel = null; + } + 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]]; + } return object; }; /** - * Converts this PredefinedSplit to JSON. + * Converts this DeployModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance * @returns {Object.} JSON object */ - PredefinedSplit.prototype.toJSON = function toJSON() { + DeployModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PredefinedSplit; + return DeployModelRequest; })(); - v1beta1.TimestampSplit = (function() { + v1beta1.DeployModelResponse = (function() { /** - * Properties of a TimestampSplit. + * Properties of a DeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITimestampSplit - * @property {number|null} [trainingFraction] TimestampSplit trainingFraction - * @property {number|null} [validationFraction] TimestampSplit validationFraction - * @property {number|null} [testFraction] TimestampSplit testFraction - * @property {string|null} [key] TimestampSplit key + * @interface IDeployModelResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelResponse deployedModel */ /** - * Constructs a new TimestampSplit. + * Constructs a new DeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TimestampSplit. - * @implements ITimestampSplit + * @classdesc Represents a DeployModelResponse. + * @implements IDeployModelResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set */ - function TimestampSplit(properties) { + function DeployModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176870,114 +177028,75 @@ } /** - * TimestampSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.trainingFraction = 0; - - /** - * TimestampSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.validationFraction = 0; - - /** - * TimestampSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.testFraction = 0; - - /** - * TimestampSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * DeployModelResponse deployedModel. + * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @instance */ - TimestampSplit.prototype.key = ""; + DeployModelResponse.prototype.deployedModel = null; /** - * Creates a new TimestampSplit instance using the specified properties. + * Creates a new DeployModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse instance */ - TimestampSplit.create = function create(properties) { - return new TimestampSplit(properties); + DeployModelResponse.create = function create(properties) { + return new DeployModelResponse(properties); }; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @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 */ - TimestampSplit.encode = function encode(message, writer) { + DeployModelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + 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; }; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. + * 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.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @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 */ - TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a DeployModelResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @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.TimestampSplit} TimestampSplit + * @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 */ - TimestampSplit.decode = function decode(reader, length) { + 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.TimestampSplit(); + 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.trainingFraction = reader.double(); - break; - case 2: - message.validationFraction = reader.double(); - break; - case 3: - message.testFraction = reader.double(); - break; - case 4: - message.key = reader.string(); + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -176988,135 +177107,112 @@ }; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @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 */ - TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + DeployModelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampSplit message. + * Verifies a DeployModelResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @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 */ - TimestampSplit.verify = function verify(message) { + DeployModelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: 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; + } return null; }; /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse */ - TimestampSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TimestampSplit) + DeployModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + 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; }; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.TimestampSplit} message TimestampSplit + * @param {google.cloud.aiplatform.v1beta1.DeployModelResponse} message DeployModelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampSplit.toObject = function toObject(message, options) { + DeployModelResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; - } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + 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; }; /** - * Converts this TimestampSplit to JSON. + * Converts this DeployModelResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @instance * @returns {Object.} JSON object */ - TimestampSplit.prototype.toJSON = function toJSON() { + DeployModelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimestampSplit; + return DeployModelResponse; })(); - v1beta1.StratifiedSplit = (function() { + v1beta1.DeployModelOperationMetadata = (function() { /** - * Properties of a StratifiedSplit. + * Properties of a DeployModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStratifiedSplit - * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction - * @property {number|null} [validationFraction] StratifiedSplit validationFraction - * @property {number|null} [testFraction] StratifiedSplit testFraction - * @property {string|null} [key] StratifiedSplit key + * @interface IDeployModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployModelOperationMetadata genericMetadata */ /** - * Constructs a new StratifiedSplit. + * Constructs a new DeployModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StratifiedSplit. - * @implements IStratifiedSplit + * @classdesc Represents a DeployModelOperationMetadata. + * @implements IDeployModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set */ - function StratifiedSplit(properties) { + function DeployModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177124,114 +177220,75 @@ } /** - * StratifiedSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.trainingFraction = 0; - - /** - * StratifiedSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.validationFraction = 0; - - /** - * StratifiedSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.testFraction = 0; - - /** - * StratifiedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * DeployModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @instance */ - StratifiedSplit.prototype.key = ""; + DeployModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata instance */ - StratifiedSplit.create = function create(properties) { - return new StratifiedSplit(properties); + DeployModelOperationMetadata.create = function create(properties) { + return new DeployModelOperationMetadata(properties); }; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.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.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit 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 */ - StratifiedSplit.encode = function encode(message, writer) { + DeployModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + 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 StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.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.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit 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 */ - StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @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.StratifiedSplit} StratifiedSplit + * @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 */ - StratifiedSplit.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.StratifiedSplit(); + 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.trainingFraction = reader.double(); - break; - case 2: - message.validationFraction = reader.double(); - break; - case 3: - message.testFraction = reader.double(); - break; - case 4: - message.key = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -177242,161 +177299,115 @@ }; /** - * Decodes a StratifiedSplit 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.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit + * @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 */ - StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { + DeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StratifiedSplit message. + * Verifies a DeployModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @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 */ - StratifiedSplit.verify = function verify(message) { + DeployModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: 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 a StratifiedSplit 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.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata */ - StratifiedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StratifiedSplit) + DeployModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + 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); + } return message; }; /** - * Creates a plain object from a StratifiedSplit 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.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.StratifiedSplit} message StratifiedSplit + * @param {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} message DeployModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StratifiedSplit.toObject = function toObject(message, options) { + DeployModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; - } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + 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 StratifiedSplit to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @instance * @returns {Object.} JSON object */ - StratifiedSplit.prototype.toJSON = function toJSON() { + DeployModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StratifiedSplit; - })(); - - /** - * PipelineState enum. - * @name google.cloud.aiplatform.v1beta1.PipelineState - * @enum {number} - * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value - * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value - * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value - * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value - * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value - * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value - * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value - * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value - * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value - */ - v1beta1.PipelineState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; - values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; - values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; - values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; - values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; - values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; - values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; - values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; - return values; + return DeployModelOperationMetadata; })(); - v1beta1.DeployedIndexRef = (function() { + v1beta1.UndeployModelRequest = (function() { /** - * Properties of a DeployedIndexRef. + * Properties of an UndeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexRef - * @property {string|null} [indexEndpoint] DeployedIndexRef indexEndpoint - * @property {string|null} [deployedIndexId] DeployedIndexRef deployedIndexId + * @interface IUndeployModelRequest + * @property {string|null} [endpoint] UndeployModelRequest endpoint + * @property {string|null} [deployedModelId] UndeployModelRequest deployedModelId + * @property {Object.|null} [trafficSplit] UndeployModelRequest trafficSplit */ /** - * Constructs a new DeployedIndexRef. + * Constructs a new UndeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexRef. - * @implements IDeployedIndexRef + * @classdesc Represents an UndeployModelRequest. + * @implements IUndeployModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set */ - function DeployedIndexRef(properties) { + function UndeployModelRequest(properties) { + this.trafficSplit = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177404,88 +177415,121 @@ } /** - * DeployedIndexRef indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * UndeployModelRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance */ - DeployedIndexRef.prototype.indexEndpoint = ""; + UndeployModelRequest.prototype.endpoint = ""; /** - * DeployedIndexRef deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * UndeployModelRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance */ - DeployedIndexRef.prototype.deployedIndexId = ""; + UndeployModelRequest.prototype.deployedModelId = ""; /** - * Creates a new DeployedIndexRef instance using the specified properties. + * UndeployModelRequest trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @instance + */ + UndeployModelRequest.prototype.trafficSplit = $util.emptyObject; + + /** + * Creates a new UndeployModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest instance */ - DeployedIndexRef.create = function create(properties) { - return new DeployedIndexRef(properties); + UndeployModelRequest.create = function create(properties) { + return new UndeployModelRequest(properties); }; /** - * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.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.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef 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 */ - DeployedIndexRef.encode = function encode(message, writer) { + UndeployModelRequest.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.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 DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.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.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef 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 */ - DeployedIndexRef.encodeDelimited = function encodeDelimited(message, writer) { + UndeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * Decodes an UndeployModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @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.DeployedIndexRef} DeployedIndexRef + * @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 */ - DeployedIndexRef.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.DeployedIndexRef(); + 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.indexEndpoint = reader.string(); + message.endpoint = reader.string(); break; case 2: - message.deployedIndexId = reader.string(); + message.deployedModelId = reader.string(); + 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; break; default: reader.skipType(tag & 7); @@ -177496,131 +177540,138 @@ }; /** - * Decodes a DeployedIndexRef 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.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef + * @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 */ - DeployedIndexRef.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 DeployedIndexRef message. + * Verifies an UndeployModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @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 */ - DeployedIndexRef.verify = function verify(message) { + UndeployModelRequest.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.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"; + } return null; }; /** - * Creates a DeployedIndexRef 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.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest */ - DeployedIndexRef.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef) + UndeployModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest) 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.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 DeployedIndexRef 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.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexRef} message DeployedIndexRef + * @param {google.cloud.aiplatform.v1beta1.UndeployModelRequest} message UndeployModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexRef.toObject = function toObject(message, options) { + UndeployModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.trafficSplit = {}; if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; + 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]]; } - 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 DeployedIndexRef to JSON. + * Converts this UndeployModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance * @returns {Object.} JSON object */ - DeployedIndexRef.prototype.toJSON = function toJSON() { + UndeployModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedIndexRef; + return UndeployModelRequest; })(); - v1beta1.Endpoint = (function() { + v1beta1.UndeployModelResponse = (function() { /** - * Properties of an Endpoint. + * Properties of an UndeployModelResponse. * @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 + * @interface IUndeployModelResponse */ /** - * Constructs a new Endpoint. + * Constructs a new UndeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Endpoint. - * @implements IEndpoint + * @classdesc Represents an UndeployModelResponse. + * @implements IUndeployModelResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set */ - function Endpoint(properties) { - this.deployedModels = []; - this.trafficSplit = {}; - this.labels = {}; + function UndeployModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177628,193 +177679,491 @@ } /** - * Endpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance + * Creates a new UndeployModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse instance */ - Endpoint.prototype.name = ""; + UndeployModelResponse.create = function create(properties) { + return new UndeployModelResponse(properties); + }; /** - * Endpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance + * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @static + * @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 */ - Endpoint.prototype.displayName = ""; + UndeployModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Endpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance + * 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.UndeployModelResponse + * @static + * @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 */ - Endpoint.prototype.description = ""; + UndeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Endpoint deployedModels. - * @member {Array.} deployedModels - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * Decodes an UndeployModelResponse message from the specified reader or buffer. + * @function decode + * @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.UndeployModelResponse} UndeployModelResponse + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UndeployModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UndeployModelResponse message. + * @function verify + * @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 + */ + UndeployModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + */ + UndeployModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); + }; + + /** + * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployModelResponse} message UndeployModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UndeployModelResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this UndeployModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @instance + * @returns {Object.} JSON object */ - Endpoint.prototype.deployedModels = $util.emptyArray; + UndeployModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UndeployModelResponse; + })(); + + v1beta1.UndeployModelOperationMetadata = (function() { /** - * Endpoint trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * Properties of an UndeployModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployModelOperationMetadata genericMetadata + */ + + /** + * Constructs a new UndeployModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployModelOperationMetadata. + * @implements IUndeployModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set + */ + function UndeployModelOperationMetadata(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]]; + } + + /** + * UndeployModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @instance */ - Endpoint.prototype.trafficSplit = $util.emptyObject; + UndeployModelOperationMetadata.prototype.genericMetadata = null; /** - * Endpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata instance + */ + UndeployModelOperationMetadata.create = function create(properties) { + return new UndeployModelOperationMetadata(properties); + }; + + /** + * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @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 + */ + UndeployModelOperationMetadata.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 UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @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 + */ + UndeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @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) { + 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(); + 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 an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UndeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UndeployModelOperationMetadata message. + * @function verify + * @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 + */ + UndeployModelOperationMetadata.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 UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + */ + UndeployModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata) + return object; + 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 UndeployModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} message UndeployModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UndeployModelOperationMetadata.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 UndeployModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @instance + * @returns {Object.} JSON object */ - Endpoint.prototype.etag = ""; + UndeployModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UndeployModelOperationMetadata; + })(); + + v1beta1.EntityType = (function() { /** - * Endpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * Properties of an EntityType. + * @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 + */ + + /** + * Constructs a new EntityType. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an EntityType. + * @implements IEntityType + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set + */ + function EntityType(properties) { + 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]]; + } + + /** + * EntityType name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.labels = $util.emptyObject; + EntityType.prototype.name = ""; /** - * Endpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.createTime = null; + EntityType.prototype.description = ""; /** - * Endpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.updateTime = null; + EntityType.prototype.createTime = null; /** - * Endpoint encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.encryptionSpec = null; + EntityType.prototype.updateTime = null; /** - * Endpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.network = ""; + EntityType.prototype.labels = $util.emptyObject; /** - * Endpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.enablePrivateServiceConnect = false; + EntityType.prototype.etag = ""; /** - * Endpoint modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * EntityType monitoringConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - Endpoint.prototype.modelDeploymentMonitoringJob = ""; + EntityType.prototype.monitoringConfig = null; /** - * Creates a new Endpoint instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint instance + * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType instance */ - Endpoint.create = function create(properties) { - return new Endpoint(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.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.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint 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 */ - Endpoint.encode = function encode(message, writer) { + EntityType.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(); + 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 8, wireType 2 =*/66).fork()).ldelim(); + $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 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); + $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 Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.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.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint 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 */ - Endpoint.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Endpoint message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @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.Endpoint} Endpoint + * @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 */ - Endpoint.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.Endpoint(), key, value; + 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) { @@ -177822,42 +178171,15 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); + message.description = reader.string(); break; case 3: - message.description = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); 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; + 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; @@ -177879,23 +178201,11 @@ } 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(); + case 7: + message.etag = reader.string(); break; - case 14: - message.modelDeploymentMonitoringJob = reader.string(); + case 8: + message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -177906,69 +178216,38 @@ }; /** - * Decodes an Endpoint 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.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint + * @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 */ - Endpoint.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Endpoint message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @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 */ - Endpoint.verify = function verify(message) { + EntityType.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 (error) - return "deployedModels." + 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) @@ -177979,203 +178258,147 @@ if (error) return "updateTime." + error; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + 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 "encryptionSpec." + error; + return "monitoringConfig." + 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"; return null; }; /** - * Creates an Endpoint 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType */ - Endpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Endpoint) + EntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EntityType) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Endpoint(); + var message = new $root.google.cloud.aiplatform.v1beta1.EntityType(); 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.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"); + 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.Endpoint.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.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.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); } - 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); return message; }; /** - * Creates a plain object from an Endpoint 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.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.Endpoint} message Endpoint + * @param {google.cloud.aiplatform.v1beta1.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Endpoint.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedModels = []; - if (options.objects || options.defaults) { - object.trafficSplit = {}; + 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.encryptionSpec = null; - object.network = ""; - object.modelDeploymentMonitoringJob = ""; - object.enablePrivateServiceConnect = false; + object.etag = ""; + object.monitoringConfig = 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.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.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.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 Endpoint to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance * @returns {Object.} JSON object */ - Endpoint.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Endpoint; + return EntityType; })(); - v1beta1.DeployedModel = (function() { + v1beta1.FeaturestoreMonitoringConfig = (function() { /** - * Properties of a DeployedModel. + * Properties of a FeaturestoreMonitoringConfig. * @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} [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 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 DeployedModel. + * Constructs a new FeaturestoreMonitoringConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedModel. - * @implements IDeployedModel + * @classdesc Represents a FeaturestoreMonitoringConfig. + * @implements IFeaturestoreMonitoringConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set */ - function DeployedModel(properties) { + function FeaturestoreMonitoringConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178183,219 +178406,114 @@ } /** - * DeployedModel dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * FeaturestoreMonitoringConfig snapshotAnalysis. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null|undefined} snapshotAnalysis + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - DeployedModel.prototype.dedicatedResources = null; + FeaturestoreMonitoringConfig.prototype.snapshotAnalysis = null; /** - * DeployedModel automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * FeaturestoreMonitoringConfig importFeaturesAnalysis. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null|undefined} importFeaturesAnalysis + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - DeployedModel.prototype.automaticResources = null; + FeaturestoreMonitoringConfig.prototype.importFeaturesAnalysis = null; /** - * DeployedModel id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * FeaturestoreMonitoringConfig numericalThresholdConfig. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} numericalThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - DeployedModel.prototype.id = ""; + FeaturestoreMonitoringConfig.prototype.numericalThresholdConfig = null; /** - * DeployedModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * FeaturestoreMonitoringConfig categoricalThresholdConfig. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} categoricalThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - DeployedModel.prototype.model = ""; + FeaturestoreMonitoringConfig.prototype.categoricalThresholdConfig = null; /** - * DeployedModel displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig instance */ - DeployedModel.prototype.displayName = ""; + FeaturestoreMonitoringConfig.create = function create(properties) { + return new FeaturestoreMonitoringConfig(properties); + }; /** - * 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.DeployedModel - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel instance - */ - DeployedModel.create = function create(properties) { - return new DeployedModel(properties); - }; - - /** - * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.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.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel 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 */ - DeployedModel.encode = function encode(message, writer) { + FeaturestoreMonitoringConfig.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.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 DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.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.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel 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 */ - DeployedModel.encodeDelimited = function encodeDelimited(message, writer) { + FeaturestoreMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @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.DeployedModel} DeployedModel + * @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 */ - DeployedModel.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.DeployedModel(); + 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 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.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.decode(reader, reader.uint32()); break; case 2: - message.model = reader.string(); + message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.decode(reader, reader.uint32()); 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(); + message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); break; - case 14: - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.decode(reader, reader.uint32()); + case 4: + message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -178406,858 +178524,1041 @@ }; /** - * Decodes a DeployedModel 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.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel + * @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 */ - DeployedModel.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 DeployedModel message. + * Verifies a FeaturestoreMonitoringConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @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 */ - DeployedModel.verify = function verify(message) { + FeaturestoreMonitoringConfig.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.snapshotAnalysis != null && message.hasOwnProperty("snapshotAnalysis")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify(message.snapshotAnalysis); + if (error) + return "snapshotAnalysis." + 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.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 (message.importFeaturesAnalysis != null && message.hasOwnProperty("importFeaturesAnalysis")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify(message.importFeaturesAnalysis); if (error) - return "createTime." + error; + return "importFeaturesAnalysis." + error; } - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); + if (message.numericalThresholdConfig != null && message.hasOwnProperty("numericalThresholdConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.numericalThresholdConfig); if (error) - return "explanationSpec." + error; + return "numericalThresholdConfig." + 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.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.categoricalThresholdConfig); if (error) - return "privateEndpoints." + error; + return "categoricalThresholdConfig." + error; } return null; }; /** - * Creates a DeployedModel 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.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig */ - DeployedModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModel) + FeaturestoreMonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) 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); + 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.id != null) - message.id = String(object.id); - if (object.model != null) - message.model = String(object.model); - 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.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.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.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.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); + 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 DeployedModel 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.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedModel} message DeployedModel + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedModel.toObject = function toObject(message, options) { + FeaturestoreMonitoringConfig.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; - } - 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.snapshotAnalysis = null; + object.importFeaturesAnalysis = null; + object.numericalThresholdConfig = null; + object.categoricalThresholdConfig = null; } - 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.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 DeployedModel to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance * @returns {Object.} JSON object */ - DeployedModel.prototype.toJSON = function toJSON() { + FeaturestoreMonitoringConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedModel; - })(); - - v1beta1.PrivateEndpoints = (function() { + FeaturestoreMonitoringConfig.SnapshotAnalysis = (function() { - /** - * Properties of a PrivateEndpoints. - * @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 - */ + /** + * 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 PrivateEndpoints. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PrivateEndpoints. - * @implements IPrivateEndpoints - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set - */ - function PrivateEndpoints(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]]; - } + /** + * 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]]; + } - /** - * PrivateEndpoints predictHttpUri. - * @member {string} predictHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.predictHttpUri = ""; + /** + * SnapshotAnalysis disabled. + * @member {boolean} disabled + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.disabled = false; - /** - * PrivateEndpoints explainHttpUri. - * @member {string} explainHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.explainHttpUri = ""; + /** + * SnapshotAnalysis monitoringInterval. + * @member {google.protobuf.IDuration|null|undefined} monitoringInterval + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.monitoringInterval = null; - /** - * PrivateEndpoints healthHttpUri. - * @member {string} healthHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.healthHttpUri = ""; + /** + * SnapshotAnalysis monitoringIntervalDays. + * @member {number} monitoringIntervalDays + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.monitoringIntervalDays = 0; - /** - * PrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.serviceAttachment = ""; + /** + * SnapshotAnalysis stalenessDays. + * @member {number} stalenessDays + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.stalenessDays = 0; - /** - * Creates a new PrivateEndpoints instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints instance - */ - PrivateEndpoints.create = function create(properties) { - return new PrivateEndpoints(properties); - }; + /** + * 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 PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @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 - */ - PrivateEndpoints.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); - return writer; - }; + /** + * 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 PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @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 - */ - PrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 PrivateEndpoints message from the specified reader or buffer. - * @function decode - * @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.PrivateEndpoints} PrivateEndpoints - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - 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); - break; + /** + * 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 PrivateEndpoints message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - PrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PrivateEndpoints message. - * @function verify - * @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 - */ - PrivateEndpoints.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"; - return null; - }; - - /** - * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints - */ - PrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints) - 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); - return message; - }; + return message; + }; - /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.PrivateEndpoints} message PrivateEndpoints - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PrivateEndpoints.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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; - }; + /** + * 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()); + }; - /** - * Converts this PrivateEndpoints to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - * @returns {Object.} JSON object - */ - PrivateEndpoints.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; + }; - return PrivateEndpoints; - })(); + /** + * 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; + }; - /** - * 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; - })(); + /** + * 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; + }; - v1beta1.ModelDeploymentMonitoringJob = (function() { + /** + * 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); + }; - /** - * 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 {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 - */ + return SnapshotAnalysis; + })(); - /** - * 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]]; - } + FeaturestoreMonitoringConfig.ImportFeaturesAnalysis = (function() { - /** - * ModelDeploymentMonitoringJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.name = ""; + /** + * 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 + */ - /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; + /** + * 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]]; + } - /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; + /** + * ImportFeaturesAnalysis state. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State} state + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @instance + */ + ImportFeaturesAnalysis.prototype.state = 0; - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.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; - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 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); + }; - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + /** + * 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; + }; - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + /** + * 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(); + }; - /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + /** + * 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; + }; - /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + /** + * 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()); + }; - /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + /** + * 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; + }; - /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = 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": + 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; + }; - /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + /** + * 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; + }; - /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + /** + * 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); + }; - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; + /** + * 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; + })(); - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + /** + * 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]]; + } + + /** + * 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; + }; + + /** + * 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.Event = (function() { /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance + * Properties of an Event. + * @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 */ - ModelDeploymentMonitoringJob.prototype.createTime = null; /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance + * Constructs a new Event. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an Event. + * @implements IEvent + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; + function Event(properties) { + 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]]; + } /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * Event artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + Event.prototype.artifact = ""; /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * Event execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + Event.prototype.execution = ""; /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * Event eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + Event.prototype.eventTime = null; /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * Event type. + * @member {google.cloud.aiplatform.v1beta1.Event.Type} type + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + Event.prototype.type = 0; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * Event labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + Event.prototype.labels = $util.emptyObject; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new Event instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Event} Event instance */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + Event.create = function create(properties) { + return new Event(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.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.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob 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 */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + Event.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.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 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(); + 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 ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.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.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob 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 */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + Event.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @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.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @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 */ - ModelDeploymentMonitoringJob.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.ModelDeploymentMonitoringJob(), key, value; + 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.name = reader.string(); + message.artifact = reader.string(); break; case 2: - message.displayName = reader.string(); + message.execution = reader.string(); break; case 3: - message.endpoint = reader.string(); + message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 4: - message.state = reader.int32(); + message.type = reader.int32(); break; case 5: - message.scheduleState = 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())); - 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; @@ -179279,27 +179580,6 @@ } 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; @@ -179309,116 +179589,52 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @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 */ - ModelDeploymentMonitoringJob.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 ModelDeploymentMonitoringJob message. + * Verifies an Event message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @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 */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + Event.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: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { + 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 "eventTime." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { default: - return "scheduleState: enum value expected"; + return "type: enum value expected"; case 0: case 1: case 2: - case 3: break; } - 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 (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"; @@ -179427,360 +179643,151 @@ 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. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.Event} Event */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + Event.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Event) 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; + 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.scheduleState) { - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + switch (object.type) { + case "TYPE_UNSPECIFIED": case 0: - message.scheduleState = 0; + message.type = 0; break; - case "PENDING": + case "INPUT": case 1: - message.scheduleState = 1; + message.type = 1; break; - case "OFFLINE": + case "OUTPUT": case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; + message.type = 2; break; } - 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]); - } - } - 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"); + 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.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; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob 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.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1beta1.Event} message Event * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + Event.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; - } - 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.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.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); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this Event to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + Event.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * Type enum. + * @name google.cloud.aiplatform.v1beta1.Event.Type * @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 + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} INPUT=1 INPUT value + * @property {number} OUTPUT=2 OUTPUT value */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + Event.Type = (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; + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INPUT"] = 1; + values[valuesById[2] = "OUTPUT"] = 2; return values; })(); - return ModelDeploymentMonitoringJob; + return Event; })(); - v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { + v1beta1.Execution = (function() { /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. + * Properties of an Execution. * @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 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 ModelDeploymentMonitoringBigQueryTable. + * Constructs a new Execution. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable + * @classdesc Represents an Execution. + * @implements IExecution * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set */ - function ModelDeploymentMonitoringBigQueryTable(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) @@ -179788,101 +179795,225 @@ } /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * Execution name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; + Execution.prototype.name = ""; /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * Execution displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; + Execution.prototype.displayName = ""; /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * Execution state. + * @member {google.cloud.aiplatform.v1beta1.Execution.State} state + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + Execution.prototype.state = 0; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * 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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution instance */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + Execution.create = function create(properties) { + return new Execution(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable 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 */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + Execution.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.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 ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable 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 */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + Execution.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @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.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @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 */ - ModelDeploymentMonitoringBigQueryTable.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.ModelDeploymentMonitoringBigQueryTable(); + 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.logSource = reader.int32(); + message.name = reader.string(); break; case 2: - message.logType = reader.int32(); + message.displayName = reader.string(); break; - case 3: - message.bigqueryTablePath = reader.string(); + 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); @@ -179893,193 +180024,293 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable 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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @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 */ - ModelDeploymentMonitoringBigQueryTable.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 ModelDeploymentMonitoringBigQueryTable message. + * Verifies an Execution message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @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 */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + Execution.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) { + 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 "logType: enum value expected"; + return "state: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: + case 5: + case 6: break; } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: 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.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 ModelDeploymentMonitoringBigQueryTable 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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + Execution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Execution) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - case "LOG_SOURCE_UNSPECIFIED": + 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.logSource = 0; + message.state = 0; break; - case "TRAINING": + case "NEW": case 1: - message.logSource = 1; + message.state = 1; break; - case "SERVING": + case "RUNNING": case 2: - message.logSource = 2; + message.state = 2; break; - } - switch (object.logType) { - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; + case "COMPLETE": + case 3: + message.state = 3; break; - case "PREDICT": - case 1: - message.logType = 1; + case "FAILED": + case 4: + message.state = 4; break; - case "EXPLAIN": - case 2: - message.logType = 2; + case "CACHED": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; break; } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + 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 ModelDeploymentMonitoringBigQueryTable 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.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1beta1.Execution} message Execution * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.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.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; + 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.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.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 ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this Execution to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + Execution.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 + * State enum. + * @name google.cloud.aiplatform.v1beta1.Execution.State * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value + * @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 */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + Execution.State = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; + 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 ModelDeploymentMonitoringBigQueryTable; + return Execution; })(); - v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1beta1.Feature = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of a Feature. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @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 ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new Feature. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents a Feature. + * @implements IFeature * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + 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) @@ -180087,289 +180318,231 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * Feature name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Feature * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; + Feature.prototype.name = ""; /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * Feature description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Feature * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; - - /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance - */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); - }; - - /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @static - * @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 - */ - ModelDeploymentMonitoringObjectiveConfig.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(); - return writer; - }; - - /** - * 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.ModelDeploymentMonitoringObjectiveConfig - * @static - * @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 - */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Feature.prototype.description = ""; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. - * @function decode - * @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.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Feature valueType. + * @member {google.cloud.aiplatform.v1beta1.Feature.ValueType} valueType + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - 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.ModelDeploymentMonitoringObjectiveConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deployedModelId = reader.string(); - break; - case 2: - message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Feature.prototype.valueType = 0; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Feature createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Feature.prototype.createTime = null; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. - * @function verify - * @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 + * Feature updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - ModelDeploymentMonitoringObjectiveConfig.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 (error) - return "objectiveConfig." + error; - } - return null; - }; + Feature.prototype.updateTime = null; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * Feature labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) - 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); - } - return message; - }; + Feature.prototype.labels = $util.emptyObject; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Feature etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = 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); - return object; - }; + Feature.prototype.etag = ""; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * Feature monitoringConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature * @instance - * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ModelDeploymentMonitoringObjectiveConfig; - })(); - - v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { + Feature.prototype.monitoringConfig = null; /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * Feature disableMonitoring. + * @member {boolean} disableMonitoring + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ + Feature.prototype.disableMonitoring = false; /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * Feature monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance */ - function ModelDeploymentMonitoringScheduleConfig(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]]; - } + Feature.prototype.monitoringStats = $util.emptyArray; /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * Feature monitoringStatsAnomalies. + * @member {Array.} monitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new Feature instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + Feature.create = function create(properties) { + return new Feature(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @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 */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + Feature.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); + 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 ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * 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.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @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 */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + Feature.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a Feature message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @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.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @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 */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + 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.ModelDeploymentMonitoringScheduleConfig(); + 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.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + 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); @@ -180380,417 +180553,305 @@ }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a Feature message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @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 */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + Feature.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a Feature message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @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 */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + Feature.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; - } - return null; - }; - - /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig - */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) - 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); - } - return message; - }; - - /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ModelDeploymentMonitoringScheduleConfig.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); - return object; - }; - - /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig - * @instance - * @returns {Object.} JSON object - */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ModelDeploymentMonitoringScheduleConfig; - })(); - - v1beta1.ModelMonitoringStatsAnomalies = (function() { - - /** - * Properties of a ModelMonitoringStatsAnomalies. - * @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 - */ - - /** - * Constructs a new ModelMonitoringStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; - 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]]; - } - - /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; - - /** - * 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.ModelMonitoringStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance - */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); - }; - - /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @static - * @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 - */ - ModelMonitoringStatsAnomalies.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(); - return writer; - }; - - /** - * 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.ModelMonitoringStatsAnomalies - * @static - * @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 - */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. - * @function decode - * @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.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies - * @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) { - 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(); - 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())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ModelMonitoringStatsAnomalies message. - * @function verify - * @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 - */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { + 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 "objective: enum value expected"; + 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.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 (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 "featureStats." + 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a Feature 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.Feature * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) + Feature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + 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.objective = 0; + message.valueType = 0; break; - case "RAW_FEATURE_SKEW": + case "BOOL": case 1: - message.objective = 1; + message.valueType = 1; break; - case "RAW_FEATURE_DRIFT": + case "BOOL_ARRAY": case 2: - message.objective = 2; + message.valueType = 2; break; - case "FEATURE_ATTRIBUTION_SKEW": + case "DOUBLE": case 3: - message.objective = 3; + message.valueType = 3; break; - case "FEATURE_ATTRIBUTION_DRIFT": + case "DOUBLE_ARRAY": case 4: - message.objective = 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.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]); + 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 ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from a Feature message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1beta1.Feature} message Feature * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + Feature.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; + if (options.arrays || options.defaults) { + object.monitoringStats = []; + object.monitoringStatsAnomalies = []; + } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; + 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.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 (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 ModelMonitoringStatsAnomalies to JSON. + * Converts this Feature to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + Feature.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { + Feature.MonitoringStatsAnomaly = (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 + * 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 FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies + * Constructs a new MonitoringStatsAnomaly. + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @classdesc Represents a MonitoringStatsAnomaly. + * @implements IMonitoringStatsAnomaly * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; + function MonitoringStatsAnomaly(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180798,117 +180859,88 @@ } /** - * 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 + * MonitoringStatsAnomaly objective. + * @member {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective} objective + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @instance */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + MonitoringStatsAnomaly.prototype.objective = 0; /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * MonitoringStatsAnomaly featureStatsAnomaly. + * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} featureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @instance */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + MonitoringStatsAnomaly.prototype.featureStatsAnomaly = null; /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * Creates a new MonitoringStatsAnomaly instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly instance */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); + MonitoringStatsAnomaly.create = function create(properties) { + return new MonitoringStatsAnomaly(properties); }; /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies 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 */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { + MonitoringStatsAnomaly.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(); + 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 FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies 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 */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + MonitoringStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @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 */ - FeatureHistoricStatsAnomalies.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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + 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.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()); + message.objective = reader.int32(); break; - case 5: - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); + case 2: + message.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -180919,143 +180951,168 @@ }; /** - * Decodes a FeatureHistoricStatsAnomalies 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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @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 */ - FeatureHistoricStatsAnomalies.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 FeatureHistoricStatsAnomalies message. + * Verifies a MonitoringStatsAnomaly message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @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 */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { + MonitoringStatsAnomaly.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; + 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 FeatureHistoricStatsAnomalies 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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + 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.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); + 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.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]); - } + 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 FeatureHistoricStatsAnomalies 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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies + * @param {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} message MonitoringStatsAnomaly * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { + MonitoringStatsAnomaly.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); + 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 FeatureHistoricStatsAnomalies to JSON. + * Converts this MonitoringStatsAnomaly to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @instance * @returns {Object.} JSON object */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { + MonitoringStatsAnomaly.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureHistoricStatsAnomalies; + /** + * 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; })(); - return ModelMonitoringStatsAnomalies; + /** + * 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; })(); v1beta1.FeatureStatsAnomaly = (function() { @@ -181388,292 +181445,227 @@ return FeatureStatsAnomaly; })(); - v1beta1.EndpointService = (function() { + v1beta1.IdMatcher = (function() { /** - * Constructs a new EndpointService service. + * Properties of an IdMatcher. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EndpointService - * @extends $protobuf.rpc.Service + * @interface IIdMatcher + * @property {Array.|null} [ids] IdMatcher ids + */ + + /** + * Constructs a new IdMatcher. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IdMatcher. + * @implements IIdMatcher * @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 + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set */ - function EndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function IdMatcher(properties) { + this.ids = []; + 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]]; } - (EndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EndpointService; + /** + * IdMatcher ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @instance + */ + IdMatcher.prototype.ids = $util.emptyArray; /** - * Creates new EndpointService service using the specified rpc implementation. + * Creates a new IdMatcher instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @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. + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher instance */ - EndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + IdMatcher.create = function create(properties) { + return new IdMatcher(properties); }; /** - * 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 + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @static + * @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 */ + IdMatcher.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]); + return writer; + }; /** - * 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 + * 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.IdMatcher + * @static + * @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 */ - 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" }); + IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes an IdMatcher message from the specified reader or buffer. + * @function decode + * @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.IdMatcher} IdMatcher + * @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) { + 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(); + 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()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ + IdMatcher.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies an IdMatcher message. + * @function verify + * @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 */ - 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" }); + IdMatcher.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"; + } + return null; + }; /** - * 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 + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher */ + IdMatcher.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IdMatcher) + 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]); + } + return message; + }; /** - * 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 + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @static + * @param {google.cloud.aiplatform.v1beta1.IdMatcher} message IdMatcher + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + IdMatcher.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]; + } + return object; + }; /** - * Calls ListEndpoints. - * @function listEndpoints - * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * Converts this IdMatcher to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @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 + * @returns {Object.} JSON object */ - 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" }); + IdMatcher.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; + return IdMatcher; })(); - v1beta1.CreateEndpointRequest = (function() { + v1beta1.FeatureSelector = (function() { /** - * Properties of a CreateEndpointRequest. + * Properties of a FeatureSelector. * @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 + * @interface IFeatureSelector + * @property {google.cloud.aiplatform.v1beta1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher */ /** - * Constructs a new CreateEndpointRequest. + * Constructs a new FeatureSelector. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEndpointRequest. - * @implements ICreateEndpointRequest + * @classdesc Represents a FeatureSelector. + * @implements IFeatureSelector * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set */ - function CreateEndpointRequest(properties) { + function FeatureSelector(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181681,101 +181673,75 @@ } /** - * 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 + * FeatureSelector idMatcher. + * @member {google.cloud.aiplatform.v1beta1.IIdMatcher|null|undefined} idMatcher + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @instance */ - CreateEndpointRequest.prototype.endpointId = ""; + FeatureSelector.prototype.idMatcher = null; /** - * Creates a new CreateEndpointRequest instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector instance */ - CreateEndpointRequest.create = function create(properties) { - return new CreateEndpointRequest(properties); + FeatureSelector.create = function create(properties) { + return new FeatureSelector(properties); }; /** - * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.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.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest 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 */ - CreateEndpointRequest.encode = function encode(message, writer) { + FeatureSelector.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.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 CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.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.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest 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 */ - CreateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @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.CreateEndpointRequest} CreateEndpointRequest + * @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 */ - CreateEndpointRequest.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.CreateEndpointRequest(); + 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: - 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(); + message.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -181786,129 +181752,120 @@ }; /** - * Decodes a CreateEndpointRequest 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.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest + * @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 */ - CreateEndpointRequest.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 CreateEndpointRequest message. + * Verifies a FeatureSelector message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @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 */ - CreateEndpointRequest.verify = function verify(message) { + FeatureSelector.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.idMatcher != null && message.hasOwnProperty("idMatcher")) { + var error = $root.google.cloud.aiplatform.v1beta1.IdMatcher.verify(message.idMatcher); if (error) - return "endpoint." + error; + return "idMatcher." + error; } - if (message.endpointId != null && message.hasOwnProperty("endpointId")) - if (!$util.isString(message.endpointId)) - return "endpointId: string expected"; return null; }; /** - * Creates a CreateEndpointRequest 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.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector */ - CreateEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest) + FeatureSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelector) return object; - 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); + 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); } - if (object.endpointId != null) - message.endpointId = String(object.endpointId); return message; }; /** - * Creates a plain object from a CreateEndpointRequest 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.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} message CreateEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.FeatureSelector} message FeatureSelector * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEndpointRequest.toObject = function toObject(message, options) { + FeatureSelector.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; + 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 CreateEndpointRequest to JSON. + * Converts this FeatureSelector to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @instance * @returns {Object.} JSON object */ - CreateEndpointRequest.prototype.toJSON = function toJSON() { + FeatureSelector.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEndpointRequest; + return FeatureSelector; })(); - v1beta1.CreateEndpointOperationMetadata = (function() { + v1beta1.Featurestore = (function() { /** - * Properties of a CreateEndpointOperationMetadata. + * Properties of a Featurestore. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEndpointOperationMetadata genericMetadata + * @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 CreateEndpointOperationMetadata. + * Constructs a new Featurestore. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEndpointOperationMetadata. - * @implements ICreateEndpointOperationMetadata + * @classdesc Represents a Featurestore. + * @implements IFeaturestore * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set */ - function CreateEndpointOperationMetadata(properties) { + function Featurestore(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181916,268 +181873,187 @@ } /** - * CreateEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * Featurestore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance */ - CreateEndpointOperationMetadata.prototype.genericMetadata = null; - - /** - * Creates a new CreateEndpointOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata instance - */ - CreateEndpointOperationMetadata.create = function create(properties) { - return new CreateEndpointOperationMetadata(properties); - }; - - /** - * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @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 - */ - CreateEndpointOperationMetadata.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 CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @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 - */ - CreateEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. - * @function decode - * @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.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata - * @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) { - 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(); - 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 CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - CreateEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Featurestore.prototype.name = ""; /** - * Verifies a CreateEndpointOperationMetadata message. - * @function verify - * @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 + * Featurestore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance */ - CreateEndpointOperationMetadata.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; - }; + Featurestore.prototype.createTime = null; /** - * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata + * Featurestore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance */ - CreateEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata) - 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); - } - return message; - }; + Featurestore.prototype.updateTime = null; /** - * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} message CreateEndpointOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Featurestore etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance */ - CreateEndpointOperationMetadata.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; - }; + Featurestore.prototype.etag = ""; /** - * Converts this CreateEndpointOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * Featurestore labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance - * @returns {Object.} JSON object */ - CreateEndpointOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateEndpointOperationMetadata; - })(); - - v1beta1.GetEndpointRequest = (function() { + Featurestore.prototype.labels = $util.emptyObject; /** - * Properties of a GetEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetEndpointRequest - * @property {string|null} [name] GetEndpointRequest name + * Featurestore onlineServingConfig. + * @member {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance */ + Featurestore.prototype.onlineServingConfig = null; /** - * Constructs a new GetEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetEndpointRequest. - * @implements IGetEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set + * Featurestore state. + * @member {google.cloud.aiplatform.v1beta1.Featurestore.State} state + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance */ - function GetEndpointRequest(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]]; - } + Featurestore.prototype.state = 0; /** - * GetEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * Featurestore encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance */ - GetEndpointRequest.prototype.name = ""; + Featurestore.prototype.encryptionSpec = null; /** - * Creates a new GetEndpointRequest instance using the specified properties. + * Creates a new Featurestore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore instance */ - GetEndpointRequest.create = function create(properties) { - return new GetEndpointRequest(properties); + Featurestore.create = function create(properties) { + return new Featurestore(properties); }; /** - * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.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.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest 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 */ - GetEndpointRequest.encode = function encode(message, writer) { + Featurestore.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(); return writer; }; /** - * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.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.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest 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 */ - GetEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + Featurestore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * Decodes a Featurestore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @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.GetEndpointRequest} GetEndpointRequest + * @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 */ - GetEndpointRequest.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.GetEndpointRequest(); + 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: 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); break; @@ -182187,390 +182063,761 @@ }; /** - * Decodes a GetEndpointRequest 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.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @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 */ - GetEndpointRequest.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 GetEndpointRequest message. + * Verifies a Featurestore message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @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 */ - GetEndpointRequest.verify = function verify(message) { + Featurestore.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 (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 GetEndpointRequest 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.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore */ - GetEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest) + Featurestore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest(); + 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 GetEndpointRequest 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.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.GetEndpointRequest} message GetEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.Featurestore} message Featurestore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEndpointRequest.toObject = function toObject(message, options) { + Featurestore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 GetEndpointRequest to JSON. + * Converts this Featurestore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance * @returns {Object.} JSON object */ - GetEndpointRequest.prototype.toJSON = function toJSON() { + Featurestore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEndpointRequest; - })(); - - v1beta1.ListEndpointsRequest = (function() { + Featurestore.OnlineServingConfig = (function() { - /** - * 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 - */ + /** + * 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 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]]; - } + /** + * 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]]; + } - /** - * ListEndpointsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.parent = ""; + /** + * OnlineServingConfig fixedNodeCount. + * @member {number} fixedNodeCount + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @instance + */ + OnlineServingConfig.prototype.fixedNodeCount = 0; - /** - * ListEndpointsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.filter = ""; + /** + * 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; - /** - * ListEndpointsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.pageSize = 0; + /** + * 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); + }; - /** - * ListEndpointsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.pageToken = ""; + /** + * 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; + }; - /** - * ListEndpointsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.readMask = null; + /** + * 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(); + }; - /** - * Creates a new ListEndpointsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest instance - */ - ListEndpointsRequest.create = function create(properties) { - return new ListEndpointsRequest(properties); - }; + /** + * 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; + }; - /** - * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @static - * @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 - */ - ListEndpointsRequest.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; - }; + /** + * 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; + })(); /** - * 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.ListEndpointsRequest - * @static - * @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 + * 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 */ - ListEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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.FeaturestoreOnlineServingService = (function() { /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. - * @function decode - * @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.ListEndpointsRequest} ListEndpointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * 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 */ - 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.ListEndpointsRequest(); - 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; - }; + function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeaturestoreOnlineServingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreOnlineServingService; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * @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. */ - ListEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); + FeaturestoreOnlineServingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Verifies a ListEndpointsRequest message. - * @function verify - * @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 + * 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 */ - ListEndpointsRequest.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 ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest + * 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 */ - ListEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest) - 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); - } - return message; - }; + 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 plain object from a ListEndpointsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} message ListEndpointsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - ListEndpointsRequest.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; - }; /** - * Converts this ListEndpointsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * 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 - * @returns {Object.} JSON object + * @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 */ - ListEndpointsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + 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" }); - return ListEndpointsRequest; + /** + * 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.ListEndpointsResponse = (function() { + v1beta1.ReadFeatureValuesRequest = (function() { /** - * Properties of a ListEndpointsResponse. + * Properties of a ReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEndpointsResponse - * @property {Array.|null} [endpoints] ListEndpointsResponse endpoints - * @property {string|null} [nextPageToken] ListEndpointsResponse nextPageToken + * @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 ListEndpointsResponse. + * Constructs a new ReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEndpointsResponse. - * @implements IListEndpointsResponse + * @classdesc Represents a ReadFeatureValuesRequest. + * @implements IReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set */ - function ListEndpointsResponse(properties) { - this.endpoints = []; + function ReadFeatureValuesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182578,91 +182825,101 @@ } /** - * ListEndpointsResponse endpoints. - * @member {Array.} endpoints - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * ReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @instance */ - ListEndpointsResponse.prototype.endpoints = $util.emptyArray; + ReadFeatureValuesRequest.prototype.entityType = ""; /** - * ListEndpointsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * ReadFeatureValuesRequest entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @instance */ - ListEndpointsResponse.prototype.nextPageToken = ""; + ReadFeatureValuesRequest.prototype.entityId = ""; /** - * Creates a new ListEndpointsResponse instance using the specified properties. + * 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.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance */ - ListEndpointsResponse.create = function create(properties) { - return new ListEndpointsResponse(properties); + ReadFeatureValuesRequest.create = function create(properties) { + return new ReadFeatureValuesRequest(properties); }; /** - * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.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.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse 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 */ - ListEndpointsResponse.encode = function encode(message, writer) { + ReadFeatureValuesRequest.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.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 ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.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.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse 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 */ - ListEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @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.ListEndpointsResponse} ListEndpointsResponse + * @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 */ - ListEndpointsResponse.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.ListEndpointsResponse(); + 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.endpoints && message.endpoints.length)) - message.endpoints = []; - message.endpoints.push($root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32())); + message.entityType = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + 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); @@ -182673,134 +182930,130 @@ }; /** - * Decodes a ListEndpointsResponse 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.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @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 */ - ListEndpointsResponse.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 ListEndpointsResponse message. + * Verifies a ReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @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 */ - ListEndpointsResponse.verify = function verify(message) { + ReadFeatureValuesRequest.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.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; } - 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. + * Creates a ReadFeatureValuesRequest 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.ReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest */ - ListEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse) + ReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) 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.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); } - 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. + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} message ListEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEndpointsResponse.toObject = function toObject(message, options) { + ReadFeatureValuesRequest.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.entityType = ""; + object.entityId = ""; + object.featureSelector = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListEndpointsResponse to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ListEndpointsResponse.prototype.toJSON = function toJSON() { + ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEndpointsResponse; + return ReadFeatureValuesRequest; })(); - v1beta1.UpdateEndpointRequest = (function() { + v1beta1.ReadFeatureValuesResponse = (function() { /** - * Properties of an UpdateEndpointRequest. + * Properties of a ReadFeatureValuesResponse. * @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 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 UpdateEndpointRequest. + * Constructs a new ReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateEndpointRequest. - * @implements IUpdateEndpointRequest + * @classdesc Represents a ReadFeatureValuesResponse. + * @implements IReadFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set */ - function UpdateEndpointRequest(properties) { + function ReadFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182808,88 +183061,88 @@ } /** - * UpdateEndpointRequest endpoint. - * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * ReadFeatureValuesResponse header. + * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null|undefined} header + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @instance */ - UpdateEndpointRequest.prototype.endpoint = null; + ReadFeatureValuesResponse.prototype.header = null; /** - * UpdateEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * ReadFeatureValuesResponse entityView. + * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null|undefined} entityView + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @instance */ - UpdateEndpointRequest.prototype.updateMask = null; + ReadFeatureValuesResponse.prototype.entityView = null; /** - * Creates a new UpdateEndpointRequest instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance */ - UpdateEndpointRequest.create = function create(properties) { - return new UpdateEndpointRequest(properties); + ReadFeatureValuesResponse.create = function create(properties) { + return new ReadFeatureValuesResponse(properties); }; /** - * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.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.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest 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 */ - UpdateEndpointRequest.encode = function encode(message, writer) { + ReadFeatureValuesResponse.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.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 UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.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.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest 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 */ - UpdateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @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.UpdateEndpointRequest} UpdateEndpointRequest + * @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 */ - UpdateEndpointRequest.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.UpdateEndpointRequest(); + 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: - message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); + message.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.decode(reader, reader.uint32()); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -182900,202 +183153,1128 @@ }; /** - * Decodes an UpdateEndpointRequest 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.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest + * @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 */ - UpdateEndpointRequest.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 UpdateEndpointRequest message. + * Verifies a ReadFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @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 */ - UpdateEndpointRequest.verify = function verify(message) { + ReadFeatureValuesResponse.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 (message.header != null && message.hasOwnProperty("header")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify(message.header); if (error) - return "endpoint." + error; + return "header." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.entityView != null && message.hasOwnProperty("entityView")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify(message.entityView); if (error) - return "updateMask." + error; + return "entityView." + error; } return null; }; /** - * Creates an UpdateEndpointRequest 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.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse */ - UpdateEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest) + ReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) 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); + 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.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); + 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 UpdateEndpointRequest 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.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} message UpdateEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEndpointRequest.toObject = function toObject(message, options) { + ReadFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.endpoint = null; - object.updateMask = null; + object.header = null; + object.entityView = null; } - 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.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 UpdateEndpointRequest to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - UpdateEndpointRequest.prototype.toJSON = function toJSON() { + ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEndpointRequest; - })(); - - v1beta1.DeleteEndpointRequest = (function() { + ReadFeatureValuesResponse.FeatureDescriptor = (function() { - /** - * Properties of a DeleteEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteEndpointRequest - * @property {string|null} [name] DeleteEndpointRequest name - */ + /** + * Properties of a FeatureDescriptor. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @interface IFeatureDescriptor + * @property {string|null} [id] FeatureDescriptor id + */ - /** - * 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]]; - } + /** + * 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]]; + } - /** - * DeleteEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @instance - */ - DeleteEndpointRequest.prototype.name = ""; + /** + * FeatureDescriptor id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @instance + */ + FeatureDescriptor.prototype.id = ""; - /** - * 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); - }; + /** + * 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 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; - }; + /** + * 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 DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + /** + * 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.StreamingReadFeatureValuesRequest = (function() { + + /** + * Properties of a StreamingReadFeatureValuesRequest. + * @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 + */ + + /** + * Constructs a new StreamingReadFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StreamingReadFeatureValuesRequest. + * @implements IStreamingReadFeatureValuesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + */ + function StreamingReadFeatureValuesRequest(properties) { + this.entityIds = []; + 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]]; + } + + /** + * StreamingReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @instance + */ + StreamingReadFeatureValuesRequest.prototype.entityType = ""; + + /** + * 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.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} message DeleteEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance + */ + StreamingReadFeatureValuesRequest.create = function create(properties) { + return new StreamingReadFeatureValuesRequest(properties); + }; + + /** + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @static + * @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 */ - DeleteEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingReadFeatureValuesRequest.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(); + return writer; + }; + + /** + * 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.StreamingReadFeatureValuesRequest + * @static + * @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 + */ + StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @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.DeleteEndpointRequest} DeleteEndpointRequest + * @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 */ - DeleteEndpointRequest.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.DeleteEndpointRequest(); + 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: - message.name = 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); @@ -183106,110 +184285,151 @@ }; /** - * Decodes a DeleteEndpointRequest 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.DeleteEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + * @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 */ - DeleteEndpointRequest.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 DeleteEndpointRequest message. + * Verifies a StreamingReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @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 */ - DeleteEndpointRequest.verify = function verify(message) { + StreamingReadFeatureValuesRequest.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.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 DeleteEndpointRequest 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.DeleteEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest */ - DeleteEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest) + StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + 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 DeleteEndpointRequest 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.DeleteEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} message DeleteEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEndpointRequest.toObject = function toObject(message, options) { + StreamingReadFeatureValuesRequest.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; - }; + 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]; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); + return object; + }; /** - * Converts this DeleteEndpointRequest to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - DeleteEndpointRequest.prototype.toJSON = function toJSON() { + StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteEndpointRequest; + return StreamingReadFeatureValuesRequest; })(); - v1beta1.DeployModelRequest = (function() { + v1beta1.FeatureValue = (function() { /** - * Properties of a DeployModelRequest. + * Properties of a FeatureValue. * @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 + * @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 */ /** - * Constructs a new DeployModelRequest. + * Constructs a new FeatureValue. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelRequest. - * @implements IDeployModelRequest + * @classdesc Represents a FeatureValue. + * @implements IFeatureValue * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set */ - function DeployModelRequest(properties) { - this.trafficSplit = {}; + function FeatureValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183217,121 +184437,206 @@ } /** - * DeployModelRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * FeatureValue boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance */ - DeployModelRequest.prototype.endpoint = ""; + FeatureValue.prototype.boolValue = null; /** - * DeployModelRequest deployedModel. - * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * FeatureValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance */ - DeployModelRequest.prototype.deployedModel = null; + FeatureValue.prototype.doubleValue = null; /** - * DeployModelRequest trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * FeatureValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance */ - DeployModelRequest.prototype.trafficSplit = $util.emptyObject; + FeatureValue.prototype.int64Value = null; /** - * Creates a new DeployModelRequest instance using the specified properties. + * 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. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue instance */ - DeployModelRequest.create = function create(properties) { - return new DeployModelRequest(properties); + FeatureValue.create = function create(properties) { + return new FeatureValue(properties); }; /** - * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.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.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest 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 */ - DeployModelRequest.encode = function encode(message, writer) { + FeatureValue.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.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.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 DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.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.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest 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 */ - DeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @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.DeployModelRequest} DeployModelRequest + * @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 */ - DeployModelRequest.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.DeployModelRequest(), key, value; + 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.endpoint = reader.string(); + message.boolValue = reader.bool(); break; case 2: - message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + message.doubleValue = 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; + 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); @@ -183342,144 +184647,467 @@ }; /** - * Decodes a DeployModelRequest 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.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest + * @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 */ - DeployModelRequest.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 DeployModelRequest message. + * Verifies a FeatureValue message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @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 */ - DeployModelRequest.verify = function verify(message) { + FeatureValue.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; + var properties = {}; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + properties.value = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean 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.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; } return null; }; /** - * Creates a DeployModelRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue */ - DeployModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelRequest) + FeatureValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue) 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.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.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; + 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 DeployModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelRequest} message DeployModelRequest + * @param {google.cloud.aiplatform.v1beta1.FeatureValue} message FeatureValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelRequest.toObject = function toObject(message, options) { + FeatureValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.trafficSplit = {}; - if (options.defaults) { - object.endpoint = ""; - object.deployedModel = null; + 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.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.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 DeployModelRequest to JSON. + * Converts this FeatureValue to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance * @returns {Object.} JSON object */ - DeployModelRequest.prototype.toJSON = function toJSON() { + FeatureValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelRequest; + 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.DeployModelResponse = (function() { + v1beta1.FeatureValueList = (function() { /** - * Properties of a DeployModelResponse. + * Properties of a FeatureValueList. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployModelResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelResponse deployedModel + * @interface IFeatureValueList + * @property {Array.|null} [values] FeatureValueList values */ /** - * Constructs a new DeployModelResponse. + * Constructs a new FeatureValueList. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelResponse. - * @implements IDeployModelResponse + * @classdesc Represents a FeatureValueList. + * @implements IFeatureValueList * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set */ - function DeployModelResponse(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) @@ -183487,75 +185115,78 @@ } /** - * DeployModelResponse deployedModel. - * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * FeatureValueList values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @instance */ - DeployModelResponse.prototype.deployedModel = null; + FeatureValueList.prototype.values = $util.emptyArray; /** - * Creates a new DeployModelResponse instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList instance */ - DeployModelResponse.create = function create(properties) { - return new DeployModelResponse(properties); + FeatureValueList.create = function create(properties) { + return new FeatureValueList(properties); }; /** - * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.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.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse 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 */ - DeployModelResponse.encode = function encode(message, writer) { + FeatureValueList.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.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 DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.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.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse 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 */ - DeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelResponse message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @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.DeployModelResponse} DeployModelResponse + * @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 */ - DeployModelResponse.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.DeployModelResponse(); + 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.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + 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); @@ -183566,112 +185197,125 @@ }; /** - * Decodes a DeployModelResponse 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.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @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 */ - DeployModelResponse.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 DeployModelResponse message. + * Verifies a FeatureValueList message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @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 */ - DeployModelResponse.verify = function verify(message) { + FeatureValueList.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; + 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 DeployModelResponse 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.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList */ - DeployModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelResponse) + FeatureValueList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueList) 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.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 DeployModelResponse 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.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelResponse} message DeployModelResponse + * @param {google.cloud.aiplatform.v1beta1.FeatureValueList} message FeatureValueList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelResponse.toObject = function toObject(message, options) { + FeatureValueList.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.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 DeployModelResponse to JSON. + * Converts this FeatureValueList to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @instance * @returns {Object.} JSON object */ - DeployModelResponse.prototype.toJSON = function toJSON() { + FeatureValueList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelResponse; + return FeatureValueList; })(); - v1beta1.DeployModelOperationMetadata = (function() { + v1beta1.BoolArray = (function() { /** - * Properties of a DeployModelOperationMetadata. + * Properties of a BoolArray. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployModelOperationMetadata genericMetadata + * @interface IBoolArray + * @property {Array.|null} [values] BoolArray values */ /** - * Constructs a new DeployModelOperationMetadata. + * Constructs a new BoolArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelOperationMetadata. - * @implements IDeployModelOperationMetadata + * @classdesc Represents a BoolArray. + * @implements IBoolArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set */ - function DeployModelOperationMetadata(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) @@ -183679,75 +185323,86 @@ } /** - * DeployModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * BoolArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @instance */ - DeployModelOperationMetadata.prototype.genericMetadata = null; + BoolArray.prototype.values = $util.emptyArray; /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray instance */ - DeployModelOperationMetadata.create = function create(properties) { - return new DeployModelOperationMetadata(properties); + BoolArray.create = function create(properties) { + return new BoolArray(properties); }; /** - * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.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.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata 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 */ - DeployModelOperationMetadata.encode = function encode(message, writer) { + BoolArray.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.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 DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.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.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata 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 */ - DeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + BoolArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @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.DeployModelOperationMetadata} DeployModelOperationMetadata + * @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 */ - DeployModelOperationMetadata.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.DeployModelOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.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); @@ -183758,115 +185413,120 @@ }; /** - * Decodes a DeployModelOperationMetadata 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.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata + * @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 */ - DeployModelOperationMetadata.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 DeployModelOperationMetadata message. + * Verifies a BoolArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @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 */ - DeployModelOperationMetadata.verify = function verify(message) { + BoolArray.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.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 DeployModelOperationMetadata 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.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray */ - DeployModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata) + BoolArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BoolArray) 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.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 DeployModelOperationMetadata 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.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} message DeployModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.BoolArray} message BoolArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelOperationMetadata.toObject = function toObject(message, options) { + BoolArray.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.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; }; /** - * Converts this DeployModelOperationMetadata to JSON. + * Converts this BoolArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @instance * @returns {Object.} JSON object */ - DeployModelOperationMetadata.prototype.toJSON = function toJSON() { + BoolArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelOperationMetadata; + return BoolArray; })(); - v1beta1.UndeployModelRequest = (function() { + v1beta1.DoubleArray = (function() { /** - * Properties of an UndeployModelRequest. + * Properties of a DoubleArray. * @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 IDoubleArray + * @property {Array.|null} [values] DoubleArray values */ /** - * Constructs a new UndeployModelRequest. + * Constructs a new DoubleArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelRequest. - * @implements IUndeployModelRequest + * @classdesc Represents a DoubleArray. + * @implements IDoubleArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set */ - function UndeployModelRequest(properties) { - this.trafficSplit = {}; + function DoubleArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183874,121 +185534,86 @@ } /** - * UndeployModelRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest - * @instance - */ - UndeployModelRequest.prototype.endpoint = ""; - - /** - * UndeployModelRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest - * @instance - */ - UndeployModelRequest.prototype.deployedModelId = ""; - - /** - * UndeployModelRequest trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * DoubleArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @instance */ - UndeployModelRequest.prototype.trafficSplit = $util.emptyObject; + DoubleArray.prototype.values = $util.emptyArray; /** - * Creates a new UndeployModelRequest instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray instance */ - UndeployModelRequest.create = function create(properties) { - return new UndeployModelRequest(properties); + DoubleArray.create = function create(properties) { + return new DoubleArray(properties); }; /** - * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.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.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest 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 */ - UndeployModelRequest.encode = function encode(message, writer) { + DoubleArray.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.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 UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.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.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest 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 */ - UndeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @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.UndeployModelRequest} UndeployModelRequest + * @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 */ - UndeployModelRequest.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.UndeployModelRequest(), key, value; + 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: - message.endpoint = reader.string(); - break; - case 2: - message.deployedModelId = reader.string(); - 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; + 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); @@ -183999,138 +185624,120 @@ }; /** - * Decodes an UndeployModelRequest 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.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest + * @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 */ - UndeployModelRequest.decodeDelimited = function decodeDelimited(reader) { + DoubleArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployModelRequest message. + * Verifies a DoubleArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @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 */ - UndeployModelRequest.verify = function verify(message) { + DoubleArray.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.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 an UndeployModelRequest 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.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray */ - UndeployModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest) + DoubleArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DoubleArray) 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.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]); } return message; }; /** - * Creates a plain object from an UndeployModelRequest 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.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelRequest} message UndeployModelRequest + * @param {google.cloud.aiplatform.v1beta1.DoubleArray} message DoubleArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelRequest.toObject = function toObject(message, options) { + DoubleArray.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]]; + 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; }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this DoubleArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @instance * @returns {Object.} JSON object */ - UndeployModelRequest.prototype.toJSON = function toJSON() { + DoubleArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelRequest; + return DoubleArray; })(); - v1beta1.UndeployModelResponse = (function() { + v1beta1.Int64Array = (function() { /** - * Properties of an UndeployModelResponse. + * Properties of an Int64Array. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployModelResponse + * @interface IInt64Array + * @property {Array.|null} [values] Int64Array values */ /** - * Constructs a new UndeployModelResponse. + * Constructs a new Int64Array. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelResponse. - * @implements IUndeployModelResponse + * @classdesc Represents an Int64Array. + * @implements IInt64Array * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set */ - function UndeployModelResponse(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) @@ -184138,63 +185745,87 @@ } /** - * Creates a new UndeployModelResponse instance using the specified properties. + * Int64Array values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @instance + */ + Int64Array.prototype.values = $util.emptyArray; + + /** + * Creates a new Int64Array instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array instance */ - UndeployModelResponse.create = function create(properties) { - return new UndeployModelResponse(properties); + Int64Array.create = function create(properties) { + return new Int64Array(properties); }; /** - * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.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.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse 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 */ - UndeployModelResponse.encode = function encode(message, writer) { + Int64Array.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; }; /** - * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.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.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse 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 */ - UndeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + Int64Array.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @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.UndeployModelResponse} UndeployModelResponse + * @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 */ - UndeployModelResponse.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.UndeployModelResponse(); + 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: + 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; @@ -184204,94 +185835,130 @@ }; /** - * Decodes an UndeployModelResponse 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.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + * @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 */ - UndeployModelResponse.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 UndeployModelResponse message. + * Verifies an Int64Array message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @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 */ - UndeployModelResponse.verify = function verify(message) { + Int64Array.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 an UndeployModelResponse 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.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array */ - UndeployModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse) + Int64Array.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Int64Array) return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); + 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 UndeployModelResponse 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.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelResponse} message UndeployModelResponse + * @param {google.cloud.aiplatform.v1beta1.Int64Array} message Int64Array * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelResponse.toObject = function toObject() { - return {}; + Int64Array.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; }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this Int64Array to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @instance * @returns {Object.} JSON object */ - UndeployModelResponse.prototype.toJSON = function toJSON() { + Int64Array.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelResponse; + return Int64Array; })(); - v1beta1.UndeployModelOperationMetadata = (function() { + v1beta1.StringArray = (function() { /** - * Properties of an UndeployModelOperationMetadata. + * Properties of a StringArray. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployModelOperationMetadata genericMetadata + * @interface IStringArray + * @property {Array.|null} [values] StringArray values */ /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new StringArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelOperationMetadata. - * @implements IUndeployModelOperationMetadata + * @classdesc Represents a StringArray. + * @implements IStringArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set */ - function UndeployModelOperationMetadata(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) @@ -184299,75 +185966,78 @@ } /** - * UndeployModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * StringArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @instance */ - UndeployModelOperationMetadata.prototype.genericMetadata = null; + StringArray.prototype.values = $util.emptyArray; /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray instance */ - UndeployModelOperationMetadata.create = function create(properties) { - return new UndeployModelOperationMetadata(properties); + StringArray.create = function create(properties) { + return new StringArray(properties); }; /** - * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.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.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata 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 */ - UndeployModelOperationMetadata.encode = function encode(message, writer) { + StringArray.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.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 UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.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.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata 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 */ - UndeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + StringArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @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.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @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 */ - UndeployModelOperationMetadata.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.UndeployModelOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -184378,728 +186048,918 @@ }; /** - * Decodes an UndeployModelOperationMetadata 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.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @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 */ - UndeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + StringArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployModelOperationMetadata message. + * Verifies a StringArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @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 */ - UndeployModelOperationMetadata.verify = function verify(message) { + StringArray.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.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 an UndeployModelOperationMetadata 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.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray */ - UndeployModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata) + StringArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StringArray) return object; - 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); + 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 an UndeployModelOperationMetadata 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.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} message UndeployModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.StringArray} message StringArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelOperationMetadata.toObject = function toObject(message, options) { + StringArray.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.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; }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this StringArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @instance * @returns {Object.} JSON object */ - UndeployModelOperationMetadata.prototype.toJSON = function toJSON() { + StringArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelOperationMetadata; + return StringArray; })(); - v1beta1.EntityType = (function() { - - /** - * Properties of an EntityType. - * @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 - */ + v1beta1.FeaturestoreService = (function() { /** - * Constructs a new EntityType. + * Constructs a new FeaturestoreService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents a FeaturestoreService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [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 EntityType(properties) { - 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]]; + function FeaturestoreService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (FeaturestoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreService; + /** - * EntityType name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @instance + * 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. */ - EntityType.prototype.name = ""; + FeaturestoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * EntityType description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @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 */ - EntityType.prototype.description = ""; /** - * EntityType createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * 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 */ - EntityType.prototype.createTime = 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" }); /** - * EntityType updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * 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 */ - EntityType.prototype.updateTime = null; /** - * EntityType labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @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 */ - EntityType.prototype.labels = $util.emptyObject; /** - * EntityType etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * 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 */ - EntityType.prototype.etag = ""; + 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" }); /** - * EntityType monitoringConfig. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * 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 */ - EntityType.prototype.monitoringConfig = null; /** - * Creates a new EntityType instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @static - * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType 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 */ - EntityType.create = function create(properties) { - return new EntityType(properties); - }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @static - * @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 + * 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 */ - EntityType.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(); - return writer; - }; + 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" }); /** - * 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.EntityType - * @static - * @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 + * 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 */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an EntityType message from the specified reader or buffer. - * @function decode - * @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.EntityType} 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.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 */ - 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.EntityType(), 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.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); - break; - } - } - return message; - }; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * 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 */ - EntityType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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" }); /** - * Verifies an EntityType message. - * @function verify - * @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 + * 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 */ - EntityType.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 (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 + * 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 */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.EntityType) - 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); - } - return message; - }; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @static - * @param {google.cloud.aiplatform.v1beta1.EntityType} message EntityType - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - EntityType.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]]; - } - 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; - }; + 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" }); /** - * Converts this EntityType to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * Calls DeleteFeaturestore. + * @function deleteFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EntityType.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EntityType; - })(); - - 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 + * 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 */ /** - * 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 + * 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 */ - 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]]; - } + 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" }); /** - * Feature name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance + * 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 */ - Feature.prototype.name = ""; /** - * Feature description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.description = ""; + 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" }); /** - * Feature valueType. - * @member {google.cloud.aiplatform.v1beta1.Feature.ValueType} valueType - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.valueType = 0; /** - * Feature createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.createTime = null; + 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" }); /** - * Feature updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.updateTime = null; /** - * Feature labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.labels = $util.emptyObject; + 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" }); /** - * Feature etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.etag = ""; /** - * Feature monitoringConfig. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.monitoringConfig = null; + 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" }); /** - * Feature disableMonitoring. - * @member {boolean} disableMonitoring - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.disableMonitoring = false; /** - * Feature monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.monitoringStats = $util.emptyArray; + 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" }); /** - * Feature monitoringStatsAnomalies. - * @member {Array.} monitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.Feature + * 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 */ - Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; /** - * Creates a new Feature instance using the specified properties. + * 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 + */ + + /** + * 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.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]]; + } + + /** + * CreateFeaturestoreRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.parent = ""; + + /** + * CreateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.featurestore = null; + + /** + * CreateFeaturestoreRequest featurestoreId. + * @member {string} featurestoreId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.featurestoreId = ""; + + /** + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance */ - Feature.create = function create(properties) { - return new Feature(properties); + CreateFeaturestoreRequest.create = function create(properties) { + return new CreateFeaturestoreRequest(properties); }; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.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.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature 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 */ - Feature.encode = function encode(message, writer) { + CreateFeaturestoreRequest.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.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 Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.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.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature 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 */ - Feature.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Feature message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @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.Feature} Feature + * @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 */ - Feature.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.Feature(), key, value; + 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.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.description = reader.string(); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); 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())); + message.featurestoreId = reader.string(); break; default: reader.skipType(tag & 7); @@ -185110,589 +186970,321 @@ }; /** - * Decodes a Feature 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.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @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 */ - Feature.decodeDelimited = function decodeDelimited(reader) { + CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Feature message. + * Verifies a CreateFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @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 */ - Feature.verify = function verify(message) { + CreateFeaturestoreRequest.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 (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 "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 "featurestore." + error; } + if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) + if (!$util.isString(message.featurestoreId)) + return "featurestoreId: string expected"; return null; }; /** - * Creates a Feature 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.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest */ - Feature.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature) + CreateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) 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.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 a Feature 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.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Feature} message Feature + * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Feature.toObject = function toObject(message, options) { + CreateFeaturestoreRequest.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); + object.parent = ""; + object.featurestore = null; + object.featurestoreId = ""; } - if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) - object.disableMonitoring = message.disableMonitoring; + 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 Feature to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - Feature.prototype.toJSON = function toJSON() { + CreateFeaturestoreRequest.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 - */ + return CreateFeaturestoreRequest; + })(); - /** - * 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]]; - } + v1beta1.GetFeaturestoreRequest = (function() { - /** - * MonitoringStatsAnomaly objective. - * @member {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective} objective - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @instance - */ - MonitoringStatsAnomaly.prototype.objective = 0; + /** + * Properties of a GetFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetFeaturestoreRequest + * @property {string|null} [name] GetFeaturestoreRequest name + */ - /** - * MonitoringStatsAnomaly featureStatsAnomaly. - * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} featureStatsAnomaly - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @instance - */ - MonitoringStatsAnomaly.prototype.featureStatsAnomaly = null; + /** + * Constructs a new GetFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetFeaturestoreRequest. + * @implements IGetFeaturestoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set + */ + function GetFeaturestoreRequest(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 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); - }; + /** + * GetFeaturestoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @instance + */ + GetFeaturestoreRequest.prototype.name = ""; - /** - * 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; - }; + /** + * Creates a new GetFeaturestoreRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest instance + */ + GetFeaturestoreRequest.create = function create(properties) { + return new GetFeaturestoreRequest(properties); + }; - /** - * 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()); - }; + /** + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @static + * @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 + */ + GetFeaturestoreRequest.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; + }; - /** - * 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; - }; + /** + * 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.GetFeaturestoreRequest + * @static + * @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 + */ + GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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": + /** + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * @function decode + * @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.GetFeaturestoreRequest} GetFeaturestoreRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - message.objective = 1; + message.name = reader.string(); break; - case "SNAPSHOT_ANALYSIS": - case 2: - message.objective = 2; + default: + reader.skipType(tag & 7); 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; - }; + } + 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; - }; + /** + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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); - }; + /** + * Verifies a GetFeaturestoreRequest message. + * @function verify + * @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 + */ + GetFeaturestoreRequest.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; + }; - /** - * 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; - })(); + /** + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + */ + GetFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - return MonitoringStatsAnomaly; - })(); + /** + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} message GetFeaturestoreRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeaturestoreRequest.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; + }; /** - * 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 + * Converts this GetFeaturestoreRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @instance + * @returns {Object.} JSON object */ - 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; - })(); + GetFeaturestoreRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Feature; + return GetFeaturestoreRequest; })(); - v1beta1.FeaturestoreMonitoringConfig = (function() { + v1beta1.ListFeaturestoresRequest = (function() { /** - * Properties of a FeaturestoreMonitoringConfig. + * Properties of a ListFeaturestoresRequest. * @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 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 FeaturestoreMonitoringConfig. + * Constructs a new ListFeaturestoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeaturestoreMonitoringConfig. - * @implements IFeaturestoreMonitoringConfig + * @classdesc Represents a ListFeaturestoresRequest. + * @implements IListFeaturestoresRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set */ - function FeaturestoreMonitoringConfig(properties) { + function ListFeaturestoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185700,114 +187292,140 @@ } /** - * FeaturestoreMonitoringConfig snapshotAnalysis. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null|undefined} snapshotAnalysis - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListFeaturestoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - FeaturestoreMonitoringConfig.prototype.snapshotAnalysis = null; + ListFeaturestoresRequest.prototype.parent = ""; /** - * FeaturestoreMonitoringConfig importFeaturesAnalysis. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null|undefined} importFeaturesAnalysis - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListFeaturestoresRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - FeaturestoreMonitoringConfig.prototype.importFeaturesAnalysis = null; + ListFeaturestoresRequest.prototype.filter = ""; /** - * FeaturestoreMonitoringConfig numericalThresholdConfig. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} numericalThresholdConfig - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListFeaturestoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - FeaturestoreMonitoringConfig.prototype.numericalThresholdConfig = null; + ListFeaturestoresRequest.prototype.pageSize = 0; /** - * FeaturestoreMonitoringConfig categoricalThresholdConfig. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} categoricalThresholdConfig - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListFeaturestoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - FeaturestoreMonitoringConfig.prototype.categoricalThresholdConfig = null; + ListFeaturestoresRequest.prototype.pageToken = ""; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * 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 + * @instance + */ + ListFeaturestoresRequest.prototype.readMask = null; + + /** + * Creates a new ListFeaturestoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest instance */ - FeaturestoreMonitoringConfig.create = function create(properties) { - return new FeaturestoreMonitoringConfig(properties); + ListFeaturestoresRequest.create = function create(properties) { + return new ListFeaturestoresRequest(properties); }; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.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.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig 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 */ - FeaturestoreMonitoringConfig.encode = function encode(message, writer) { + ListFeaturestoresRequest.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.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 FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.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.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig 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 */ - FeaturestoreMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @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.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @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 */ - FeaturestoreMonitoringConfig.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.FeaturestoreMonitoringConfig(); + 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 1: - message.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.decode(reader, reader.uint32()); + message.filter = reader.string(); break; case 3: - message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 4: - message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); + message.pageToken = reader.string(); + break; + case 5: + message.orderBy = reader.string(); + break; + case 6: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -185818,913 +187436,385 @@ }; /** - * Decodes a FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @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 */ - FeaturestoreMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + ListFeaturestoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies a ListFeaturestoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @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 */ - FeaturestoreMonitoringConfig.verify = function verify(message) { + ListFeaturestoresRequest.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 (error) - return "numericalThresholdConfig." + error; - } - if (message.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.categoricalThresholdConfig); + 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 "categoricalThresholdConfig." + error; + return "readMask." + error; } return null; }; /** - * Creates a FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest */ - FeaturestoreMonitoringConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + ListFeaturestoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) 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); - } - 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); + 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 a FeaturestoreMonitoringConfig 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.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig + * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} message ListFeaturestoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeaturestoreMonitoringConfig.toObject = function toObject(message, options) { + ListFeaturestoresRequest.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.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = 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.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 FeaturestoreMonitoringConfig to JSON. + * Converts this ListFeaturestoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance * @returns {Object.} JSON object */ - FeaturestoreMonitoringConfig.prototype.toJSON = function toJSON() { + ListFeaturestoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - FeaturestoreMonitoringConfig.SnapshotAnalysis = (function() { - - /** - * 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 - */ + return ListFeaturestoresRequest; + })(); - /** - * 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]]; - } + v1beta1.ListFeaturestoresResponse = (function() { - /** - * SnapshotAnalysis disabled. - * @member {boolean} disabled - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.disabled = false; + /** + * Properties of a ListFeaturestoresResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeaturestoresResponse + * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores + * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken + */ - /** - * SnapshotAnalysis monitoringInterval. - * @member {google.protobuf.IDuration|null|undefined} monitoringInterval - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.monitoringInterval = 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]]; + } - /** - * SnapshotAnalysis monitoringIntervalDays. - * @member {number} monitoringIntervalDays - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.monitoringIntervalDays = 0; + /** + * ListFeaturestoresResponse featurestores. + * @member {Array.} featurestores + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @instance + */ + ListFeaturestoresResponse.prototype.featurestores = $util.emptyArray; - /** - * SnapshotAnalysis stalenessDays. - * @member {number} stalenessDays - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.stalenessDays = 0; + /** + * ListFeaturestoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @instance + */ + ListFeaturestoresResponse.prototype.nextPageToken = ""; - /** - * 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); - }; + /** + * 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 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 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; + }; - /** - * 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(); - }; + /** + * 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.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.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; - } + /** + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * @function decode + * @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.ListFeaturestoresResponse} ListFeaturestoresResponse + * @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) { + 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(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + 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()); - }; + /** + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListFeaturestoresResponse.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); + /** + * Verifies a ListFeaturestoresResponse message. + * @function verify + * @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 + */ + ListFeaturestoresResponse.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 "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); + return "featurestores." + error; } - if (object.monitoringIntervalDays != null) - message.monitoringIntervalDays = object.monitoringIntervalDays | 0; - if (object.stalenessDays != null) - message.stalenessDays = object.stalenessDays | 0; - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * 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; + /** + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + */ + ListFeaturestoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) 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() { + 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; + }; - /** - * 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": - 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; - }; - - /** - * 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]]; + /** + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} message ListFeaturestoresResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeaturestoresResponse.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); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * 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; - }; - - /** - * 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; - })(); + /** + * Converts this ListFeaturestoresResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @instance + * @returns {Object.} JSON object + */ + ListFeaturestoresResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeaturestoreMonitoringConfig; + return ListFeaturestoresResponse; })(); - v1beta1.Event = (function() { + v1beta1.UpdateFeaturestoreRequest = (function() { /** - * Properties of an Event. + * Properties of an UpdateFeaturestoreRequest. * @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 IUpdateFeaturestoreRequest + * @property {google.cloud.aiplatform.v1beta1.IFeaturestore|null} [featurestore] UpdateFeaturestoreRequest featurestore + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeaturestoreRequest updateMask */ /** - * Constructs a new Event. + * Constructs a new UpdateFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Event. - * @implements IEvent + * @classdesc Represents an UpdateFeaturestoreRequest. + * @implements IUpdateFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set */ - function Event(properties) { - this.labels = {}; + function UpdateFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186732,147 +187822,88 @@ } /** - * 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 - * @instance - */ - Event.prototype.eventTime = null; - - /** - * Event type. - * @member {google.cloud.aiplatform.v1beta1.Event.Type} type - * @memberof google.cloud.aiplatform.v1beta1.Event + * UpdateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance */ - Event.prototype.type = 0; + UpdateFeaturestoreRequest.prototype.featurestore = null; /** - * Event labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Event + * UpdateFeaturestoreRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance */ - Event.prototype.labels = $util.emptyObject; + UpdateFeaturestoreRequest.prototype.updateMask = null; /** - * Creates a new Event instance using the specified properties. + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Event} Event instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance */ - Event.create = function create(properties) { - return new Event(properties); + UpdateFeaturestoreRequest.create = function create(properties) { + return new UpdateFeaturestoreRequest(properties); }; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.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.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event 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 */ - Event.encode = function encode(message, writer) { + UpdateFeaturestoreRequest.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.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 Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.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.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event 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 */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Event + * @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.Event} Event + * @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 */ - Event.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.Event(), key, value; + 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.artifact = reader.string(); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); break; case 2: - message.execution = reader.string(); - 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 = {}; - 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; + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -186883,205 +187914,127 @@ }; /** - * Decodes an Event 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.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Event} Event + * @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 */ - Event.decodeDelimited = function decodeDelimited(reader) { + UpdateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies an UpdateFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Event + * @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 */ - Event.verify = function verify(message) { + UpdateFeaturestoreRequest.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.featurestore != null && message.hasOwnProperty("featurestore")) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); if (error) - return "eventTime." + error; + return "featurestore." + 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"; + 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 Event 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.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Event} Event + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Event) + UpdateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) 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.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.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.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 an Event 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.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Event} message Event + * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + UpdateFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - 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]]; + 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 Event to JSON. + * Converts this UpdateFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + UpdateFeaturestoreRequest.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 UpdateFeaturestoreRequest; })(); - v1beta1.Execution = (function() { + v1beta1.DeleteFeaturestoreRequest = (function() { /** - * Properties of an Execution. + * Properties of a DeleteFeaturestoreRequest. * @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 IDeleteFeaturestoreRequest + * @property {string|null} [name] DeleteFeaturestoreRequest name + * @property {boolean|null} [force] DeleteFeaturestoreRequest force */ /** - * Constructs a new Execution. + * Constructs a new DeleteFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Execution. - * @implements IExecution + * @classdesc Represents a DeleteFeaturestoreRequest. + * @implements IDeleteFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set */ - function Execution(properties) { - this.labels = {}; + function DeleteFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187089,171 +188042,80 @@ } /** - * Execution name. + * DeleteFeaturestoreRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance - */ - Execution.prototype.name = ""; - - /** - * Execution displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance - */ - Execution.prototype.displayName = ""; - - /** - * 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 + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @instance */ - Execution.prototype.metadata = null; + DeleteFeaturestoreRequest.prototype.name = ""; /** - * Execution description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Execution + * DeleteFeaturestoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @instance */ - Execution.prototype.description = ""; + DeleteFeaturestoreRequest.prototype.force = false; /** - * Creates a new Execution instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance */ - Execution.create = function create(properties) { - return new Execution(properties); + DeleteFeaturestoreRequest.create = function create(properties) { + return new DeleteFeaturestoreRequest(properties); }; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.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.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution 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 */ - Execution.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.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.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.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution 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 */ - Execution.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Execution message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @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.Execution} Execution + * @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 */ - Execution.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.Execution(), key, value; + 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) { @@ -187261,56 +188123,10 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 6: - message.state = reader.int32(); + message.force = reader.bool(); 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); + default: + reader.skipType(tag & 7); break; } } @@ -187318,281 +188134,127 @@ }; /** - * Decodes an Execution 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.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution + * @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 */ - Execution.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 Execution message. + * Verifies a DeleteFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @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 */ - Execution.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.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"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an Execution 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.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest */ - Execution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Execution) + DeleteFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Execution(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); 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); - } - if (object.description != null) - message.description = String(object.description); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an Execution 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.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Execution} message Execution + * @param {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Execution.toObject = function toObject(message, options) { + DeleteFeaturestoreRequest.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 = ""; + object.force = 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.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 (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this Execution to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - Execution.prototype.toJSON = function toJSON() { + DeleteFeaturestoreRequest.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 DeleteFeaturestoreRequest; })(); - v1beta1.IdMatcher = (function() { + v1beta1.ImportFeatureValuesRequest = (function() { /** - * Properties of an IdMatcher. + * Properties of an ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIdMatcher - * @property {Array.|null} [ids] IdMatcher ids + * @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 IdMatcher. + * Constructs a new ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IdMatcher. - * @implements IIdMatcher + * @classdesc Represents an ImportFeatureValuesRequest. + * @implements IImportFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set */ - function IdMatcher(properties) { - this.ids = []; + function ImportFeatureValuesRequest(properties) { + this.featureSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187600,78 +188262,233 @@ } /** - * IdMatcher ids. - * @member {Array.} ids - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * ImportFeatureValuesRequest avroSource. + * @member {google.cloud.aiplatform.v1beta1.IAvroSource|null|undefined} avroSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance */ - IdMatcher.prototype.ids = $util.emptyArray; + ImportFeatureValuesRequest.prototype.avroSource = null; /** - * Creates a new IdMatcher instance using the specified properties. + * ImportFeatureValuesRequest bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.bigquerySource = null; + + /** + * ImportFeatureValuesRequest csvSource. + * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.csvSource = null; + + /** + * ImportFeatureValuesRequest featureTimeField. + * @member {string|null|undefined} featureTimeField + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.featureTimeField = null; + + /** + * ImportFeatureValuesRequest featureTime. + * @member {google.protobuf.ITimestamp|null|undefined} featureTime + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.featureTime = null; + + /** + * ImportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.entityType = ""; + + /** + * ImportFeatureValuesRequest entityIdField. + * @member {string} entityIdField + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.entityIdField = ""; + + /** + * ImportFeatureValuesRequest featureSpecs. + * @member {Array.} featureSpecs + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; + + /** + * ImportFeatureValuesRequest disableOnlineServing. + * @member {boolean} disableOnlineServing + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.disableOnlineServing = false; + + /** + * ImportFeatureValuesRequest workerCount. + * @member {number} workerCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.workerCount = 0; + + /** + * ImportFeatureValuesRequest disableIngestionAnalysis. + * @member {boolean} disableIngestionAnalysis + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportFeatureValuesRequest source. + * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ImportFeatureValuesRequest featureTimeSource. + * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance + */ + 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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance */ - IdMatcher.create = function create(properties) { - return new IdMatcher(properties); + ImportFeatureValuesRequest.create = function create(properties) { + return new ImportFeatureValuesRequest(properties); }; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher 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 */ - IdMatcher.encode = function encode(message, writer) { + ImportFeatureValuesRequest.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.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; }; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher 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 */ - IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdMatcher message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @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.IdMatcher} IdMatcher + * @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 */ - IdMatcher.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.IdMatcher(); + 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: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); + 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); @@ -187682,119 +188499,469 @@ }; /** - * Decodes an IdMatcher 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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher + * @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 */ - IdMatcher.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdMatcher message. + * Verifies an ImportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @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 */ - IdMatcher.verify = function verify(message) { + ImportFeatureValuesRequest.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"; + 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 IdMatcher 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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest */ - IdMatcher.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IdMatcher) + ImportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) 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.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 IdMatcher 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.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IdMatcher} message IdMatcher + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdMatcher.toObject = function toObject(message, options) { + ImportFeatureValuesRequest.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]; + 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; }; /** - * Converts this IdMatcher to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - IdMatcher.prototype.toJSON = function toJSON() { + ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdMatcher; + 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.FeatureSelector = (function() { + v1beta1.ImportFeatureValuesResponse = (function() { /** - * Properties of a FeatureSelector. + * Properties of an ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureSelector - * @property {google.cloud.aiplatform.v1beta1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher + * @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 FeatureSelector. + * Constructs a new ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureSelector. - * @implements IFeatureSelector + * @classdesc Represents an ImportFeatureValuesResponse. + * @implements IImportFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set */ - function FeatureSelector(properties) { + function ImportFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187802,75 +188969,101 @@ } /** - * FeatureSelector idMatcher. - * @member {google.cloud.aiplatform.v1beta1.IIdMatcher|null|undefined} idMatcher - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * ImportFeatureValuesResponse importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @instance */ - FeatureSelector.prototype.idMatcher = null; + ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new FeatureSelector 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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance */ - FeatureSelector.create = function create(properties) { - return new FeatureSelector(properties); + ImportFeatureValuesResponse.create = function create(properties) { + return new ImportFeatureValuesResponse(properties); }; /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector 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 */ - FeatureSelector.encode = function encode(message, writer) { + ImportFeatureValuesResponse.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.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 FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector 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 */ - FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureSelector message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @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.FeatureSelector} FeatureSelector + * @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 */ - FeatureSelector.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.FeatureSelector(); + 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.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.decode(reader, reader.uint32()); + message.importedEntityCount = reader.int64(); + break; + case 2: + message.importedFeatureValueCount = reader.int64(); + break; + case 6: + message.invalidRowCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -187881,120 +189074,173 @@ }; /** - * Decodes a FeatureSelector 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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector + * @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 */ - FeatureSelector.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 FeatureSelector message. + * Verifies an ImportFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @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 */ - FeatureSelector.verify = function verify(message) { + ImportFeatureValuesResponse.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 (error) - return "idMatcher." + 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"; return null; }; /** - * Creates a FeatureSelector 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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse */ - FeatureSelector.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelector) + ImportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) 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.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 FeatureSelector 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.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureSelector} message FeatureSelector + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureSelector.toObject = function toObject(message, options) { + ImportFeatureValuesResponse.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.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 FeatureSelector to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - FeatureSelector.prototype.toJSON = function toJSON() { + ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureSelector; + return ImportFeatureValuesResponse; })(); - v1beta1.Featurestore = (function() { + v1beta1.BatchReadFeatureValuesRequest = (function() { /** - * Properties of a Featurestore. + * Properties of a BatchReadFeatureValuesRequest. * @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 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 Featurestore. + * Constructs a new BatchReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Featurestore. - * @implements IFeaturestore + * @classdesc Represents a BatchReadFeatureValuesRequest. + * @implements IBatchReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set */ - function Featurestore(properties) { - this.labels = {}; + 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) @@ -188002,186 +189248,160 @@ } /** - * Featurestore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest csvReadInstances. + * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvReadInstances + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.name = ""; + BatchReadFeatureValuesRequest.prototype.csvReadInstances = null; /** - * Featurestore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest bigqueryReadInstances. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigqueryReadInstances + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.createTime = null; + BatchReadFeatureValuesRequest.prototype.bigqueryReadInstances = null; /** - * Featurestore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest featurestore. + * @member {string} featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.updateTime = null; + BatchReadFeatureValuesRequest.prototype.featurestore = ""; /** - * Featurestore etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.etag = ""; + BatchReadFeatureValuesRequest.prototype.destination = null; /** - * Featurestore labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest passThroughFields. + * @member {Array.} passThroughFields + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.labels = $util.emptyObject; + BatchReadFeatureValuesRequest.prototype.passThroughFields = $util.emptyArray; /** - * Featurestore onlineServingConfig. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest entityTypeSpecs. + * @member {Array.} entityTypeSpecs + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.onlineServingConfig = null; + BatchReadFeatureValuesRequest.prototype.entityTypeSpecs = $util.emptyArray; - /** - * Featurestore state. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.State} state - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @instance - */ - Featurestore.prototype.state = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Featurestore encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * BatchReadFeatureValuesRequest readOption. + * @member {"csvReadInstances"|"bigqueryReadInstances"|undefined} readOption + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - Featurestore.prototype.encryptionSpec = null; + Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { + get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance */ - Featurestore.create = function create(properties) { - return new Featurestore(properties); + BatchReadFeatureValuesRequest.create = function create(properties) { + return new BatchReadFeatureValuesRequest(properties); }; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.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.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore 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 */ - Featurestore.encode = function encode(message, writer) { + BatchReadFeatureValuesRequest.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.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 Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * 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.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore 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 */ - Featurestore.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @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.Featurestore} Featurestore + * @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 */ - Featurestore.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.Featurestore(), key, value; + 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.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()); + message.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.decode(reader, reader.uint32()); break; case 5: - message.etag = reader.string(); + message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.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; + case 1: + message.featurestore = reader.string(); break; - case 7: - message.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.decode(reader, reader.uint32()); + case 4: + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); break; case 8: - message.state = reader.int32(); + if (!(message.passThroughFields && message.passThroughFields.length)) + message.passThroughFields = []; + message.passThroughFields.push($root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.decode(reader, reader.uint32())); break; - case 10: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.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); @@ -188192,215 +189412,209 @@ }; /** - * Decodes a Featurestore 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.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore + * @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 */ - Featurestore.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 Featurestore message. + * Verifies a BatchReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @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 */ - Featurestore.verify = function verify(message) { + BatchReadFeatureValuesRequest.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 (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; + 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.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.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.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify(message.onlineServingConfig); + 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 "onlineServingConfig." + error; + return "destination." + 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.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.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 Featurestore 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.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest */ - Featurestore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore) + BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) 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); + 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.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.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.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.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); } - 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.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.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.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 Featurestore 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.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore} message Featurestore + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Featurestore.toObject = function toObject(message, options) { + BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; + if (options.arrays || options.defaults) { + object.entityTypeSpecs = []; + object.passThroughFields = []; + } 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; + object.featurestore = ""; + object.destination = 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.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.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 Featurestore to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - Featurestore.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Featurestore.OnlineServingConfig = (function() { + BatchReadFeatureValuesRequest.PassThroughField = (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 PassThroughField. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @interface IPassThroughField + * @property {string|null} [fieldName] PassThroughField fieldName */ /** - * Constructs a new OnlineServingConfig. - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @classdesc Represents an OnlineServingConfig. - * @implements IOnlineServingConfig + * Constructs a new PassThroughField. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @classdesc Represents a PassThroughField. + * @implements IPassThroughField * @constructor - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set */ - function OnlineServingConfig(properties) { + function PassThroughField(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188408,88 +189622,294 @@ } /** - * OnlineServingConfig fixedNodeCount. - * @member {number} fixedNodeCount - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * PassThroughField fieldName. + * @member {string} fieldName + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField * @instance */ - OnlineServingConfig.prototype.fixedNodeCount = 0; + PassThroughField.prototype.fieldName = ""; /** - * OnlineServingConfig scaling. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null|undefined} scaling - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * 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 */ - OnlineServingConfig.prototype.scaling = null; + PassThroughField.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PassThroughField; + })(); + + BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { /** - * Creates a new OnlineServingConfig instance using the specified properties. + * 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.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @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.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec instance */ - OnlineServingConfig.create = function create(properties) { - return new OnlineServingConfig(properties); + EntityTypeSpec.create = function create(properties) { + return new EntityTypeSpec(properties); }; /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * 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.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @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 */ - OnlineServingConfig.encode = function encode(message, writer) { + EntityTypeSpec.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.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 OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * 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.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @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 */ - OnlineServingConfig.encodeDelimited = function encodeDelimited(message, writer) { + EntityTypeSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. + * Decodes an EntityTypeSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @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.Featurestore.OnlineServingConfig} OnlineServingConfig + * @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 */ - OnlineServingConfig.decode = function decode(reader, length) { + 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.Featurestore.OnlineServingConfig(); + 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.fixedNodeCount = reader.int32(); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); break; - case 4: - message.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.decode(reader, reader.uint32()); + 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); @@ -188500,556 +189920,315 @@ }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @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.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec * @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) { + EntityTypeSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OnlineServingConfig message. + * Verifies an EntityTypeSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @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 */ - OnlineServingConfig.verify = function verify(message) { + EntityTypeSpec.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.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 "scaling." + 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 OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EntityTypeSpec 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.BatchReadFeatureValuesRequest.EntityTypeSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec */ - OnlineServingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + 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.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.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 OnlineServingConfig message. Also converts values to other types if specified. + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} message OnlineServingConfig + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} message EntityTypeSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OnlineServingConfig.toObject = function toObject(message, options) { + EntityTypeSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.settings = []; if (options.defaults) { - object.fixedNodeCount = 0; - object.scaling = null; + 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); } - 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. + * Converts this EntityTypeSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec * @instance * @returns {Object.} JSON object */ - OnlineServingConfig.prototype.toJSON = function toJSON() { + EntityTypeSpec.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 - */ + return EntityTypeSpec; + })(); - /** - * 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]]; - } + return BatchReadFeatureValuesRequest; + })(); - /** - * 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; - })(); + v1beta1.ExportFeatureValuesRequest = (function() { /** - * 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 + * Properties of an ExportFeatureValuesRequest. + * @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 */ - 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.FeaturestoreOnlineServingService = (function() { /** - * Constructs a new FeaturestoreOnlineServingService service. + * Constructs a new ExportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeaturestoreOnlineServingService - * @extends $protobuf.rpc.Service + * @classdesc Represents an ExportFeatureValuesRequest. + * @implements IExportFeatureValuesRequest * @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 + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set */ - function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function ExportFeatureValuesRequest(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]]; } - (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); - }; - - /** - * 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 + * ExportFeatureValuesRequest snapshotExport. + * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null|undefined} snapshotExport + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @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" }); + ExportFeatureValuesRequest.prototype.snapshotExport = null; /** - * Calls ReadFeatureValues. - * @function readFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * ExportFeatureValuesRequest fullExport. + * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null|undefined} fullExport + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @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 */ + ExportFeatureValuesRequest.prototype.fullExport = null; /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * ExportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @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" }); + ExportFeatureValuesRequest.prototype.entityType = ""; /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * ExportFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @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 - * @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.IReadFeatureValuesRequest=} [properties] Properties to set */ - function ReadFeatureValuesRequest(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]]; - } + ExportFeatureValuesRequest.prototype.destination = null; /** - * ReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * ExportFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance */ - ReadFeatureValuesRequest.prototype.entityType = ""; + ExportFeatureValuesRequest.prototype.featureSelector = null; /** - * ReadFeatureValuesRequest entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * ExportFeatureValuesRequest settings. + * @member {Array.} settings + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance */ - ReadFeatureValuesRequest.prototype.entityId = ""; + ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * ExportFeatureValuesRequest mode. + * @member {"snapshotExport"|"fullExport"|undefined} mode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance */ - ReadFeatureValuesRequest.prototype.featureSelector = null; + Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { + get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance */ - ReadFeatureValuesRequest.create = function create(properties) { - return new ReadFeatureValuesRequest(properties); + ExportFeatureValuesRequest.create = function create(properties) { + return new ExportFeatureValuesRequest(properties); }; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.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.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest 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 */ - ReadFeatureValuesRequest.encode = function encode(message, writer) { + ExportFeatureValuesRequest.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.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 3, wireType 2 =*/26).fork()).ldelim(); + $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 ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.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.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest 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 */ - ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @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.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @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 */ - ReadFeatureValuesRequest.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.ReadFeatureValuesRequest(); + 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: message.entityType = reader.string(); break; - case 2: - message.entityId = reader.string(); + case 4: + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); break; - case 3: + 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); break; @@ -189059,346 +190238,197 @@ }; /** - * Decodes a ReadFeatureValuesRequest 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.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @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 */ - ReadFeatureValuesRequest.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 ReadFeatureValuesRequest message. + * Verifies an ExportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @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 */ - ReadFeatureValuesRequest.verify = function verify(message) { + ExportFeatureValuesRequest.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.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: 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; + } + } return null; }; /** - * Creates a ReadFeatureValuesRequest 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.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest */ - ReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + ExportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); + 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.entityId != null) - message.entityId = String(object.entityId); + 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.ReadFeatureValuesRequest.featureSelector: object expected"); + 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]); + } + } return message; }; /** - * Creates a plain object from a ReadFeatureValuesRequest 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.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFeatureValuesRequest.toObject = function toObject(message, options) { + ExportFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.settings = []; if (options.defaults) { object.entityType = ""; - object.entityId = ""; + object.destination = null; 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.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); - return object; - }; - - /** - * Converts this ReadFeatureValuesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest - * @instance - * @returns {Object.} JSON object - */ - ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ReadFeatureValuesRequest; - })(); - - v1beta1.ReadFeatureValuesResponse = (function() { - - /** - * Properties of a ReadFeatureValuesResponse. - * @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 - */ - - /** - * Constructs a new ReadFeatureValuesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ReadFeatureValuesResponse. - * @implements IReadFeatureValuesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set - */ - function ReadFeatureValuesResponse(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]]; - } - - /** - * ReadFeatureValuesResponse header. - * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null|undefined} header - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @instance - */ - ReadFeatureValuesResponse.prototype.header = null; - - /** - * 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.ReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance - */ - ReadFeatureValuesResponse.create = function create(properties) { - return new ReadFeatureValuesResponse(properties); - }; - - /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @static - * @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 - */ - ReadFeatureValuesResponse.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(); - return writer; - }; - - /** - * 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.ReadFeatureValuesResponse - * @static - * @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 - */ - ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. - * @function decode - * @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.ReadFeatureValuesResponse} ReadFeatureValuesResponse - * @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) { - 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(); - 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()); - break; - case 2: - message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReadFeatureValuesResponse message. - * @function verify - * @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 - */ - ReadFeatureValuesResponse.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; - } - return null; - }; - - /** - * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse - */ - ReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) - 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); - } - 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 (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 message; - }; - - /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReadFeatureValuesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.header = null; - object.entityView = null; + 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"; } - 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 ReadFeatureValuesResponse to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { + ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ReadFeatureValuesResponse.FeatureDescriptor = (function() { + ExportFeatureValuesRequest.SnapshotExport = (function() { /** - * Properties of a FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @interface IFeatureDescriptor - * @property {string|null} [id] FeatureDescriptor id + * 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 FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @classdesc Represents a FeatureDescriptor. - * @implements IFeatureDescriptor + * Constructs a new SnapshotExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @classdesc Represents a SnapshotExport. + * @implements ISnapshotExport * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set */ - function FeatureDescriptor(properties) { + function SnapshotExport(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189406,75 +190436,88 @@ } /** - * FeatureDescriptor id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * SnapshotExport snapshotTime. + * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @instance */ - FeatureDescriptor.prototype.id = ""; + SnapshotExport.prototype.snapshotTime = null; /** - * Creates a new FeatureDescriptor instance using the specified properties. + * 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.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @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.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport instance */ - FeatureDescriptor.create = function create(properties) { - return new FeatureDescriptor(properties); + SnapshotExport.create = function create(properties) { + return new SnapshotExport(properties); }; /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * 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.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @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 */ - FeatureDescriptor.encode = function encode(message, writer) { + SnapshotExport.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.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 FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * 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.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @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 */ - FeatureDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotExport.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. + * Decodes a SnapshotExport message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @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.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @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 */ - FeatureDescriptor.decode = function decode(reader, length) { + 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.ReadFeatureValuesResponse.FeatureDescriptor(); + 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.id = reader.string(); + 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); @@ -189485,109 +190528,127 @@ }; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @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.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport * @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) { + SnapshotExport.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureDescriptor message. + * Verifies a SnapshotExport message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @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 */ - FeatureDescriptor.verify = function verify(message) { + SnapshotExport.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.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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport 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.ExportFeatureValuesRequest.SnapshotExport * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport */ - FeatureDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + 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.ReadFeatureValuesResponse.FeatureDescriptor(); - if (object.id != null) - message.id = String(object.id); + 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 FeatureDescriptor message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} message FeatureDescriptor + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} message SnapshotExport * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureDescriptor.toObject = function toObject(message, options) { + SnapshotExport.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.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 FeatureDescriptor to JSON. + * Converts this SnapshotExport to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport * @instance * @returns {Object.} JSON object */ - FeatureDescriptor.prototype.toJSON = function toJSON() { + SnapshotExport.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureDescriptor; + return SnapshotExport; })(); - ReadFeatureValuesResponse.Header = (function() { + ExportFeatureValuesRequest.FullExport = (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 + * 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 Header. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new FullExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @classdesc Represents a FullExport. + * @implements IFullExport * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set */ - function Header(properties) { - this.featureDescriptors = []; + function FullExport(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189595,322 +190656,88 @@ } /** - * Header entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * FullExport startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @instance */ - Header.prototype.entityType = ""; + FullExport.prototype.startTime = null; /** - * Header featureDescriptors. - * @member {Array.} featureDescriptors - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * FullExport endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @instance */ - Header.prototype.featureDescriptors = $util.emptyArray; + FullExport.prototype.endTime = null; /** - * Creates a new Header instance using the specified properties. + * Creates a new FullExport instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header instance + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport instance */ - Header.create = function create(properties) { - return new Header(properties); + FullExport.create = function create(properties) { + return new FullExport(properties); }; /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * 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.ReadFeatureValuesResponse.Header + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @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 */ - Header.encode = function encode(message, writer) { + FullExport.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(); + 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 Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * 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.ReadFeatureValuesResponse.Header + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @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 */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + FullExport.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a FullExport message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @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.ReadFeatureValuesResponse.Header} Header + * @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 */ - Header.decode = function decode(reader, length) { + 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.ReadFeatureValuesResponse.Header(); + 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 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); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); 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())); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -189921,384 +190748,130 @@ }; /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. + * Decodes a FullExport message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView + * @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 */ - EntityView.decodeDelimited = function decodeDelimited(reader) { + FullExport.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityView message. + * Verifies a FullExport message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @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 */ - EntityView.verify = function verify(message) { + FullExport.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; - } + 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 an EntityView message from a plain object. Also converts values to their respective internal types. + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport */ - EntityView.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + 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.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]); - } + 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 an EntityView message. Also converts values to other types if specified. + * Creates a plain object from a FullExport message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} message EntityView + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} message FullExport * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityView.toObject = function toObject(message, options) { + FullExport.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); + 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 EntityView to JSON. + * Converts this FullExport to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport * @instance * @returns {Object.} JSON object */ - EntityView.prototype.toJSON = function toJSON() { + FullExport.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 FullExport; })(); - return ReadFeatureValuesResponse; + return ExportFeatureValuesRequest; })(); - v1beta1.StreamingReadFeatureValuesRequest = (function() { + v1beta1.DestinationFeatureSetting = (function() { /** - * Properties of a StreamingReadFeatureValuesRequest. + * Properties of a DestinationFeatureSetting. * @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 IDestinationFeatureSetting + * @property {string|null} [featureId] DestinationFeatureSetting featureId + * @property {string|null} [destinationField] DestinationFeatureSetting destinationField */ /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new DestinationFeatureSetting. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingReadFeatureValuesRequest. - * @implements IStreamingReadFeatureValuesRequest + * @classdesc Represents a DestinationFeatureSetting. + * @implements IDestinationFeatureSetting * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set */ - function StreamingReadFeatureValuesRequest(properties) { - this.entityIds = []; + function DestinationFeatureSetting(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190306,104 +190879,88 @@ } /** - * StreamingReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest - * @instance - */ - StreamingReadFeatureValuesRequest.prototype.entityType = ""; - - /** - * StreamingReadFeatureValuesRequest entityIds. - * @member {Array.} entityIds - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * DestinationFeatureSetting featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance */ - StreamingReadFeatureValuesRequest.prototype.entityIds = $util.emptyArray; + DestinationFeatureSetting.prototype.featureId = ""; /** - * StreamingReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * DestinationFeatureSetting destinationField. + * @member {string} destinationField + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance */ - StreamingReadFeatureValuesRequest.prototype.featureSelector = null; + DestinationFeatureSetting.prototype.destinationField = ""; /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting instance */ - StreamingReadFeatureValuesRequest.create = function create(properties) { - return new StreamingReadFeatureValuesRequest(properties); + DestinationFeatureSetting.create = function create(properties) { + return new DestinationFeatureSetting(properties); }; /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.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.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest 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 */ - StreamingReadFeatureValuesRequest.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")) - 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.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 StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.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.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest 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 */ - StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @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.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @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 */ - StreamingReadFeatureValuesRequest.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.StreamingReadFeatureValuesRequest(); + 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 = reader.string(); + message.featureId = 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()); + message.destinationField = reader.string(); break; default: reader.skipType(tag & 7); @@ -190414,151 +190971,118 @@ }; /** - * Decodes a StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @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 */ - StreamingReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + DestinationFeatureSetting.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingReadFeatureValuesRequest message. + * Verifies a DestinationFeatureSetting message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @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 */ - StreamingReadFeatureValuesRequest.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")) - 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; - } + 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 a StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting */ - StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + DestinationFeatureSetting.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) 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]); - } - 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); - } + 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 a StreamingReadFeatureValuesRequest 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.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} message DestinationFeatureSetting * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingReadFeatureValuesRequest.toObject = function toObject(message, options) { + DestinationFeatureSetting.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.featureId = ""; + object.destinationField = ""; } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, 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 StreamingReadFeatureValuesRequest to JSON. + * Converts this DestinationFeatureSetting to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance * @returns {Object.} JSON object */ - StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + DestinationFeatureSetting.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingReadFeatureValuesRequest; + return DestinationFeatureSetting; })(); - v1beta1.FeatureValue = (function() { + v1beta1.FeatureValueDestination = (function() { /** - * Properties of a FeatureValue. + * Properties of a FeatureValueDestination. * @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 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 FeatureValue. + * Constructs a new FeatureValueDestination. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValue. - * @implements IFeatureValue + * @classdesc Represents a FeatureValueDestination. + * @implements IFeatureValueDestination * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set */ - function FeatureValue(properties) { + function FeatureValueDestination(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190566,206 +191090,115 @@ } /** - * FeatureValue boolValue. - * @member {boolean|null|undefined} boolValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.boolValue = null; - - /** - * 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 + * FeatureValueDestination bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - FeatureValue.prototype.stringArrayValue = null; + FeatureValueDestination.prototype.bigqueryDestination = null; /** - * FeatureValue bytesValue. - * @member {Uint8Array|null|undefined} bytesValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * FeatureValueDestination tfrecordDestination. + * @member {google.cloud.aiplatform.v1beta1.ITFRecordDestination|null|undefined} tfrecordDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - FeatureValue.prototype.bytesValue = null; + FeatureValueDestination.prototype.tfrecordDestination = null; /** - * FeatureValue metadata. - * @member {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * FeatureValueDestination csvDestination. + * @member {google.cloud.aiplatform.v1beta1.ICsvDestination|null|undefined} csvDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - FeatureValue.prototype.metadata = null; + FeatureValueDestination.prototype.csvDestination = 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 + * FeatureValueDestination destination. + * @member {"bigqueryDestination"|"tfrecordDestination"|"csvDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - Object.defineProperty(FeatureValue.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["boolValue", "doubleValue", "int64Value", "stringValue", "boolArrayValue", "doubleArrayValue", "int64ArrayValue", "stringArrayValue", "bytesValue"]), + Object.defineProperty(FeatureValueDestination.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new FeatureValueDestination instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination instance */ - FeatureValue.create = function create(properties) { - return new FeatureValue(properties); + FeatureValueDestination.create = function create(properties) { + return new FeatureValueDestination(properties); }; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.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.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue 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 */ - FeatureValue.encode = function encode(message, writer) { + FeatureValueDestination.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.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 FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.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.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue 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 */ - FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes a FeatureValueDestination message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @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.FeatureValue} FeatureValue + * @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 */ - FeatureValue.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.FeatureValue(); + 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.boolValue = reader.bool(); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); 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(); + message.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.decode(reader, reader.uint32()); break; - case 14: - message.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.decode(reader, reader.uint32()); + case 3: + message.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -190776,467 +191209,156 @@ }; /** - * Decodes a FeatureValue 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.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + * @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 */ - FeatureValue.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 FeatureValue message. + * Verifies a FeatureValueDestination message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @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 */ - FeatureValue.verify = function verify(message) { + FeatureValueDestination.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; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + properties.destination = 1; { - var error = $root.google.cloud.aiplatform.v1beta1.DoubleArray.verify(message.doubleArrayValue); + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); if (error) - return "doubleArrayValue." + error; + return "bigqueryDestination." + error; } } - if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; + 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.Int64Array.verify(message.int64ArrayValue); + var error = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.verify(message.tfrecordDestination); if (error) - return "int64ArrayValue." + error; + return "tfrecordDestination." + error; } } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; + 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.StringArray.verify(message.stringArrayValue); + var error = $root.google.cloud.aiplatform.v1beta1.CsvDestination.verify(message.csvDestination); if (error) - return "stringArrayValue." + error; + return "csvDestination." + 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. + * Creates a FeatureValueDestination 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.FeatureValueDestination * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination */ - FeatureValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue) + FeatureValueDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination) 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); + 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.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.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.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); + 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 FeatureValue 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.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue} message FeatureValue + * @param {google.cloud.aiplatform.v1beta1.FeatureValueDestination} message FeatureValueDestination * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValue.toObject = function toObject(message, options) { + FeatureValueDestination.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 (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); if (options.oneofs) - object.value = "int64ArrayValue"; + object.destination = "bigqueryDestination"; } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - object.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.toObject(message.stringArrayValue, options); + if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { + object.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.toObject(message.tfrecordDestination, options); if (options.oneofs) - object.value = "stringArrayValue"; + object.destination = "tfrecordDestination"; } - 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 (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { + object.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.toObject(message.csvDestination, options); if (options.oneofs) - object.value = "bytesValue"; + object.destination = "csvDestination"; } - 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 FeatureValueDestination to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance * @returns {Object.} JSON object */ - FeatureValue.prototype.toJSON = function toJSON() { + FeatureValueDestination.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 FeatureValueDestination; })(); - v1beta1.FeatureValueList = (function() { + v1beta1.ExportFeatureValuesResponse = (function() { /** - * Properties of a FeatureValueList. + * Properties of an ExportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureValueList - * @property {Array.|null} [values] FeatureValueList values + * @interface IExportFeatureValuesResponse */ /** - * Constructs a new FeatureValueList. + * Constructs a new ExportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValueList. - * @implements IFeatureValueList + * @classdesc Represents an ExportFeatureValuesResponse. + * @implements IExportFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set */ - function FeatureValueList(properties) { - this.values = []; + function ExportFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191244,79 +191366,63 @@ } /** - * FeatureValueList values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList - * @instance - */ - FeatureValueList.prototype.values = $util.emptyArray; - - /** - * Creates a new FeatureValueList instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance */ - FeatureValueList.create = function create(properties) { - return new FeatureValueList(properties); + ExportFeatureValuesResponse.create = function create(properties) { + return new ExportFeatureValuesResponse(properties); }; /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.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.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList 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 */ - FeatureValueList.encode = function encode(message, writer) { + ExportFeatureValuesResponse.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(); return writer; }; /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.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.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList 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 */ - FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueList message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @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.FeatureValueList} FeatureValueList + * @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 */ - FeatureValueList.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.FeatureValueList(); + 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: - 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); break; @@ -191326,125 +191432,93 @@ }; /** - * Decodes a FeatureValueList 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.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList + * @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 */ - FeatureValueList.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 FeatureValueList message. + * Verifies an ExportFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @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 */ - FeatureValueList.verify = function verify(message) { + ExportFeatureValuesResponse.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; - } - } return null; }; /** - * Creates a FeatureValueList 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.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse */ - FeatureValueList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueList) + ExportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) 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]); - } - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); }; /** - * Creates a plain object from a FeatureValueList 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.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValueList} message FeatureValueList + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueList.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); - } - return object; + ExportFeatureValuesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this FeatureValueList to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - FeatureValueList.prototype.toJSON = function toJSON() { + ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureValueList; + return ExportFeatureValuesResponse; })(); - v1beta1.BoolArray = (function() { + v1beta1.BatchReadFeatureValuesResponse = (function() { /** - * Properties of a BoolArray. + * Properties of a BatchReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBoolArray - * @property {Array.|null} [values] BoolArray values + * @interface IBatchReadFeatureValuesResponse */ /** - * Constructs a new BoolArray. + * Constructs a new BatchReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BoolArray. - * @implements IBoolArray + * @classdesc Represents a BatchReadFeatureValuesResponse. + * @implements IBatchReadFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set */ - function BoolArray(properties) { - this.values = []; + function BatchReadFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191452,87 +191526,63 @@ } /** - * BoolArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.BoolArray - * @instance - */ - BoolArray.prototype.values = $util.emptyArray; - - /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance */ - BoolArray.create = function create(properties) { - return new BoolArray(properties); + BatchReadFeatureValuesResponse.create = function create(properties) { + return new BatchReadFeatureValuesResponse(properties); }; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.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.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray 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 */ - BoolArray.encode = function encode(message, writer) { + BatchReadFeatureValuesResponse.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(); - } return writer; }; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.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.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray 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 */ - BoolArray.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @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.BoolArray} BoolArray + * @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 */ - BoolArray.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.BoolArray(); + 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: - 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); break; @@ -191542,120 +191592,96 @@ }; /** - * Decodes a BoolArray 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.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray + * @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 */ - BoolArray.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 BoolArray message. + * Verifies a BatchReadFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @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 */ - BoolArray.verify = function verify(message) { + BatchReadFeatureValuesResponse.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"; - } return null; }; /** - * Creates a BoolArray 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.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse */ - BoolArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BoolArray) + BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) 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]); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); }; /** - * Creates a plain object from a BoolArray 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.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.BoolArray} message BoolArray + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoolArray.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; + BatchReadFeatureValuesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BoolArray to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - BoolArray.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BoolArray; + return BatchReadFeatureValuesResponse; })(); - v1beta1.DoubleArray = (function() { + v1beta1.CreateEntityTypeRequest = (function() { /** - * Properties of a DoubleArray. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDoubleArray - * @property {Array.|null} [values] DoubleArray values + * @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 DoubleArray. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DoubleArray. - * @implements IDoubleArray + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set */ - function DoubleArray(properties) { - this.values = []; + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191663,86 +191689,101 @@ } /** - * DoubleArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @instance */ - DoubleArray.prototype.values = $util.emptyArray; + CreateEntityTypeRequest.prototype.parent = ""; /** - * Creates a new DoubleArray 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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - DoubleArray.create = function create(properties) { - return new DoubleArray(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray 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 */ - DoubleArray.encode = function encode(message, writer) { + CreateEntityTypeRequest.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.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 DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray 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 */ - DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @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.DoubleArray} DoubleArray + * @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 */ - DoubleArray.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.DoubleArray(); + 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.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.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); @@ -191753,120 +191794,129 @@ }; /** - * Decodes a DoubleArray 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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray + * @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 */ - DoubleArray.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 DoubleArray message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @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 */ - DoubleArray.verify = function verify(message) { + CreateEntityTypeRequest.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.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 DoubleArray 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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest */ - DoubleArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DoubleArray) + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) 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.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 DoubleArray 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.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DoubleArray} message DoubleArray + * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DoubleArray.toObject = function toObject(message, options) { + CreateEntityTypeRequest.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.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 DoubleArray to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - DoubleArray.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DoubleArray; + return CreateEntityTypeRequest; })(); - v1beta1.Int64Array = (function() { + v1beta1.GetEntityTypeRequest = (function() { /** - * Properties of an Int64Array. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IInt64Array - * @property {Array.|null} [values] Int64Array values + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name */ /** - * Constructs a new Int64Array. + * Constructs a new GetEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Int64Array. - * @implements IInt64Array + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set */ - function Int64Array(properties) { - this.values = []; + function GetEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191874,86 +191924,75 @@ } /** - * Int64Array values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * GetEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @instance */ - Int64Array.prototype.values = $util.emptyArray; + GetEntityTypeRequest.prototype.name = ""; /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array instance + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest instance */ - Int64Array.create = function create(properties) { - return new Int64Array(properties); + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.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.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array 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 */ - Int64Array.encode = function encode(message, writer) { + GetEntityTypeRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.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.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array 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 */ - Int64Array.encodeDelimited = function encodeDelimited(message, writer) { + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @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.Int64Array} Int64Array + * @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 */ - Int64Array.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.Int64Array(); + 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) { 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.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -191964,130 +192003,112 @@ }; /** - * Decodes an Int64Array 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.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array + * @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 */ - Int64Array.decodeDelimited = function decodeDelimited(reader) { + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Int64Array message. + * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @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 */ - Int64Array.verify = function verify(message) { + GetEntityTypeRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an Int64Array 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.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest */ - Int64Array.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Int64Array) + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) 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.GetEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an Int64Array 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.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Int64Array} message Int64Array + * @param {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Int64Array.toObject = function toObject(message, options) { + GetEntityTypeRequest.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.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this Int64Array to JSON. + * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ - Int64Array.prototype.toJSON = function toJSON() { + GetEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Int64Array; + return GetEntityTypeRequest; })(); - v1beta1.StringArray = (function() { + v1beta1.ListEntityTypesRequest = (function() { /** - * Properties of a StringArray. + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStringArray - * @property {Array.|null} [values] StringArray values + * @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 StringArray. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StringArray. - * @implements IStringArray + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set */ - function StringArray(properties) { - this.values = []; + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192095,78 +192116,140 @@ } /** - * StringArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * ListEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - StringArray.prototype.values = $util.emptyArray; + ListEntityTypesRequest.prototype.parent = ""; /** - * Creates a new StringArray instance using the specified properties. + * ListEntityTypesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.filter = ""; + + /** + * ListEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.pageSize = 0; + + /** + * ListEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.pageToken = ""; + + /** + * ListEntityTypesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.orderBy = ""; + + /** + * ListEntityTypesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.readMask = null; + + /** + * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray instance + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest instance */ - StringArray.create = function create(properties) { - return new StringArray(properties); + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.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.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray 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 */ - StringArray.encode = function encode(message, writer) { + ListEntityTypesRequest.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.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 StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.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.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray 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 */ - StringArray.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @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.StringArray} StringArray + * @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 */ - StringArray.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.StringArray(); + 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) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.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.orderBy = reader.string(); + break; + case 6: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -192177,816 +192260,816 @@ }; /** - * Decodes a StringArray 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.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray + * @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 */ - StringArray.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 StringArray message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @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 */ - StringArray.verify = function verify(message) { + ListEntityTypesRequest.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.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; } return null; }; /** - * Creates a StringArray 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.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest */ - StringArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StringArray) + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) 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.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); } return message; }; /** - * Creates a plain object from a StringArray 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.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StringArray} message StringArray + * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StringArray.toObject = function toObject(message, options) { + ListEntityTypesRequest.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.defaults) { + 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 StringArray to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - StringArray.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StringArray; + return ListEntityTypesRequest; })(); - v1beta1.FeaturestoreService = (function() { + v1beta1.ListEntityTypesResponse = (function() { /** - * Constructs a new FeaturestoreService service. + * Properties of a ListEntityTypesResponse. * @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. + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ - 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 + * Constructs a new ListEntityTypesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set */ + function ListEntityTypesResponse(properties) { + this.entityTypes = []; + 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 CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @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" }); + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * Calls CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * ListEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListEntityTypesResponse.prototype.nextPageToken = ""; /** - * 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 + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse instance */ + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); + }; /** - * 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 + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @static + * @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 */ - 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" }); + ListEntityTypesResponse.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); + return writer; + }; /** - * 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 + * 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.ListEntityTypesResponse + * @static + * @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 */ + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @function decode + * @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.ListEntityTypesResponse} ListEntityTypesResponse + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - 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" }); + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a ListEntityTypesResponse message. + * @function verify + * @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 */ + ListEntityTypesResponse.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]); + if (error) + return "entityTypes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * 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 + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse */ + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + 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]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * 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 + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + ListEntityTypesResponse.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); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls UpdateFeaturestore. - * @function updateFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * Converts this ListEntityTypesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListEntityTypesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - */ + return ListEntityTypesResponse; + })(); - /** - * 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" }); + v1beta1.UpdateEntityTypeRequest = (function() { /** - * 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 + * Properties of an UpdateEntityTypeRequest. + * @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 */ /** - * 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 + * Constructs a new UpdateEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set */ + function UpdateEntityTypeRequest(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 CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @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" }); + UpdateEntityTypeRequest.prototype.entityType = null; /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + UpdateEntityTypeRequest.prototype.updateMask = null; /** - * 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 + * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); + }; /** - * 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 + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @static + * @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 */ - 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" }); + UpdateEntityTypeRequest.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(); + return writer; + }; /** - * 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 + * 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.UpdateEntityTypeRequest + * @static + * @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 */ + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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) { + 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(); + 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()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - 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" }); + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies an UpdateEntityTypeRequest message. + * @function verify + * @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 */ + UpdateEntityTypeRequest.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; + } + return null; + }; /** - * 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 + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + 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); + } + return message; + }; /** - * 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 + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + UpdateEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.entityType = null; + object.updateMask = null; + } + 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; + }; /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * Converts this UpdateEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - */ + return UpdateEntityTypeRequest; + })(); + + v1beta1.DeleteEntityTypeRequest = (function() { /** - * 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 + * Properties of a DeleteEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ - 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 + * Constructs a new DeleteEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set */ + function DeleteEntityTypeRequest(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.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 + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @instance */ + DeleteEntityTypeRequest.prototype.name = ""; /** - * Calls CreateFeature. - * @function createFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @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" }); + DeleteEntityTypeRequest.prototype.force = false; /** - * 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 + * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); + }; /** - * 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 + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @static + * @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 */ + DeleteEntityTypeRequest.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; + }; /** - * 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 + * 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.DeleteEntityTypeRequest + * @static + * @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 */ - 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" }); + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 - */ - - /** - * 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 + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @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) { + 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(); + 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; + } + } + return message; + }; /** - * 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 + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - 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" }); + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a DeleteEntityTypeRequest message. + * @function verify + * @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 */ + DeleteEntityTypeRequest.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; + }; /** - * 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 + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + 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); + return message; + }; /** - * 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 + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + DeleteEntityTypeRequest.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; + }; /** - * Calls SearchFeatures. - * @function searchFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * Converts this DeleteEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeaturestoreService; + return DeleteEntityTypeRequest; })(); - v1beta1.CreateFeaturestoreRequest = (function() { + v1beta1.CreateFeatureRequest = (function() { /** - * Properties of a CreateFeaturestoreRequest. + * Properties of a CreateFeatureRequest. * @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 + * @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 CreateFeaturestoreRequest. + * Constructs a new CreateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeaturestoreRequest. - * @implements ICreateFeaturestoreRequest + * @classdesc Represents a CreateFeatureRequest. + * @implements ICreateFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set */ - function CreateFeaturestoreRequest(properties) { + function CreateFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192994,90 +193077,90 @@ } /** - * CreateFeaturestoreRequest parent. + * CreateFeatureRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance */ - CreateFeaturestoreRequest.prototype.parent = ""; + CreateFeatureRequest.prototype.parent = ""; /** - * CreateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * CreateFeatureRequest feature. + * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance */ - CreateFeaturestoreRequest.prototype.featurestore = null; + CreateFeatureRequest.prototype.feature = null; /** - * CreateFeaturestoreRequest featurestoreId. - * @member {string} featurestoreId - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * CreateFeatureRequest featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance */ - CreateFeaturestoreRequest.prototype.featurestoreId = ""; + CreateFeatureRequest.prototype.featureId = ""; /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new CreateFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest instance */ - CreateFeaturestoreRequest.create = function create(properties) { - return new CreateFeaturestoreRequest(properties); + CreateFeatureRequest.create = function create(properties) { + return new CreateFeatureRequest(properties); }; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.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.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest 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 */ - CreateFeaturestoreRequest.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.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.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 CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.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.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest 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 */ - CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a CreateFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @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.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @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 */ - CreateFeaturestoreRequest.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.CreateFeaturestoreRequest(); + 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) { @@ -193085,10 +193168,10 @@ message.parent = reader.string(); break; case 2: - message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); + message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); break; case 3: - message.featurestoreId = reader.string(); + message.featureId = reader.string(); break; default: reader.skipType(tag & 7); @@ -193099,129 +193182,131 @@ }; /** - * Decodes a CreateFeaturestoreRequest 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.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @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 */ - CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a CreateFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @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 */ - CreateFeaturestoreRequest.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.featurestore != null && message.hasOwnProperty("featurestore")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); + if (message.feature != null && message.hasOwnProperty("feature")) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.feature); if (error) - return "featurestore." + error; + return "feature." + error; } - if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) - if (!$util.isString(message.featurestoreId)) - return "featurestoreId: string expected"; + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; return null; }; /** - * Creates a CreateFeaturestoreRequest 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.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest */ - CreateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) + CreateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); 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.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.featurestoreId != null) - message.featurestoreId = String(object.featurestoreId); + if (object.featureId != null) + message.featureId = String(object.featureId); return message; }; /** - * Creates a plain object from a CreateFeaturestoreRequest 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.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} message CreateFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeaturestoreRequest.toObject = function toObject(message, options) { + CreateFeatureRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.featurestore = null; - object.featurestoreId = ""; + object.feature = null; + object.featureId = ""; } 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.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; }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this CreateFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreRequest.prototype.toJSON = function toJSON() { + CreateFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeaturestoreRequest; + return CreateFeatureRequest; })(); - v1beta1.GetFeaturestoreRequest = (function() { + v1beta1.BatchCreateFeaturesRequest = (function() { /** - * Properties of a GetFeaturestoreRequest. + * Properties of a BatchCreateFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetFeaturestoreRequest - * @property {string|null} [name] GetFeaturestoreRequest name + * @interface IBatchCreateFeaturesRequest + * @property {string|null} [parent] BatchCreateFeaturesRequest parent + * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests */ /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetFeaturestoreRequest. - * @implements IGetFeaturestoreRequest + * @classdesc Represents a BatchCreateFeaturesRequest. + * @implements IBatchCreateFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set */ - function GetFeaturestoreRequest(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) @@ -193229,75 +193314,91 @@ } /** - * GetFeaturestoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * BatchCreateFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @instance */ - GetFeaturestoreRequest.prototype.name = ""; + BatchCreateFeaturesRequest.prototype.parent = ""; /** - * Creates a new GetFeaturestoreRequest 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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance */ - GetFeaturestoreRequest.create = function create(properties) { - return new GetFeaturestoreRequest(properties); + BatchCreateFeaturesRequest.create = function create(properties) { + return new BatchCreateFeaturesRequest(properties); }; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest 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 */ - GetFeaturestoreRequest.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 GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest 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 */ - GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @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.GetFeaturestoreRequest} GetFeaturestoreRequest + * @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 */ - GetFeaturestoreRequest.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.GetFeaturestoreRequest(); + 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); @@ -193308,112 +193409,134 @@ }; /** - * Decodes a GetFeaturestoreRequest 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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @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 */ - GetFeaturestoreRequest.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 GetFeaturestoreRequest message. + * Verifies a BatchCreateFeaturesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @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 */ - GetFeaturestoreRequest.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 GetFeaturestoreRequest 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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest */ - GetFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + BatchCreateFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) 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.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 GetFeaturestoreRequest 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.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} message GetFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFeaturestoreRequest.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 GetFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @instance * @returns {Object.} JSON object */ - GetFeaturestoreRequest.prototype.toJSON = function toJSON() { + BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetFeaturestoreRequest; + return BatchCreateFeaturesRequest; })(); - v1beta1.ListFeaturestoresRequest = (function() { + v1beta1.BatchCreateFeaturesResponse = (function() { /** - * Properties of a ListFeaturestoresRequest. + * Properties of a BatchCreateFeaturesResponse. * @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 IBatchCreateFeaturesResponse + * @property {Array.|null} [features] BatchCreateFeaturesResponse features */ /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new BatchCreateFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturestoresRequest. - * @implements IListFeaturestoresRequest + * @classdesc Represents a BatchCreateFeaturesResponse. + * @implements IBatchCreateFeaturesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set */ - function ListFeaturestoresRequest(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) @@ -193421,140 +193544,78 @@ } /** - * 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 + * BatchCreateFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @instance */ - ListFeaturestoresRequest.prototype.readMask = null; + BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance */ - ListFeaturestoresRequest.create = function create(properties) { - return new ListFeaturestoresRequest(properties); + BatchCreateFeaturesResponse.create = function create(properties) { + return new BatchCreateFeaturesResponse(properties); }; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.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.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest 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 */ - ListFeaturestoresRequest.encode = function encode(message, writer) { + BatchCreateFeaturesResponse.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.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 ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.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.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest 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 */ - ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @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.ListFeaturestoresRequest} ListFeaturestoresRequest + * @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 */ - ListFeaturestoresRequest.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.ListFeaturestoresRequest(); + 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.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.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); @@ -193565,155 +193626,124 @@ }; /** - * Decodes a ListFeaturestoresRequest 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.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @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 */ - ListFeaturestoresRequest.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 ListFeaturestoresRequest message. + * Verifies a BatchCreateFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @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 */ - ListFeaturestoresRequest.verify = function verify(message) { + BatchCreateFeaturesResponse.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.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 ListFeaturestoresRequest 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.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse */ - ListFeaturestoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + BatchCreateFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) 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.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 ListFeaturestoresRequest 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.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} message ListFeaturestoresRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresRequest.toObject = function toObject(message, options) { + BatchCreateFeaturesResponse.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.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 (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 BatchCreateFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @instance * @returns {Object.} JSON object */ - ListFeaturestoresRequest.prototype.toJSON = function toJSON() { + BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturestoresRequest; + return BatchCreateFeaturesResponse; })(); - v1beta1.ListFeaturestoresResponse = (function() { + v1beta1.GetFeatureRequest = (function() { /** - * Properties of a ListFeaturestoresResponse. + * Properties of a GetFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturestoresResponse - * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores - * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken + * @interface IGetFeatureRequest + * @property {string|null} [name] GetFeatureRequest name */ /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new GetFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturestoresResponse. - * @implements IListFeaturestoresResponse + * @classdesc Represents a GetFeatureRequest. + * @implements IGetFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set */ - function ListFeaturestoresResponse(properties) { - this.featurestores = []; + function GetFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193721,91 +193751,75 @@ } /** - * 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 + * GetFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @instance */ - ListFeaturestoresResponse.prototype.nextPageToken = ""; + GetFeatureRequest.prototype.name = ""; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest instance */ - ListFeaturestoresResponse.create = function create(properties) { - return new ListFeaturestoresResponse(properties); + GetFeatureRequest.create = function create(properties) { + return new GetFeatureRequest(properties); }; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.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.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse 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 */ - ListFeaturestoresResponse.encode = function encode(message, writer) { + GetFeatureRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.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.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse 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 */ - ListFeaturestoresResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a GetFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @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.ListFeaturestoresResponse} ListFeaturestoresResponse + * @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 */ - ListFeaturestoresResponse.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.ListFeaturestoresResponse(); + 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: - 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -193816,134 +193830,113 @@ }; /** - * Decodes a ListFeaturestoresResponse 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.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @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 */ - ListFeaturestoresResponse.decodeDelimited = function decodeDelimited(reader) { + GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a GetFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @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 */ - ListFeaturestoresResponse.verify = function verify(message) { + GetFeatureRequest.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.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 ListFeaturestoresResponse 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.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest */ - ListFeaturestoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + GetFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest) 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]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + 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 a ListFeaturestoresResponse 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.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} message ListFeaturestoresResponse + * @param {google.cloud.aiplatform.v1beta1.GetFeatureRequest} message GetFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresResponse.toObject = function toObject(message, options) { + GetFeatureRequest.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); - } - 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 ListFeaturestoresResponse to JSON. + * Converts this GetFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @instance * @returns {Object.} JSON object */ - ListFeaturestoresResponse.prototype.toJSON = function toJSON() { + GetFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturestoresResponse; + return GetFeatureRequest; })(); - v1beta1.UpdateFeaturestoreRequest = (function() { + v1beta1.ListFeaturesRequest = (function() { /** - * Properties of an UpdateFeaturestoreRequest. + * Properties of a ListFeaturesRequest. * @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 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 UpdateFeaturestoreRequest. + * Constructs a new ListFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeaturestoreRequest. - * @implements IUpdateFeaturestoreRequest + * @classdesc Represents a ListFeaturesRequest. + * @implements IListFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set */ - function UpdateFeaturestoreRequest(properties) { + function ListFeaturesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193951,88 +193944,153 @@ } /** - * UpdateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * ListFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - UpdateFeaturestoreRequest.prototype.featurestore = null; + ListFeaturesRequest.prototype.parent = ""; /** - * UpdateFeaturestoreRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * ListFeaturesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - UpdateFeaturestoreRequest.prototype.updateMask = null; + ListFeaturesRequest.prototype.filter = ""; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * ListFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.pageSize = 0; + + /** + * ListFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.pageToken = ""; + + /** + * 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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest instance */ - UpdateFeaturestoreRequest.create = function create(properties) { - return new UpdateFeaturestoreRequest(properties); + ListFeaturesRequest.create = function create(properties) { + return new ListFeaturesRequest(properties); }; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest 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 */ - UpdateFeaturestoreRequest.encode = function encode(message, writer) { + ListFeaturesRequest.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.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 UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest 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 */ - UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a ListFeaturesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @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.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @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 */ - UpdateFeaturestoreRequest.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.UpdateFeaturestoreRequest(); + 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.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.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.orderBy = reader.string(); + break; + 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); @@ -194043,127 +194101,163 @@ }; /** - * Decodes an UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @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 */ - UpdateFeaturestoreRequest.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 UpdateFeaturestoreRequest message. + * Verifies a ListFeaturesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @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 */ - UpdateFeaturestoreRequest.verify = function verify(message) { + ListFeaturesRequest.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 (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 "updateMask." + error; + return "readMask." + error; } + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) + if (!$util.isInteger(message.latestStatsCount)) + return "latestStatsCount: integer expected"; return null; }; /** - * Creates an UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest */ - UpdateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + ListFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) 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.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.latestStatsCount != null) + message.latestStatsCount = object.latestStatsCount | 0; return message; }; /** - * Creates a plain object from an UpdateFeaturestoreRequest 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.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} message ListFeaturesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeaturestoreRequest.toObject = function toObject(message, options) { + ListFeaturesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.featurestore = null; - object.updateMask = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; + object.latestStatsCount = 0; } - 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); + 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 UpdateFeaturestoreRequest to JSON. + * Converts this ListFeaturesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance * @returns {Object.} JSON object */ - UpdateFeaturestoreRequest.prototype.toJSON = function toJSON() { + ListFeaturesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFeaturestoreRequest; + return ListFeaturesRequest; })(); - v1beta1.DeleteFeaturestoreRequest = (function() { + v1beta1.ListFeaturesResponse = (function() { /** - * Properties of a DeleteFeaturestoreRequest. + * Properties of a ListFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteFeaturestoreRequest - * @property {string|null} [name] DeleteFeaturestoreRequest name - * @property {boolean|null} [force] DeleteFeaturestoreRequest force + * @interface IListFeaturesResponse + * @property {Array.|null} [features] ListFeaturesResponse features + * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken */ /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new ListFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteFeaturestoreRequest. - * @implements IDeleteFeaturestoreRequest + * @classdesc Represents a ListFeaturesResponse. + * @implements IListFeaturesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set */ - function DeleteFeaturestoreRequest(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) @@ -194171,88 +194265,91 @@ } /** - * DeleteFeaturestoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * ListFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @instance */ - DeleteFeaturestoreRequest.prototype.name = ""; + ListFeaturesResponse.prototype.features = $util.emptyArray; /** - * DeleteFeaturestoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * ListFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @instance */ - DeleteFeaturestoreRequest.prototype.force = false; + ListFeaturesResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new ListFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse instance */ - DeleteFeaturestoreRequest.create = function create(properties) { - return new DeleteFeaturestoreRequest(properties); + ListFeaturesResponse.create = function create(properties) { + return new ListFeaturesResponse(properties); }; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.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.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest 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 */ - DeleteFeaturestoreRequest.encode = function encode(message, writer) { + ListFeaturesResponse.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.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 DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.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.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest 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 */ - DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a ListFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @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.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @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 */ - DeleteFeaturestoreRequest.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.DeleteFeaturestoreRequest(); + 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.name = reader.string(); + 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.force = reader.bool(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -194263,127 +194360,136 @@ }; /** - * Decodes a DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @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 */ - DeleteFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a ListFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @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 */ - DeleteFeaturestoreRequest.verify = function verify(message) { + ListFeaturesResponse.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.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 DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse */ - DeleteFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + ListFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) 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.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 a DeleteFeaturestoreRequest 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.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} message ListFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeaturestoreRequest.toObject = function toObject(message, options) { + ListFeaturesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + 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 (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this ListFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @instance * @returns {Object.} JSON object */ - DeleteFeaturestoreRequest.prototype.toJSON = function toJSON() { + ListFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFeaturestoreRequest; + return ListFeaturesResponse; })(); - v1beta1.ImportFeatureValuesRequest = (function() { + v1beta1.SearchFeaturesRequest = (function() { /** - * Properties of an ImportFeatureValuesRequest. + * Properties of a SearchFeaturesRequest. * @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 + * @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 ImportFeatureValuesRequest. + * Constructs a new SearchFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesRequest. - * @implements IImportFeatureValuesRequest + * @classdesc Represents a SearchFeaturesRequest. + * @implements ISearchFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set */ - function ImportFeatureValuesRequest(properties) { - this.featureSpecs = []; + function SearchFeaturesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194391,233 +194497,344 @@ } /** - * ImportFeatureValuesRequest avroSource. - * @member {google.cloud.aiplatform.v1beta1.IAvroSource|null|undefined} avroSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * SearchFeaturesRequest location. + * @member {string} location + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance */ - ImportFeatureValuesRequest.prototype.avroSource = null; + SearchFeaturesRequest.prototype.location = ""; /** - * ImportFeatureValuesRequest bigquerySource. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * SearchFeaturesRequest query. + * @member {string} query + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance */ - ImportFeatureValuesRequest.prototype.bigquerySource = null; + SearchFeaturesRequest.prototype.query = ""; /** - * ImportFeatureValuesRequest csvSource. - * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * SearchFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance */ - ImportFeatureValuesRequest.prototype.csvSource = null; + SearchFeaturesRequest.prototype.pageSize = 0; /** - * ImportFeatureValuesRequest featureTimeField. - * @member {string|null|undefined} featureTimeField - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * SearchFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance */ - ImportFeatureValuesRequest.prototype.featureTimeField = null; + SearchFeaturesRequest.prototype.pageToken = ""; /** - * ImportFeatureValuesRequest featureTime. - * @member {google.protobuf.ITimestamp|null|undefined} featureTime - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Creates a new SearchFeaturesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest instance */ - ImportFeatureValuesRequest.prototype.featureTime = null; + SearchFeaturesRequest.create = function create(properties) { + return new SearchFeaturesRequest(properties); + }; /** - * ImportFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @static + * @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 */ - ImportFeatureValuesRequest.prototype.entityType = ""; + SearchFeaturesRequest.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); + return writer; + }; /** - * ImportFeatureValuesRequest entityIdField. - * @member {string} entityIdField - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * 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.SearchFeaturesRequest + * @static + * @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 */ - ImportFeatureValuesRequest.prototype.entityIdField = ""; + SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ImportFeatureValuesRequest featureSpecs. - * @member {Array.} featureSpecs - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * @function decode + * @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.SearchFeaturesRequest} SearchFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; + 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.SearchFeaturesRequest(); + 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(); + break; + case 5: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ImportFeatureValuesRequest disableOnlineServing. - * @member {boolean} disableOnlineServing - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - ImportFeatureValuesRequest.prototype.disableOnlineServing = false; + SearchFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ImportFeatureValuesRequest workerCount. - * @member {number} workerCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Verifies a SearchFeaturesRequest message. + * @function verify + * @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 */ - ImportFeatureValuesRequest.prototype.workerCount = 0; + SearchFeaturesRequest.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"; + return null; + }; /** - * ImportFeatureValuesRequest disableIngestionAnalysis. - * @member {boolean} disableIngestionAnalysis - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest + */ + SearchFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + 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); + return message; + }; + + /** + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} message SearchFeaturesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchFeaturesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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 SearchFeaturesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance + * @returns {Object.} JSON object */ - ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; + SearchFeaturesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return SearchFeaturesRequest; + })(); + + v1beta1.SearchFeaturesResponse = (function() { /** - * ImportFeatureValuesRequest source. - * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Properties of a SearchFeaturesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISearchFeaturesResponse + * @property {Array.|null} [features] SearchFeaturesResponse features + * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken + */ + + /** + * Constructs a new SearchFeaturesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SearchFeaturesResponse. + * @implements ISearchFeaturesResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set + */ + function SearchFeaturesResponse(properties) { + this.features = []; + 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]]; + } + + /** + * SearchFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @instance */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + SearchFeaturesResponse.prototype.features = $util.emptyArray; /** - * ImportFeatureValuesRequest featureTimeSource. - * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * SearchFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @instance */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "featureTimeSource", { - get: $util.oneOfGetter($oneOfFields = ["featureTimeField", "featureTime"]), - set: $util.oneOfSetter($oneOfFields) - }); + SearchFeaturesResponse.prototype.nextPageToken = ""; /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new SearchFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse instance */ - ImportFeatureValuesRequest.create = function create(properties) { - return new ImportFeatureValuesRequest(properties); + SearchFeaturesResponse.create = function create(properties) { + return new SearchFeaturesResponse(properties); }; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.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.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest 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 */ - ImportFeatureValuesRequest.encode = function encode(message, writer) { + SearchFeaturesResponse.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); + 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 ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.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.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest 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 */ - ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @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.ImportFeatureValuesRequest} ImportFeatureValuesRequest + * @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 */ - ImportFeatureValuesRequest.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.ImportFeatureValuesRequest(); + 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 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(); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); break; - case 12: - message.disableIngestionAnalysis = reader.bool(); + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -194628,469 +194845,134 @@ }; /** - * Decodes an ImportFeatureValuesRequest 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.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest + * @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 */ - ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + SearchFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesRequest message. + * Verifies a SearchFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @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 */ - ImportFeatureValuesRequest.verify = function verify(message) { + SearchFeaturesResponse.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 (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 "avroSource." + error; + return "features." + 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"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ImportFeatureValuesRequest 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.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse */ - ImportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) + SearchFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) 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]); + 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.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); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ImportFeatureValuesRequest 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.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} message SearchFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesRequest.toObject = function toObject(message, options) { + SearchFeaturesResponse.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); + 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 (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; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this SearchFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { + SearchFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - 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; + return SearchFeaturesResponse; })(); - v1beta1.ImportFeatureValuesResponse = (function() { + v1beta1.UpdateFeatureRequest = (function() { /** - * Properties of an ImportFeatureValuesResponse. + * Properties of an UpdateFeatureRequest. * @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 IUpdateFeatureRequest + * @property {google.cloud.aiplatform.v1beta1.IFeature|null} [feature] UpdateFeatureRequest feature + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureRequest updateMask */ /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new UpdateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesResponse. - * @implements IImportFeatureValuesResponse + * @classdesc Represents an UpdateFeatureRequest. + * @implements IUpdateFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set */ - function ImportFeatureValuesResponse(properties) { + function UpdateFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195098,101 +194980,88 @@ } /** - * ImportFeatureValuesResponse importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse - * @instance - */ - ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ImportFeatureValuesResponse importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * UpdateFeatureRequest feature. + * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @instance */ - ImportFeatureValuesResponse.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateFeatureRequest.prototype.feature = null; /** - * ImportFeatureValuesResponse invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * UpdateFeatureRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @instance */ - ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateFeatureRequest.prototype.updateMask = null; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new UpdateFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest instance */ - ImportFeatureValuesResponse.create = function create(properties) { - return new ImportFeatureValuesResponse(properties); + UpdateFeatureRequest.create = function create(properties) { + return new UpdateFeatureRequest(properties); }; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.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.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse 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 */ - ImportFeatureValuesResponse.encode = function encode(message, writer) { + UpdateFeatureRequest.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.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 ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.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.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse 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 */ - ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @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.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @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 */ - ImportFeatureValuesResponse.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.ImportFeatureValuesResponse(); + 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.importedEntityCount = reader.int64(); + message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); break; case 2: - message.importedFeatureValueCount = reader.int64(); - break; - case 6: - message.invalidRowCount = reader.int64(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -195203,173 +195072,126 @@ }; /** - * Decodes an ImportFeatureValuesResponse 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.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @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 */ - ImportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies an UpdateFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @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 */ - ImportFeatureValuesResponse.verify = function verify(message) { + UpdateFeatureRequest.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.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; + } return null; }; /** - * Creates an ImportFeatureValuesResponse 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.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest */ - ImportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + UpdateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) 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.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 an ImportFeatureValuesResponse 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.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} message UpdateFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesResponse.toObject = function toObject(message, options) { + UpdateFeatureRequest.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.feature = null; + object.updateMask = null; } - 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.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 ImportFeatureValuesResponse to JSON. + * Converts this UpdateFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { + UpdateFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportFeatureValuesResponse; + return UpdateFeatureRequest; })(); - v1beta1.BatchReadFeatureValuesRequest = (function() { + v1beta1.DeleteFeatureRequest = (function() { /** - * Properties of a BatchReadFeatureValuesRequest. + * Properties of a DeleteFeatureRequest. * @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 IDeleteFeatureRequest + * @property {string|null} [name] DeleteFeatureRequest name */ /** - * Constructs a new BatchReadFeatureValuesRequest. + * Constructs a new DeleteFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesRequest. - * @implements IBatchReadFeatureValuesRequest + * @classdesc Represents a DeleteFeatureRequest. + * @implements IDeleteFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set */ - function BatchReadFeatureValuesRequest(properties) { - this.passThroughFields = []; - this.entityTypeSpecs = []; + function DeleteFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195377,160 +195199,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 + * DeleteFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @instance */ - Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { - get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteFeatureRequest.prototype.name = ""; /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new DeleteFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest instance */ - BatchReadFeatureValuesRequest.create = function create(properties) { - return new BatchReadFeatureValuesRequest(properties); + DeleteFeatureRequest.create = function create(properties) { + return new DeleteFeatureRequest(properties); }; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.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.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest 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 */ - BatchReadFeatureValuesRequest.encode = function encode(message, writer) { + DeleteFeatureRequest.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 DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest 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 */ - BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @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.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @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 */ - BatchReadFeatureValuesRequest.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.BatchReadFeatureValuesRequest(); + 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 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); @@ -195541,664 +195278,494 @@ }; /** - * Decodes a BatchReadFeatureValuesRequest 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.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @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 */ - BatchReadFeatureValuesRequest.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 BatchReadFeatureValuesRequest message. + * Verifies a DeleteFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @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 */ - BatchReadFeatureValuesRequest.verify = function verify(message) { + DeleteFeatureRequest.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 DeleteFeatureRequest 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.DeleteFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest */ - BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + DeleteFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) 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.DeleteFeatureRequest(); + 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 DeleteFeatureRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} message DeleteFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { + DeleteFeatureRequest.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 DeleteFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + DeleteFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - BatchReadFeatureValuesRequest.PassThroughField = (function() { + return DeleteFeatureRequest; + })(); - /** - * Properties of a PassThroughField. - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @interface IPassThroughField - * @property {string|null} [fieldName] PassThroughField fieldName - */ + v1beta1.CreateFeaturestoreOperationMetadata = (function() { - /** - * 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]]; - } + /** + * Properties of a CreateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata + */ - /** - * PassThroughField fieldName. - * @member {string} fieldName - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @instance - */ - PassThroughField.prototype.fieldName = ""; + /** + * Constructs a new CreateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateFeaturestoreOperationMetadata. + * @implements ICreateFeaturestoreOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + */ + function CreateFeaturestoreOperationMetadata(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 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); - }; + /** + * CreateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @instance + */ + CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; - /** - * 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; - }; + /** + * 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 + */ + CreateFeaturestoreOperationMetadata.create = function create(properties) { + return new CreateFeaturestoreOperationMetadata(properties); + }; - /** - * 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(); - }; + /** + * 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 + */ + 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; + }; - /** - * 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; - }; + /** + * 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 + */ + CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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()); - }; + /** + * 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 + */ + 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; + }; - /** - * 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; - }; + /** + * 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 + */ + CreateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * 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 + */ + 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; + }; - /** - * 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; + /** + * 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 + */ + CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) 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); - }; + 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; + }; - return PassThroughField; - })(); + /** + * 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 + */ + 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; + }; - BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { + /** + * Converts this CreateFeaturestoreOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - */ + return CreateFeaturestoreOperationMetadata; + })(); - /** - * 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]]; - } + v1beta1.UpdateFeaturestoreOperationMetadata = (function() { - /** - * EntityTypeSpec entityTypeId. - * @member {string} entityTypeId - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.entityTypeId = ""; + /** + * Properties of an UpdateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata + */ - /** - * EntityTypeSpec featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.featureSelector = null; + /** + * 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 + */ + 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]]; + } - /** - * EntityTypeSpec settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.settings = $util.emptyArray; + /** + * UpdateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @instance + */ + UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; - /** - * 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); - }; + /** + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance + */ + UpdateFeaturestoreOperationMetadata.create = function create(properties) { + return new UpdateFeaturestoreOperationMetadata(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 UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @static + * @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 + */ + UpdateFeaturestoreOperationMetadata.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 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(); - }; + /** + * 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.UpdateFeaturestoreOperationMetadata + * @static + * @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 + */ + UpdateFeaturestoreOperationMetadata.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; - } + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @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) { + 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(); + 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 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()); - }; + } + return message; + }; - /** - * 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; - }; + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * Verifies an UpdateFeaturestoreOperationMetadata message. + * @function verify + * @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 + */ + UpdateFeaturestoreOperationMetadata.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 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); - } + /** + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + */ + UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) 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); + } + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateFeaturestoreOperationMetadata.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; + }; - return EntityTypeSpec; - })(); + /** + * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return BatchReadFeatureValuesRequest; + return UpdateFeaturestoreOperationMetadata; })(); - v1beta1.ExportFeatureValuesRequest = (function() { + v1beta1.ImportFeatureValuesOperationMetadata = (function() { /** - * Properties of an ExportFeatureValuesRequest. + * Properties of an ImportFeatureValuesOperationMetadata. * @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 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 ExportFeatureValuesRequest. + * Constructs a new ImportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesRequest. - * @implements IExportFeatureValuesRequest + * @classdesc Represents an ImportFeatureValuesOperationMetadata. + * @implements IImportFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set */ - function ExportFeatureValuesRequest(properties) { - this.settings = []; + function ImportFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196206,157 +195773,114 @@ } /** - * 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 - * @instance - */ - ExportFeatureValuesRequest.prototype.fullExport = null; - - /** - * 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 + * ImportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - ExportFeatureValuesRequest.prototype.destination = null; + ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * ExportFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ImportFeatureValuesOperationMetadata importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - ExportFeatureValuesRequest.prototype.featureSelector = null; + ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ExportFeatureValuesRequest settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ImportFeatureValuesOperationMetadata importedFeatureValueCount. + * @member {number|Long} importedFeatureValueCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ExportFeatureValuesRequest mode. - * @member {"snapshotExport"|"fullExport"|undefined} mode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ImportFeatureValuesOperationMetadata invalidRowCount. + * @member {number|Long} invalidRowCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { - get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), - set: $util.oneOfSetter($oneOfFields) - }); + ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance */ - ExportFeatureValuesRequest.create = function create(properties) { - return new ExportFeatureValuesRequest(properties); + ImportFeatureValuesOperationMetadata.create = function create(properties) { + return new ImportFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.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.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest 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 */ - ExportFeatureValuesRequest.encode = function encode(message, writer) { + ImportFeatureValuesOperationMetadata.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.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 ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.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.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest 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 */ - ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @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.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @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 */ - ExportFeatureValuesRequest.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.ExportFeatureValuesRequest(); + 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 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: - message.entityType = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; - case 4: - message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); + case 2: + message.importedEntityCount = reader.int64(); break; - case 5: - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + case 3: + message.importedFeatureValueCount = reader.int64(); 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.invalidRowCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -196367,640 +195891,179 @@ }; /** - * Decodes an ExportFeatureValuesRequest 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.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @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 */ - ExportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesRequest message. + * Verifies an ImportFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @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 */ - ExportFeatureValuesRequest.verify = function verify(message) { + ImportFeatureValuesOperationMetadata.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.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); 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 "genericMetadata." + 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"; return null; }; /** - * Creates an ExportFeatureValuesRequest 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.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata */ - ExportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) 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.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.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 an ExportFeatureValuesRequest 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.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesRequest.toObject = function toObject(message, options) { + ImportFeatureValuesOperationMetadata.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.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.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 ExportFeatureValuesRequest to JSON. + * Converts this ImportFeatureValuesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { + ImportFeatureValuesOperationMetadata.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; + return ImportFeatureValuesOperationMetadata; })(); - v1beta1.DestinationFeatureSetting = (function() { + v1beta1.ExportFeatureValuesOperationMetadata = (function() { /** - * Properties of a DestinationFeatureSetting. + * Properties of an ExportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDestinationFeatureSetting - * @property {string|null} [featureId] DestinationFeatureSetting featureId - * @property {string|null} [destinationField] DestinationFeatureSetting destinationField + * @interface IExportFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata */ /** - * Constructs a new DestinationFeatureSetting. + * Constructs a new ExportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DestinationFeatureSetting. - * @implements IDestinationFeatureSetting + * @classdesc Represents an ExportFeatureValuesOperationMetadata. + * @implements IExportFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set */ - function DestinationFeatureSetting(properties) { + function ExportFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197008,88 +196071,75 @@ } /** - * DestinationFeatureSetting featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting - * @instance - */ - DestinationFeatureSetting.prototype.featureId = ""; - - /** - * DestinationFeatureSetting destinationField. - * @member {string} destinationField - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * ExportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @instance */ - DestinationFeatureSetting.prototype.destinationField = ""; + ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance */ - DestinationFeatureSetting.create = function create(properties) { - return new DestinationFeatureSetting(properties); + ExportFeatureValuesOperationMetadata.create = function create(properties) { + return new ExportFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.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.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting 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 */ - DestinationFeatureSetting.encode = function encode(message, writer) { + ExportFeatureValuesOperationMetadata.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); + 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 DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.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.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting 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 */ - DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @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.DestinationFeatureSetting} DestinationFeatureSetting + * @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 */ - DestinationFeatureSetting.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.DestinationFeatureSetting(); + 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.featureId = reader.string(); - break; - case 2: - message.destinationField = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -197100,118 +196150,112 @@ }; /** - * Decodes a DestinationFeatureSetting 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.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting + * @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 */ - DestinationFeatureSetting.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 DestinationFeatureSetting message. + * Verifies an ExportFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @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 */ - DestinationFeatureSetting.verify = function verify(message) { + ExportFeatureValuesOperationMetadata.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.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 DestinationFeatureSetting 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.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata */ - DestinationFeatureSetting.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) 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.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 DestinationFeatureSetting 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.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} message DestinationFeatureSetting + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DestinationFeatureSetting.toObject = function toObject(message, options) { + ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.featureId = ""; - object.destinationField = ""; - } - if (message.featureId != null && message.hasOwnProperty("featureId")) - object.featureId = message.featureId; - if (message.destinationField != null && message.hasOwnProperty("destinationField")) - object.destinationField = message.destinationField; + 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 DestinationFeatureSetting to JSON. + * Converts this ExportFeatureValuesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @instance * @returns {Object.} JSON object */ - DestinationFeatureSetting.prototype.toJSON = function toJSON() { + ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DestinationFeatureSetting; + return ExportFeatureValuesOperationMetadata; })(); - v1beta1.FeatureValueDestination = (function() { + v1beta1.BatchReadFeatureValuesOperationMetadata = (function() { /** - * Properties of a FeatureValueDestination. + * Properties of a BatchReadFeatureValuesOperationMetadata. * @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 IBatchReadFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata */ /** - * Constructs a new FeatureValueDestination. + * Constructs a new BatchReadFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValueDestination. - * @implements IFeatureValueDestination + * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. + * @implements IBatchReadFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set */ - function FeatureValueDestination(properties) { + function BatchReadFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197219,115 +196263,75 @@ } /** - * 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 - * @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 + * BatchReadFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @instance */ - Object.defineProperty(FeatureValueDestination.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance */ - FeatureValueDestination.create = function create(properties) { - return new FeatureValueDestination(properties); + BatchReadFeatureValuesOperationMetadata.create = function create(properties) { + return new BatchReadFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.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.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination 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 */ - FeatureValueDestination.encode = function encode(message, writer) { + BatchReadFeatureValuesOperationMetadata.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.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 FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.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.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination 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 */ - FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @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.FeatureValueDestination} FeatureValueDestination + * @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 */ - FeatureValueDestination.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.FeatureValueDestination(); + 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 1: - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -197338,156 +196342,112 @@ }; /** - * Decodes a FeatureValueDestination 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.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination + * @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 */ - FeatureValueDestination.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 FeatureValueDestination message. + * Verifies a BatchReadFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @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 */ - FeatureValueDestination.verify = function verify(message) { + BatchReadFeatureValuesOperationMetadata.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.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.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 FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesOperationMetadata 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.BatchReadFeatureValuesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata */ - FeatureValueDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination) + BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) 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); - } - 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); + 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); } return message; }; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValueDestination} message FeatureValueDestination + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueDestination.toObject = function toObject(message, options) { + BatchReadFeatureValuesOperationMetadata.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.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 FeatureValueDestination to JSON. + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @instance * @returns {Object.} JSON object */ - FeatureValueDestination.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureValueDestination; + return BatchReadFeatureValuesOperationMetadata; })(); - v1beta1.ExportFeatureValuesResponse = (function() { + v1beta1.CreateEntityTypeOperationMetadata = (function() { /** - * Properties of an ExportFeatureValuesResponse. + * Properties of a CreateEntityTypeOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportFeatureValuesResponse + * @interface ICreateEntityTypeOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata */ /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new CreateEntityTypeOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesResponse. - * @implements IExportFeatureValuesResponse + * @classdesc Represents a CreateEntityTypeOperationMetadata. + * @implements ICreateEntityTypeOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set */ - function ExportFeatureValuesResponse(properties) { + function CreateEntityTypeOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197495,63 +196455,76 @@ } /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * 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.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata instance */ - ExportFeatureValuesResponse.create = function create(properties) { - return new ExportFeatureValuesResponse(properties); + CreateEntityTypeOperationMetadata.create = function create(properties) { + return new CreateEntityTypeOperationMetadata(properties); }; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @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 */ - ExportFeatureValuesResponse.encode = function encode(message, 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 ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * 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.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @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 */ - ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @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.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @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 */ - ExportFeatureValuesResponse.decode = function decode(reader, length) { + 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.ExportFeatureValuesResponse(); + 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: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -197561,93 +196534,112 @@ }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @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 */ - ExportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a CreateEntityTypeOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @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 */ - ExportFeatureValuesResponse.verify = function verify(message) { + 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 an ExportFeatureValuesResponse 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.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata */ - ExportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) return object; - return new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); + 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 an ExportFeatureValuesResponse 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.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesResponse.toObject = function toObject() { - return {}; + CreateEntityTypeOperationMetadata.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 ExportFeatureValuesResponse to JSON. + * Converts this CreateEntityTypeOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { + CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportFeatureValuesResponse; + return CreateEntityTypeOperationMetadata; })(); - v1beta1.BatchReadFeatureValuesResponse = (function() { + v1beta1.CreateFeatureOperationMetadata = (function() { /** - * Properties of a BatchReadFeatureValuesResponse. + * Properties of a CreateFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchReadFeatureValuesResponse + * @interface ICreateFeatureOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata */ /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new CreateFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesResponse. - * @implements IBatchReadFeatureValuesResponse + * @classdesc Represents a CreateFeatureOperationMetadata. + * @implements ICreateFeatureOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set */ - function BatchReadFeatureValuesResponse(properties) { + function CreateFeatureOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197655,63 +196647,76 @@ } /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * CreateFeatureOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @instance + */ + CreateFeatureOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance */ - BatchReadFeatureValuesResponse.create = function create(properties) { - return new BatchReadFeatureValuesResponse(properties); + CreateFeatureOperationMetadata.create = function create(properties) { + return new CreateFeatureOperationMetadata(properties); }; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode + * @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 */ - BatchReadFeatureValuesResponse.encode = function encode(message, 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; }; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * 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.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode + * @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 */ - BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @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.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * @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 */ - BatchReadFeatureValuesResponse.decode = function decode(reader, length) { + 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.BatchReadFeatureValuesResponse(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -197721,96 +196726,112 @@ }; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * @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 */ - BatchReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchReadFeatureValuesResponse message. + * Verifies a CreateFeatureOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @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 */ - BatchReadFeatureValuesResponse.verify = function verify(message) { + 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; }; /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata */ - BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) + CreateFeatureOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) return object; - return new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); + 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; }; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesResponse.toObject = function toObject() { - return {}; + 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; }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this CreateFeatureOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { + CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchReadFeatureValuesResponse; + return CreateFeatureOperationMetadata; })(); - v1beta1.CreateEntityTypeRequest = (function() { + v1beta1.BatchCreateFeaturesOperationMetadata = (function() { /** - * Properties of a CreateEntityTypeRequest. + * Properties of a BatchCreateFeaturesOperationMetadata. * @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 + * @interface IBatchCreateFeaturesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata */ /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new BatchCreateFeaturesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @classdesc Represents a BatchCreateFeaturesOperationMetadata. + * @implements IBatchCreateFeaturesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function BatchCreateFeaturesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197818,101 +196839,75 @@ } /** - * CreateEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest - * @instance - */ - CreateEntityTypeRequest.prototype.parent = ""; - - /** - * 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 + * BatchCreateFeaturesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @instance */ - CreateEntityTypeRequest.prototype.entityTypeId = ""; + BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + BatchCreateFeaturesOperationMetadata.create = function create(properties) { + return new BatchCreateFeaturesOperationMetadata(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @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 */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + BatchCreateFeaturesOperationMetadata.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); + 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 CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * 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.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @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 */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @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.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + 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.CreateEntityTypeRequest(); + 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.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(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -197923,129 +196918,129 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a BatchCreateFeaturesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.verify = function verify(message) { + BatchCreateFeaturesOperationMetadata.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 (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "entityType." + error; + return "genericMetadata." + error; } - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - if (!$util.isString(message.entityTypeId)) - return "entityTypeId: string expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) 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.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); } - if (object.entityTypeId != null) - message.entityTypeId = String(object.entityTypeId); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - 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; + 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 CreateEntityTypeRequest to JSON. + * Converts this BatchCreateFeaturesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeRequest; + return BatchCreateFeaturesOperationMetadata; })(); - v1beta1.GetEntityTypeRequest = (function() { + v1beta1.HyperparameterTuningJob = (function() { /** - * Properties of a GetEntityTypeRequest. + * Properties of a HyperparameterTuningJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name + * @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 */ /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new HyperparameterTuningJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest + * @classdesc Represents a HyperparameterTuningJob. + * @implements IHyperparameterTuningJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set */ - function GetEntityTypeRequest(properties) { + 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) @@ -198053,76 +197048,294 @@ } /** - * GetEntityTypeRequest name. + * HyperparameterTuningJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @instance */ - GetEntityTypeRequest.prototype.name = ""; + HyperparameterTuningJob.prototype.name = ""; /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * HyperparameterTuningJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.displayName = ""; + + /** + * HyperparameterTuningJob studySpec. + * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.studySpec = null; + + /** + * HyperparameterTuningJob maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxTrialCount = 0; + + /** + * HyperparameterTuningJob parallelTrialCount. + * @member {number} parallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.parallelTrialCount = 0; + + /** + * HyperparameterTuningJob maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; + + /** + * HyperparameterTuningJob trialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trialJobSpec = null; + + /** + * HyperparameterTuningJob trials. + * @member {Array.} trials + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trials = $util.emptyArray; + + /** + * HyperparameterTuningJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.state = 0; + + /** + * HyperparameterTuningJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.createTime = null; + + /** + * HyperparameterTuningJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.startTime = null; + + /** + * HyperparameterTuningJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.endTime = null; + + /** + * HyperparameterTuningJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.updateTime = null; + + /** + * HyperparameterTuningJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.error = null; + + /** + * HyperparameterTuningJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.labels = $util.emptyObject; + + /** + * 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 HyperparameterTuningJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob instance */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); + HyperparameterTuningJob.create = function create(properties) { + return new HyperparameterTuningJob(properties); }; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @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 */ - GetEntityTypeRequest.encode = function encode(message, 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 GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * 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.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @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 */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @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.GetEntityTypeRequest} GetEntityTypeRequest + * @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 */ - GetEntityTypeRequest.decode = function decode(reader, length) { + 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.GetEntityTypeRequest(); + 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: + 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()); + break; default: reader.skipType(tag & 7); break; @@ -198132,112 +197345,364 @@ }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @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 */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a HyperparameterTuningJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @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 */ - GetEntityTypeRequest.verify = function verify(message) { + 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; + } + } + 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; }; /** - * Creates a GetEntityTypeRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + HyperparameterTuningJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); + 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; }; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @static - * @param {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} message HyperparameterTuningJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEntityTypeRequest.toObject = function toObject(message, options) { + HyperparameterTuningJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 GetEntityTypeRequest to JSON. + * Converts this HyperparameterTuningJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob * @instance * @returns {Object.} JSON object */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { + HyperparameterTuningJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEntityTypeRequest; + return HyperparameterTuningJob; })(); - v1beta1.ListEntityTypesRequest = (function() { + v1beta1.Study = (function() { /** - * Properties of a ListEntityTypesRequest. + * Properties of a Study. * @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 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 ListEntityTypesRequest. + * Constructs a new Study. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest + * @classdesc Represents a Study. + * @implements IStudy * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set */ - function ListEntityTypesRequest(properties) { + function Study(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198245,140 +197710,140 @@ } /** - * ListEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.parent = ""; + Study.prototype.name = ""; /** - * ListEntityTypesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.filter = ""; + Study.prototype.displayName = ""; /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study studySpec. + * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.pageSize = 0; + Study.prototype.studySpec = null; /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study state. + * @member {google.cloud.aiplatform.v1beta1.Study.State} state + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.pageToken = ""; + Study.prototype.state = 0; /** - * ListEntityTypesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.orderBy = ""; + Study.prototype.createTime = null; /** - * ListEntityTypesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * Study inactiveReason. + * @member {string} inactiveReason + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance */ - ListEntityTypesRequest.prototype.readMask = null; + Study.prototype.inactiveReason = ""; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new Study instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Study} Study instance */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); + Study.create = function create(properties) { + return new Study(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @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 */ - ListEntityTypesRequest.encode = function encode(message, writer) { + Study.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.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; }; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * 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.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @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 */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Study.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a Study message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @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.ListEntityTypesRequest} ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.decode = function decode(reader, length) { + 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.ListEntityTypesRequest(); + 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.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.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); break; case 4: - message.pageToken = reader.string(); + message.state = reader.int32(); break; case 5: - message.orderBy = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 6: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.inactiveReason = reader.string(); break; default: reader.skipType(tag & 7); @@ -198389,155 +197854,213 @@ }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a Study message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + Study.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a Study message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.verify = function verify(message) { + Study.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 (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 "readMask." + 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; }; /** - * Creates a ListEntityTypesRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.aiplatform.v1beta1.Study} Study */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + Study.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Study) 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.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; }; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a Study message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @static - * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.aiplatform.v1beta1.Study} message Study * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesRequest.toObject = function toObject(message, options) { + Study.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; + object.name = ""; + object.displayName = ""; + object.studySpec = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.inactiveReason = ""; } - 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.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; }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this Study to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.Study * @instance * @returns {Object.} JSON object */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { + Study.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesRequest; + /** + * 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; })(); - v1beta1.ListEntityTypesResponse = (function() { + v1beta1.Trial = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of a Trial. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + * @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 */ /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new Trial. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents a Trial. + * @implements ITrial * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + 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) @@ -198545,318 +198068,244 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * Trial name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + Trial.prototype.name = ""; /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * Trial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListEntityTypesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse instance - */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); - }; - - /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @static - * @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 - */ - ListEntityTypesResponse.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); - return writer; - }; - - /** - * 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.ListEntityTypesResponse - * @static - * @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 - */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Trial.prototype.id = ""; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. - * @function decode - * @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.ListEntityTypesResponse} ListEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Trial state. + * @member {google.cloud.aiplatform.v1beta1.Trial.State} state + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - 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.ListEntityTypesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - 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(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Trial.prototype.state = 0; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Trial parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Trial.prototype.parameters = $util.emptyArray; /** - * Verifies a ListEntityTypesResponse message. - * @function verify - * @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 + * Trial finalMeasurement. + * @member {google.cloud.aiplatform.v1beta1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - ListEntityTypesResponse.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]); - if (error) - return "entityTypes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Trial.prototype.finalMeasurement = null; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse + * Trial measurements. + * @member {Array.} measurements + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) - 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]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + Trial.prototype.measurements = $util.emptyArray; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} message ListEntityTypesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Trial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - ListEntityTypesResponse.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); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Trial.prototype.startTime = null; /** - * Converts this ListEntityTypesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * Trial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance - * @returns {Object.} JSON object */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListEntityTypesResponse; - })(); - - v1beta1.UpdateEntityTypeRequest = (function() { + Trial.prototype.endTime = null; /** - * Properties of an UpdateEntityTypeRequest. - * @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 + * Trial clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ + Trial.prototype.clientId = ""; /** - * Constructs a new UpdateEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * Trial infeasibleReason. + * @member {string} infeasibleReason + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance */ - function UpdateEntityTypeRequest(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.prototype.infeasibleReason = ""; /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * Trial customJob. + * @member {string} customJob + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance */ - UpdateEntityTypeRequest.prototype.entityType = null; + Trial.prototype.customJob = ""; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * Trial webAccessUris. + * @member {Object.} webAccessUris + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + Trial.prototype.webAccessUris = $util.emptyObject; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new Trial instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + Trial.create = function create(properties) { + return new Trial(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @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 */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + Trial.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.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 UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * 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.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @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 */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + Trial.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a Trial message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + 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.UpdateEntityTypeRequest(); + 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.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + 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); @@ -198867,338 +198316,542 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a Trial message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + Trial.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a Trial message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.verify = function verify(message) { + Trial.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 (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 "entityType." + error; + return "finalMeasurement." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + 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 "updateMask." + 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 an UpdateEntityTypeRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + Trial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial) 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); + 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.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); + 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; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a Trial message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.Trial} message Trial * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + 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.entityType = null; - object.updateMask = null; + 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 (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 UpdateEntityTypeRequest to JSON. + * Converts this Trial to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.Trial * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + Trial.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEntityTypeRequest; - })(); + Trial.Parameter = (function() { - v1beta1.DeleteEntityTypeRequest = (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 + */ - /** - * Properties of a DeleteEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force - */ + /** + * 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]]; + } - /** - * Constructs a new DeleteEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - */ - function DeleteEntityTypeRequest(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 = ""; - /** - * DeleteEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; + /** + * Parameter value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter + * @instance + */ + Parameter.prototype.value = null; - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.force = false; + /** + * 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); + }; - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance - */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(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 DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @static - * @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 - */ - DeleteEntityTypeRequest.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 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(); + }; - /** - * 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.DeleteEntityTypeRequest - * @static - * @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 - */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. - * @function decode - * @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.DeleteEntityTypeRequest} DeleteEntityTypeRequest - * @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) { - 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(); - 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; + /** + * 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; - }; + return message; + }; - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 DeleteEntityTypeRequest message. - * @function verify - * @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 - */ - DeleteEntityTypeRequest.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; - }; + /** + * 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest - */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + /** + * 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; - 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 DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteEntityTypeRequest.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 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; + })(); /** - * Converts this DeleteEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest - * @instance - * @returns {Object.} JSON object + * 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 */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + 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 DeleteEntityTypeRequest; + return Trial; })(); - v1beta1.CreateFeatureRequest = (function() { + v1beta1.StudySpec = (function() { /** - * Properties of a CreateFeatureRequest. + * Properties of a StudySpec. * @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 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 CreateFeatureRequest. + * Constructs a new StudySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeatureRequest. - * @implements ICreateFeatureRequest + * @classdesc Represents a StudySpec. + * @implements IStudySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set */ - function CreateFeatureRequest(properties) { + 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) @@ -199206,328 +198859,199 @@ } /** - * CreateFeatureRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * StudySpec decayCurveStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null|undefined} decayCurveStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance */ - CreateFeatureRequest.prototype.parent = ""; + StudySpec.prototype.decayCurveStoppingSpec = null; /** - * CreateFeatureRequest feature. - * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * StudySpec medianAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null|undefined} medianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance */ - CreateFeatureRequest.prototype.feature = null; + StudySpec.prototype.medianAutomatedStoppingSpec = null; /** - * CreateFeatureRequest featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * StudySpec convexStopConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null|undefined} convexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance */ - CreateFeatureRequest.prototype.featureId = ""; - - /** - * Creates a new CreateFeatureRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest instance - */ - CreateFeatureRequest.create = function create(properties) { - return new CreateFeatureRequest(properties); - }; - - /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @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 - */ - 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 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. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @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 - */ - CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. - * @function decode - * @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.CreateFeatureRequest} CreateFeatureRequest - * @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) { - 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(); - 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; - } - } - return message; - }; - - /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateFeatureRequest message. - * @function verify - * @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 - */ - 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.featureId != null && message.hasOwnProperty("featureId")) - if (!$util.isString(message.featureId)) - return "featureId: string expected"; - return null; - }; + StudySpec.prototype.convexStopConfig = null; /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest + * StudySpec convexAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance */ - CreateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) - 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; - }; + StudySpec.prototype.convexAutomatedStoppingSpec = null; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} message CreateFeatureRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * StudySpec metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance */ - 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; - }; + StudySpec.prototype.metrics = $util.emptyArray; /** - * Converts this CreateFeatureRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * StudySpec parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance - * @returns {Object.} JSON object */ - CreateFeatureRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateFeatureRequest; - })(); - - v1beta1.BatchCreateFeaturesRequest = (function() { + StudySpec.prototype.parameters = $util.emptyArray; /** - * Properties of a BatchCreateFeaturesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesRequest - * @property {string|null} [parent] BatchCreateFeaturesRequest parent - * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests + * StudySpec algorithm. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm} algorithm + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance */ + StudySpec.prototype.algorithm = 0; /** - * Constructs a new BatchCreateFeaturesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesRequest. - * @implements IBatchCreateFeaturesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * StudySpec observationNoise. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise} observationNoise + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance */ - function BatchCreateFeaturesRequest(properties) { - this.requests = []; - 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.prototype.observationNoise = 0; /** - * BatchCreateFeaturesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * StudySpec measurementSelectionType. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType} measurementSelectionType + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance */ - BatchCreateFeaturesRequest.prototype.parent = ""; + StudySpec.prototype.measurementSelectionType = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * BatchCreateFeaturesRequest requests. - * @member {Array.} requests - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * StudySpec automatedStoppingSpec. + * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance */ - BatchCreateFeaturesRequest.prototype.requests = $util.emptyArray; + Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { + get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexStopConfig", "convexAutomatedStoppingSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new StudySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec instance */ - BatchCreateFeaturesRequest.create = function create(properties) { - return new BatchCreateFeaturesRequest(properties); + StudySpec.create = function create(properties) { + return new StudySpec(properties); }; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @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 */ - BatchCreateFeaturesRequest.encode = function encode(message, writer) { + StudySpec.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(); + 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 BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * 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.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @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 */ - BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + StudySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * Decodes a StudySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @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.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @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 */ - BatchCreateFeaturesRequest.decode = function decode(reader, length) { + 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.BatchCreateFeaturesRequest(); + 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: - message.parent = reader.string(); + 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.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.decode(reader, reader.uint32())); + 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); @@ -199538,1340 +199062,4036 @@ }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a StudySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @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 */ - BatchCreateFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + StudySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesRequest message. + * Verifies a StudySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @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 */ - BatchCreateFeaturesRequest.verify = function verify(message) { + StudySpec.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]); + 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 "requests." + 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 BatchCreateFeaturesRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec */ - BatchCreateFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + StudySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec) 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]); + 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 BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest + * @param {google.cloud.aiplatform.v1beta1.StudySpec} message StudySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesRequest.toObject = function toObject(message, options) { + StudySpec.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); + 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 BatchCreateFeaturesRequest to JSON. + * Converts this StudySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.StudySpec * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { + StudySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateFeaturesRequest; - })(); - - v1beta1.BatchCreateFeaturesResponse = (function() { + StudySpec.MetricSpec = (function() { - /** - * Properties of a BatchCreateFeaturesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesResponse - * @property {Array.|null} [features] BatchCreateFeaturesResponse features - */ + /** + * 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 BatchCreateFeaturesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesResponse. - * @implements IBatchCreateFeaturesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set - */ - function BatchCreateFeaturesResponse(properties) { - this.features = []; - 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 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]]; + } - /** - * BatchCreateFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @instance - */ - BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; - /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance - */ - BatchCreateFeaturesResponse.create = function create(properties) { - return new BatchCreateFeaturesResponse(properties); - }; + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; - /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @static - * @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 - */ - BatchCreateFeaturesResponse.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(); - return writer; - }; + /** + * 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); + }; - /** - * 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.BatchCreateFeaturesResponse - * @static - * @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 - */ - BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; + }; - /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. - * @function decode - * @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.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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": case 1: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + message.goal = 1; break; - default: - reader.skipType(tag & 7); + case "MINIMIZE": + case 2: + message.goal = 2; break; } - } - return message; - }; - - /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - BatchCreateFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a BatchCreateFeaturesResponse message. - * @function verify - * @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 - */ - BatchCreateFeaturesResponse.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; + /** + * 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; } - } - return null; - }; - - /** - * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse - */ - BatchCreateFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + 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; - 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 BatchCreateFeaturesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchCreateFeaturesResponse.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); - } - return object; - }; - - /** - * Converts this BatchCreateFeaturesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse - * @instance - * @returns {Object.} JSON object - */ - BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BatchCreateFeaturesResponse; - })(); - - v1beta1.GetFeatureRequest = (function() { - - /** - * Properties of a GetFeatureRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetFeatureRequest - * @property {string|null} [name] GetFeatureRequest name - */ + }; - /** - * Constructs a new GetFeatureRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetFeatureRequest. - * @implements IGetFeatureRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set - */ - function GetFeatureRequest(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]]; - } + /** + * 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); + }; - /** - * GetFeatureRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @instance - */ - GetFeatureRequest.prototype.name = ""; + /** + * 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; + })(); - /** - * Creates a new GetFeatureRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest instance - */ - GetFeatureRequest.create = function create(properties) { - return new GetFeatureRequest(properties); - }; + return MetricSpec; + })(); - /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @static - * @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 - */ - GetFeatureRequest.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; - }; + StudySpec.ParameterSpec = (function() { - /** - * 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.GetFeatureRequest - * @static - * @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 - */ - GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. - * @function decode - * @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.GetFeatureRequest} GetFeatureRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * 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 message; - }; - - /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetFeatureRequest message. - * @function verify - * @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 - */ - GetFeatureRequest.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 GetFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest - */ - GetFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest) - return object; - 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 a GetFeatureRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetFeatureRequest} message GetFeatureRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetFeatureRequest.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 GetFeatureRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest - * @instance - * @returns {Object.} JSON object - */ - GetFeatureRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; - return GetFeatureRequest; - })(); + /** + * 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; - v1beta1.ListFeaturesRequest = (function() { + /** + * 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; - /** - * Properties of a ListFeaturesRequest. - * @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 - */ + /** + * 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; - /** - * Constructs a new ListFeaturesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturesRequest. - * @implements IListFeaturesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set - */ - function ListFeaturesRequest(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 parameterId. + * @member {string} parameterId + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.parameterId = ""; - /** - * ListFeaturesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.parent = ""; + /** + * ParameterSpec scaleType. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType} scaleType + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.scaleType = 0; - /** - * ListFeaturesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.filter = ""; + /** + * ParameterSpec conditionalParameterSpecs. + * @member {Array.} conditionalParameterSpecs + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.conditionalParameterSpecs = $util.emptyArray; - /** - * ListFeaturesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.pageSize = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * ListFeaturesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.pageToken = ""; + /** + * 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) + }); - /** - * ListFeaturesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.orderBy = ""; + /** + * 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); + }; - /** - * ListFeaturesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.readMask = 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; + }; - /** - * ListFeaturesRequest latestStatsCount. - * @member {number} latestStatsCount - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.latestStatsCount = 0; + /** + * 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(); + }; - /** - * Creates a new ListFeaturesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest instance - */ - ListFeaturesRequest.create = function create(properties) { - return new ListFeaturesRequest(properties); - }; + /** + * 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; + }; - /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @static - * @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 - */ - ListFeaturesRequest.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.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestStatsCount); - return writer; - }; + /** + * 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()); + }; - /** - * 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.ListFeaturesRequest - * @static - * @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 - */ - ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; + }; - /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. - * @function decode - * @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.ListFeaturesRequest} ListFeaturesRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * 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.parent = reader.string(); + message.scaleType = 1; break; + case "UNIT_LOG_SCALE": case 2: - message.filter = reader.string(); + message.scaleType = 2; break; + case "UNIT_REVERSE_LOG_SCALE": 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()); - break; - case 7: - message.latestStatsCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); + message.scaleType = 3; break; } - } - return message; - }; - - /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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; + }; - /** - * Verifies a ListFeaturesRequest message. - * @function verify - * @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 - */ - ListFeaturesRequest.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; + /** + * 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); + } + 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; + + /** + * DoubleValueSpec maxValue. + * @member {number} maxValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.maxValue = 0; + + /** + * DoubleValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * 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) + }); + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return DoubleValueSpec; + })(); + + ParameterSpec.IntegerValueSpec = (function() { + + /** + * 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 + */ + + /** + * 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]]; + } + + /** + * 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; + + /** + * 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; + + /** + * IntegerValueSpec defaultValue. + * @member {number|Long|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * 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) + }); + + /** + * 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); + }; + + /** + * 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 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(); + }; + + /** + * 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; + }; + + /** + * 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 + */ + + /** + * 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]]; + } + + /** + * 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]]; + } + + /** + * 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]]; + } + + /** + * 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; + }; + + /** + * 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); + }; + + return DiscreteValueCondition; + })(); + + ConditionalParameterSpec.IntValueCondition = (function() { + + /** + * Properties of an IntValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface IIntValueCondition + * @property {Array.|null} [values] IntValueCondition values + */ + + /** + * 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]]; + } + + /** + * IntValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + */ + IntValueCondition.prototype.values = $util.emptyArray; + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return IntValueCondition; + })(); + + ConditionalParameterSpec.CategoricalValueCondition = (function() { + + /** + * Properties of a CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface ICategoricalValueCondition + * @property {Array.|null} [values] CategoricalValueCondition values + */ + + /** + * 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]]; + } + + /** + * CategoricalValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + */ + CategoricalValueCondition.prototype.values = $util.emptyArray; + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return CategoricalValueCondition; + })(); + + return ConditionalParameterSpec; + })(); + + /** + * 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; + })(); + + return ParameterSpec; + })(); + + StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + + /** + * Properties of a DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IDecayCurveAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + */ + + /** + * 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]]; } - 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. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest - */ - ListFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + /** + * DecayCurveAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + */ + DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * 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); + }; + + /** + * 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 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; return object; - 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.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. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} message ListFeaturesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListFeaturesRequest.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; - object.latestStatsCount = 0; + /** + * 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); + }; + + return DecayCurveAutomatedStoppingSpec; + })(); + + StudySpec.MedianAutomatedStoppingSpec = (function() { + + /** + * Properties of a MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IMedianAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + */ + + /** + * 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]]; } - 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 ListFeaturesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - * @returns {Object.} JSON object - */ - ListFeaturesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * MedianAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + */ + MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; - return ListFeaturesRequest; - })(); + /** + * 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); + }; - v1beta1.ListFeaturesResponse = (function() { + /** + * 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; + }; - /** - * Properties of a ListFeaturesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturesResponse - * @property {Array.|null} [features] ListFeaturesResponse features - * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken - */ + /** + * 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(); + }; - /** - * Constructs a new ListFeaturesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturesResponse. - * @implements IListFeaturesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set - */ - function ListFeaturesResponse(properties) { - this.features = []; - 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 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; + }; - /** - * ListFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @instance - */ - ListFeaturesResponse.prototype.features = $util.emptyArray; + /** + * 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()); + }; - /** - * ListFeaturesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @instance - */ - ListFeaturesResponse.prototype.nextPageToken = ""; + /** + * 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; + }; - /** - * Creates a new ListFeaturesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse instance - */ - ListFeaturesResponse.create = function create(properties) { - return new ListFeaturesResponse(properties); - }; + /** + * 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; + }; - /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @static - * @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 - */ - ListFeaturesResponse.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); - return writer; - }; + /** + * 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; + }; - /** - * 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.ListFeaturesResponse - * @static - * @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 - */ - ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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); + }; - /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. - * @function decode - * @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.ListFeaturesResponse} ListFeaturesResponse - * @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) { - 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(); - 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())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + return MedianAutomatedStoppingSpec; + })(); + + StudySpec.ConvexAutomatedStoppingSpec = (function() { + + /** + * 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 + */ + + /** + * 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]]; } - return message; - }; - /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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; - /** - * Verifies a ListFeaturesResponse message. - * @function verify - * @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 - */ - ListFeaturesResponse.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; + /** + * 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 + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + } } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return message; + }; - /** - * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse - */ - ListFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) - 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]); + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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 (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + 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; + }; - /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} message ListFeaturesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListFeaturesResponse.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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * 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); + }; - /** - * Converts this ListFeaturesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse - * @instance - * @returns {Object.} JSON object - */ - ListFeaturesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ConvexAutomatedStoppingSpec; + })(); - return ListFeaturesResponse; - })(); + StudySpec.ConvexStopConfig = (function() { - v1beta1.SearchFeaturesRequest = (function() { + /** + * 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 + */ - /** - * Properties of a SearchFeaturesRequest. - * @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 - */ + /** + * 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]]; + } - /** - * Constructs a new SearchFeaturesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchFeaturesRequest. - * @implements ISearchFeaturesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set - */ - function SearchFeaturesRequest(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]]; - } + /** + * 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; - /** - * SearchFeaturesRequest location. - * @member {string} location - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.location = ""; + /** + * 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; - /** - * SearchFeaturesRequest query. - * @member {string} query - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.query = ""; + /** + * 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; - /** - * SearchFeaturesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.pageSize = 0; + /** + * ConvexStopConfig learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.learningRateParameterName = ""; - /** - * SearchFeaturesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.pageToken = ""; + /** + * ConvexStopConfig useSeconds. + * @member {boolean} useSeconds + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.useSeconds = false; - /** - * Creates a new SearchFeaturesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest instance - */ - SearchFeaturesRequest.create = function create(properties) { - return new SearchFeaturesRequest(properties); - }; + /** + * 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); + }; - /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @static - * @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 - */ - SearchFeaturesRequest.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); - return writer; - }; + /** + * 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; + }; - /** - * 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.SearchFeaturesRequest - * @static - * @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 - */ - SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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(); + }; - /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. - * @function decode - * @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.SearchFeaturesRequest} SearchFeaturesRequest - * @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) { - 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(); - 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(); - break; - case 5: - message.pageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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 SearchFeaturesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - SearchFeaturesRequest.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 SearchFeaturesRequest message. - * @function verify - * @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 - */ - SearchFeaturesRequest.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"; - return null; - }; + return ConvexStopConfig; + })(); /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest + * 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 */ - SearchFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) - 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); - 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 SearchFeaturesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} message SearchFeaturesRequest - * @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 */ - SearchFeaturesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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; - }; + 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 SearchFeaturesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @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 */ - SearchFeaturesRequest.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 SearchFeaturesRequest; + return StudySpec; })(); - v1beta1.SearchFeaturesResponse = (function() { + v1beta1.Measurement = (function() { /** - * Properties of a SearchFeaturesResponse. + * Properties of a Measurement. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchFeaturesResponse - * @property {Array.|null} [features] SearchFeaturesResponse features - * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken + * @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 SearchFeaturesResponse. + * Constructs a new Measurement. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchFeaturesResponse. - * @implements ISearchFeaturesResponse + * @classdesc Represents a Measurement. + * @implements IMeasurement * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set */ - function SearchFeaturesResponse(properties) { - this.features = []; + function Measurement(properties) { + this.metrics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -200879,91 +203099,104 @@ } /** - * SearchFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance */ - SearchFeaturesResponse.prototype.features = $util.emptyArray; + Measurement.prototype.elapsedDuration = null; /** - * SearchFeaturesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * Measurement stepCount. + * @member {number|Long} stepCount + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance */ - SearchFeaturesResponse.prototype.nextPageToken = ""; + Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Measurement metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.metrics = $util.emptyArray; + + /** + * Creates a new Measurement instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance */ - SearchFeaturesResponse.create = function create(properties) { - return new SearchFeaturesResponse(properties); + Measurement.create = function create(properties) { + return new Measurement(properties); }; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.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.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse 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 */ - SearchFeaturesResponse.encode = function encode(message, writer) { + Measurement.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.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 SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.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.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse 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 */ - SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Measurement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a Measurement message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @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.SearchFeaturesResponse} SearchFeaturesResponse + * @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 */ - SearchFeaturesResponse.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.SearchFeaturesResponse(); + 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: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + 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); @@ -200974,353 +203207,382 @@ }; /** - * Decodes a SearchFeaturesResponse 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.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse + * @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 */ - SearchFeaturesResponse.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 SearchFeaturesResponse message. + * Verifies a Measurement message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @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 */ - SearchFeaturesResponse.verify = function verify(message) { + Measurement.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.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 "features." + error; + return "metrics." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchFeaturesResponse 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.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement */ - SearchFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + Measurement.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) 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]); + 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]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchFeaturesResponse 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.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} message SearchFeaturesResponse + * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchFeaturesResponse.toObject = function toObject(message, options) { + Measurement.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); + 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); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this Measurement to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance * @returns {Object.} JSON object */ - SearchFeaturesResponse.prototype.toJSON = function toJSON() { + Measurement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchFeaturesResponse; - })(); - - v1beta1.UpdateFeatureRequest = (function() { + Measurement.Metric = (function() { - /** - * Properties of an UpdateFeatureRequest. - * @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 - */ + /** + * 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 UpdateFeatureRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeatureRequest. - * @implements IUpdateFeatureRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set - */ - function UpdateFeatureRequest(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]]; - } + /** + * 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]]; + } - /** - * UpdateFeatureRequest feature. - * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @instance - */ - UpdateFeatureRequest.prototype.feature = null; + /** + * Metric metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.metricId = ""; - /** - * UpdateFeatureRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @instance - */ - UpdateFeatureRequest.prototype.updateMask = null; + /** + * Metric value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.value = 0; - /** - * Creates a new UpdateFeatureRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest instance - */ - UpdateFeatureRequest.create = function create(properties) { - return new UpdateFeatureRequest(properties); - }; + /** + * 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 UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @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 - */ - UpdateFeatureRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - 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 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 UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @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 - */ - UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 an UpdateFeatureRequest message from the specified reader or buffer. - * @function decode - * @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.UpdateFeatureRequest} UpdateFeatureRequest - * @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) { - 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(); - 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()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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; - }; + return message; + }; - /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 an UpdateFeatureRequest message. - * @function verify - * @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 - */ - UpdateFeatureRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object 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; - } - return null; - }; + /** + * 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 an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest - */ - UpdateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + /** + * 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; - 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 an UpdateFeatureRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} message UpdateFeatureRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateFeatureRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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 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); + }; - /** - * Converts this UpdateFeatureRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateFeatureRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Metric; + })(); - return UpdateFeatureRequest; + return Measurement; })(); - v1beta1.DeleteFeatureRequest = (function() { + v1beta1.Index = (function() { /** - * Properties of a DeleteFeatureRequest. + * Properties of an Index. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteFeatureRequest - * @property {string|null} [name] DeleteFeatureRequest name + * @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 DeleteFeatureRequest. + * Constructs a new Index. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteFeatureRequest. - * @implements IDeleteFeatureRequest + * @classdesc Represents an Index. + * @implements IIndex * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set */ - function DeleteFeatureRequest(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) @@ -201328,262 +203590,215 @@ } /** - * DeleteFeatureRequest name. + * Index name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - DeleteFeatureRequest.prototype.name = ""; - - /** - * Creates a new DeleteFeatureRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest instance - */ - DeleteFeatureRequest.create = function create(properties) { - return new DeleteFeatureRequest(properties); - }; - - /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @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 - */ - DeleteFeatureRequest.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 DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @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 - */ - DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. - * @function decode - * @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.DeleteFeatureRequest} DeleteFeatureRequest - * @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) { - 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(); - 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 DeleteFeatureRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteFeatureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Index.prototype.name = ""; /** - * Verifies a DeleteFeatureRequest message. - * @function verify - * @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 + * Index displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance */ - DeleteFeatureRequest.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; - }; + Index.prototype.displayName = ""; /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest + * Index description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance */ - DeleteFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + Index.prototype.description = ""; /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} message DeleteFeatureRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Index metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance */ - DeleteFeatureRequest.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; - }; + Index.prototype.metadataSchemaUri = ""; /** - * Converts this DeleteFeatureRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * Index metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance - * @returns {Object.} JSON object */ - DeleteFeatureRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Index.prototype.metadata = null; - return DeleteFeatureRequest; - })(); + /** + * Index deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.deployedIndexes = $util.emptyArray; - v1beta1.CreateFeaturestoreOperationMetadata = (function() { + /** + * Index etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.etag = ""; /** - * Properties of a CreateFeaturestoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata + * Index labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance */ + Index.prototype.labels = $util.emptyObject; /** - * Constructs a new CreateFeaturestoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeaturestoreOperationMetadata. - * @implements ICreateFeaturestoreOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + * Index createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance */ - function CreateFeaturestoreOperationMetadata(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]]; - } + Index.prototype.createTime = null; /** - * CreateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * Index updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + Index.prototype.updateTime = null; /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new Index instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance */ - CreateFeaturestoreOperationMetadata.create = function create(properties) { - return new CreateFeaturestoreOperationMetadata(properties); + Index.create = function create(properties) { + return new Index(properties); }; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.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.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata 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 */ - CreateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + Index.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.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 CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.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.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata 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 */ - CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + Index.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes an Index message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @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.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @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 */ - CreateFeaturestoreOperationMetadata.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.CreateFeaturestoreOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + 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) { + 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); @@ -201594,112 +203809,239 @@ }; /** - * Decodes a CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @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 */ - CreateFeaturestoreOperationMetadata.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 CreateFeaturestoreOperationMetadata message. + * Verifies an Index message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @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 */ - CreateFeaturestoreOperationMetadata.verify = function verify(message) { + Index.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.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 "genericMetadata." + 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 CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.Index} Index */ - CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + Index.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) 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.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 CreateFeaturestoreOperationMetadata 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.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.Index} message Index * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + Index.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.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; }; /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. + * Converts this Index to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + Index.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeaturestoreOperationMetadata; + return Index; })(); - v1beta1.UpdateFeaturestoreOperationMetadata = (function() { + v1beta1.IndexEndpoint = (function() { /** - * Properties of an UpdateFeaturestoreOperationMetadata. + * Properties of an IndexEndpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata + * @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 UpdateFeaturestoreOperationMetadata. + * Constructs a new IndexEndpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeaturestoreOperationMetadata. - * @implements IUpdateFeaturestoreOperationMetadata + * @classdesc Represents an IndexEndpoint. + * @implements IIndexEndpoint * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set */ - function UpdateFeaturestoreOperationMetadata(properties) { + 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) @@ -201707,75 +204049,215 @@ } /** - * UpdateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * IndexEndpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @instance */ - UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + IndexEndpoint.prototype.name = ""; /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * IndexEndpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.displayName = ""; + + /** + * 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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance */ - UpdateFeaturestoreOperationMetadata.create = function create(properties) { - return new UpdateFeaturestoreOperationMetadata(properties); + IndexEndpoint.create = function create(properties) { + return new IndexEndpoint(properties); }; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata 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 */ - UpdateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + IndexEndpoint.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.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 UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata 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 */ - UpdateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes an IndexEndpoint message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @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.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @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 */ - UpdateFeaturestoreOperationMetadata.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.UpdateFeaturestoreOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + 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; + 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); @@ -201786,115 +204268,235 @@ }; /** - * Decodes an UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @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 */ - UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeaturestoreOperationMetadata message. + * Verifies an IndexEndpoint message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @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 */ - UpdateFeaturestoreOperationMetadata.verify = function verify(message) { + IndexEndpoint.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.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 "genericMetadata." + 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 an UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint */ - UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + IndexEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) 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.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 plain object from an UpdateFeaturestoreOperationMetadata 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.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + IndexEndpoint.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.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; }; /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * Converts this IndexEndpoint to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @instance * @returns {Object.} JSON object */ - UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + IndexEndpoint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFeaturestoreOperationMetadata; + return IndexEndpoint; })(); - v1beta1.ImportFeatureValuesOperationMetadata = (function() { + v1beta1.DeployedIndex = (function() { /** - * Properties of an ImportFeatureValuesOperationMetadata. + * Properties of a DeployedIndex. * @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 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 ImportFeatureValuesOperationMetadata. + * Constructs a new DeployedIndex. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesOperationMetadata. - * @implements IImportFeatureValuesOperationMetadata + * @classdesc Represents a DeployedIndex. + * @implements IDeployedIndex * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set */ - function ImportFeatureValuesOperationMetadata(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) @@ -201902,114 +204504,221 @@ } /** - * ImportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * DeployedIndex id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + DeployedIndex.prototype.id = ""; /** - * ImportFeatureValuesOperationMetadata importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * DeployedIndex index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeployedIndex.prototype.index = ""; /** - * ImportFeatureValuesOperationMetadata importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * DeployedIndex displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeployedIndex.prototype.displayName = ""; /** - * ImportFeatureValuesOperationMetadata invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * DeployedIndex createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeployedIndex.prototype.createTime = null; /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * 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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance */ - ImportFeatureValuesOperationMetadata.create = function create(properties) { - return new ImportFeatureValuesOperationMetadata(properties); + DeployedIndex.create = function create(properties) { + return new DeployedIndex(properties); }; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata 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 */ - ImportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + DeployedIndex.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.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 ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata 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 */ - ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a DeployedIndex message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @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.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @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 */ - ImportFeatureValuesOperationMetadata.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.ImportFeatureValuesOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.id = reader.string(); break; case 2: - message.importedEntityCount = reader.int64(); + message.index = reader.string(); break; case 3: - message.importedFeatureValueCount = reader.int64(); + 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.invalidRowCount = reader.int64(); + 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); @@ -202020,179 +204729,239 @@ }; /** - * Decodes an ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @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 */ - ImportFeatureValuesOperationMetadata.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 ImportFeatureValuesOperationMetadata message. + * Verifies a DeployedIndex message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @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 */ - ImportFeatureValuesOperationMetadata.verify = function verify(message) { + DeployedIndex.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.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 "genericMetadata." + error; + return "automaticResources." + 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.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 ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex */ - ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + DeployedIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) 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.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.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.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 ImportFeatureValuesOperationMetadata 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.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesOperationMetadata.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.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.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.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.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 ImportFeatureValuesOperationMetadata to JSON. + * Converts this DeployedIndex to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + DeployedIndex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportFeatureValuesOperationMetadata; + return DeployedIndex; })(); - v1beta1.ExportFeatureValuesOperationMetadata = (function() { + v1beta1.DeployedIndexAuthConfig = (function() { /** - * Properties of an ExportFeatureValuesOperationMetadata. + * Properties of a DeployedIndexAuthConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata + * @interface IDeployedIndexAuthConfig + * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider */ /** - * Constructs a new ExportFeatureValuesOperationMetadata. + * Constructs a new DeployedIndexAuthConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesOperationMetadata. - * @implements IExportFeatureValuesOperationMetadata + * @classdesc Represents a DeployedIndexAuthConfig. + * @implements IDeployedIndexAuthConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set */ - function ExportFeatureValuesOperationMetadata(properties) { + function DeployedIndexAuthConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -202200,75 +204969,75 @@ } /** - * ExportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * DeployedIndexAuthConfig authProvider. + * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @instance */ - ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + DeployedIndexAuthConfig.prototype.authProvider = null; /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new DeployedIndexAuthConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance */ - ExportFeatureValuesOperationMetadata.create = function create(properties) { - return new ExportFeatureValuesOperationMetadata(properties); + DeployedIndexAuthConfig.create = function create(properties) { + return new DeployedIndexAuthConfig(properties); }; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.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.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata 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 */ - ExportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + DeployedIndexAuthConfig.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.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 ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.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.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata 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 */ - ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @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.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @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 */ - ExportFeatureValuesOperationMetadata.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.ExportFeatureValuesOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -202279,112 +205048,355 @@ }; /** - * Decodes an ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @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 */ - ExportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesOperationMetadata message. + * Verifies a DeployedIndexAuthConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @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 */ - ExportFeatureValuesOperationMetadata.verify = function verify(message) { + DeployedIndexAuthConfig.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.authProvider != null && message.hasOwnProperty("authProvider")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); if (error) - return "genericMetadata." + error; + return "authProvider." + error; } return null; }; /** - * Creates an ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig */ - ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + DeployedIndexAuthConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) 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.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 an ExportFeatureValuesOperationMetadata 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.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + DeployedIndexAuthConfig.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.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 ExportFeatureValuesOperationMetadata to JSON. + * Converts this DeployedIndexAuthConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportFeatureValuesOperationMetadata; + 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.BatchReadFeatureValuesOperationMetadata = (function() { + v1beta1.IndexPrivateEndpoints = (function() { /** - * Properties of a BatchReadFeatureValuesOperationMetadata. + * Properties of an IndexPrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchReadFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata + * @interface IIndexPrivateEndpoints + * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress + * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment */ /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. + * Constructs a new IndexPrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. - * @implements IBatchReadFeatureValuesOperationMetadata + * @classdesc Represents an IndexPrivateEndpoints. + * @implements IIndexPrivateEndpoints * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set */ - function BatchReadFeatureValuesOperationMetadata(properties) { + function IndexPrivateEndpoints(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -202392,75 +205404,88 @@ } /** - * BatchReadFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * IndexPrivateEndpoints matchGrpcAddress. + * @member {string} matchGrpcAddress + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @instance */ - BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; + IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * IndexPrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.serviceAttachment = ""; + + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance */ - BatchReadFeatureValuesOperationMetadata.create = function create(properties) { - return new BatchReadFeatureValuesOperationMetadata(properties); + IndexPrivateEndpoints.create = function create(properties) { + return new IndexPrivateEndpoints(properties); }; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.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.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata 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 */ - BatchReadFeatureValuesOperationMetadata.encode = function encode(message, writer) { + IndexPrivateEndpoints.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.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 BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.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.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata 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 */ - BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @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.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @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 */ - BatchReadFeatureValuesOperationMetadata.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.BatchReadFeatureValuesOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.matchGrpcAddress = reader.string(); + break; + case 2: + message.serviceAttachment = reader.string(); break; default: reader.skipType(tag & 7); @@ -202471,304 +205496,416 @@ }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata 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.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @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 */ - BatchReadFeatureValuesOperationMetadata.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 BatchReadFeatureValuesOperationMetadata message. + * Verifies an IndexPrivateEndpoints message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @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 */ - BatchReadFeatureValuesOperationMetadata.verify = function verify(message) { + IndexPrivateEndpoints.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.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 BatchReadFeatureValuesOperationMetadata 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.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints */ - BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + IndexPrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) 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.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 BatchReadFeatureValuesOperationMetadata 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.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + IndexPrivateEndpoints.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.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; }; /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * Converts this IndexPrivateEndpoints to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + IndexPrivateEndpoints.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchReadFeatureValuesOperationMetadata; + return IndexPrivateEndpoints; })(); - v1beta1.CreateEntityTypeOperationMetadata = (function() { + v1beta1.IndexEndpointService = (function() { /** - * Properties of a CreateEntityTypeOperationMetadata. + * Constructs a new IndexEndpointService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEntityTypeOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata + * @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; /** - * 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 + * 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. */ - 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]]; - } + IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * CreateEntityTypeOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * 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 + */ + + /** + * 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 */ - CreateEntityTypeOperationMetadata.prototype.genericMetadata = 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 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 + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - CreateEntityTypeOperationMetadata.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 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 + * 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 + */ + + /** + * 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 + */ + + /** + * 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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" }); + + /** + * 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 */ - 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: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - default: - 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 + * 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 */ - CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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" }); /** - * 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 + * 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 */ - 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 CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * 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 */ - CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) - 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); - } - return message; - }; /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - CreateEntityTypeOperationMetadata.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; - }; + 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" }); /** - * Converts this CreateEntityTypeOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return CreateEntityTypeOperationMetadata; + return IndexEndpointService; })(); - v1beta1.CreateFeatureOperationMetadata = (function() { + v1beta1.CreateIndexEndpointRequest = (function() { /** - * Properties of a CreateFeatureOperationMetadata. + * Properties of a CreateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeatureOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata + * @interface ICreateIndexEndpointRequest + * @property {string|null} [parent] CreateIndexEndpointRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint */ /** - * Constructs a new CreateFeatureOperationMetadata. + * Constructs a new CreateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeatureOperationMetadata. - * @implements ICreateFeatureOperationMetadata + * @classdesc Represents a CreateIndexEndpointRequest. + * @implements ICreateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set */ - function CreateFeatureOperationMetadata(properties) { + function CreateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -202776,75 +205913,88 @@ } /** - * CreateFeatureOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * CreateIndexEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @instance */ - CreateFeatureOperationMetadata.prototype.genericMetadata = null; + CreateIndexEndpointRequest.prototype.parent = ""; /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * CreateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.indexEndpoint = null; + + /** + * Creates a new CreateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance */ - CreateFeatureOperationMetadata.create = function create(properties) { - return new CreateFeatureOperationMetadata(properties); + CreateIndexEndpointRequest.create = function create(properties) { + return new CreateIndexEndpointRequest(properties); }; /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.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.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata 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 */ - CreateFeatureOperationMetadata.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.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 CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.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.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata 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 */ - CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @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.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @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 */ - CreateFeatureOperationMetadata.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.CreateFeatureOperationMetadata(); + 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.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -202855,112 +206005,121 @@ }; /** - * Decodes a CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @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 */ - CreateFeatureOperationMetadata.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 CreateFeatureOperationMetadata message. + * Verifies a CreateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @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 */ - CreateFeatureOperationMetadata.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; } return null; }; /** - * Creates a CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest */ - CreateFeatureOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + CreateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) 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.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; }; /** - * Creates a plain object from a CreateFeatureOperationMetadata 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.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeatureOperationMetadata.toObject = function toObject(message, options) { + CreateIndexEndpointRequest.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.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; }; /** - * Converts this CreateFeatureOperationMetadata to JSON. + * Converts this CreateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { + CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeatureOperationMetadata; + return CreateIndexEndpointRequest; })(); - v1beta1.BatchCreateFeaturesOperationMetadata = (function() { + v1beta1.CreateIndexEndpointOperationMetadata = (function() { /** - * Properties of a BatchCreateFeaturesOperationMetadata. + * Properties of a CreateIndexEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata + * @interface ICreateIndexEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata */ /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new CreateIndexEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesOperationMetadata. - * @implements IBatchCreateFeaturesOperationMetadata + * @classdesc Represents a CreateIndexEndpointOperationMetadata. + * @implements ICreateIndexEndpointOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set */ - function BatchCreateFeaturesOperationMetadata(properties) { + function CreateIndexEndpointOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -202968,35 +206127,35 @@ } /** - * BatchCreateFeaturesOperationMetadata genericMetadata. + * CreateIndexEndpointOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @instance */ - BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; + CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance */ - BatchCreateFeaturesOperationMetadata.create = function create(properties) { - return new BatchCreateFeaturesOperationMetadata(properties); + CreateIndexEndpointOperationMetadata.create = function create(properties) { + return new CreateIndexEndpointOperationMetadata(properties); }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.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.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata 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 */ - BatchCreateFeaturesOperationMetadata.encode = function encode(message, writer) { + CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -203005,33 +206164,33 @@ }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.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.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata 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 */ - BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @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.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @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 */ - BatchCreateFeaturesOperationMetadata.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.BatchCreateFeaturesOperationMetadata(); + 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) { @@ -203047,30 +206206,30 @@ }; /** - * Decodes a BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @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 */ - BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesOperationMetadata message. + * Verifies a CreateIndexEndpointOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @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 */ - BatchCreateFeaturesOperationMetadata.verify = function verify(message) { + CreateIndexEndpointOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -203082,35 +206241,35 @@ }; /** - * Creates a BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata */ - BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.genericMetadata: object expected"); + 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 BatchCreateFeaturesOperationMetadata 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.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { + CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -203122,54 +206281,37 @@ }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * Converts this CreateIndexEndpointOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { + CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateFeaturesOperationMetadata; + return CreateIndexEndpointOperationMetadata; })(); - v1beta1.HyperparameterTuningJob = (function() { + v1beta1.GetIndexEndpointRequest = (function() { /** - * Properties of a HyperparameterTuningJob. + * Properties of a GetIndexEndpointRequest. * @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 IGetIndexEndpointRequest + * @property {string|null} [name] GetIndexEndpointRequest name */ /** - * Constructs a new HyperparameterTuningJob. + * Constructs a new GetIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a HyperparameterTuningJob. - * @implements IHyperparameterTuningJob + * @classdesc Represents a GetIndexEndpointRequest. + * @implements IGetIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set */ - function HyperparameterTuningJob(properties) { - this.trials = []; - this.labels = {}; + function GetIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -203177,294 +206319,76 @@ } /** - * HyperparameterTuningJob name. + * GetIndexEndpointRequest 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 - * @instance - */ - HyperparameterTuningJob.prototype.displayName = ""; - - /** - * HyperparameterTuningJob studySpec. - * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.studySpec = null; - - /** - * HyperparameterTuningJob maxTrialCount. - * @member {number} maxTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.maxTrialCount = 0; - - /** - * HyperparameterTuningJob parallelTrialCount. - * @member {number} parallelTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.parallelTrialCount = 0; - - /** - * HyperparameterTuningJob maxFailedTrialCount. - * @member {number} maxFailedTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; - - /** - * HyperparameterTuningJob trialJobSpec. - * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trialJobSpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.trialJobSpec = null; - - /** - * HyperparameterTuningJob trials. - * @member {Array.} trials - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.trials = $util.emptyArray; - - /** - * HyperparameterTuningJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.state = 0; - - /** - * HyperparameterTuningJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.createTime = null; - - /** - * HyperparameterTuningJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.startTime = null; - - /** - * HyperparameterTuningJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.endTime = null; - - /** - * HyperparameterTuningJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.updateTime = null; - - /** - * HyperparameterTuningJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.error = null; - - /** - * HyperparameterTuningJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.labels = $util.emptyObject; - - /** - * HyperparameterTuningJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @instance */ - HyperparameterTuningJob.prototype.encryptionSpec = null; + GetIndexEndpointRequest.prototype.name = ""; /** - * Creates a new HyperparameterTuningJob instance using the specified properties. + * Creates a new GetIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance */ - HyperparameterTuningJob.create = function create(properties) { - return new HyperparameterTuningJob(properties); + GetIndexEndpointRequest.create = function create(properties) { + return new GetIndexEndpointRequest(properties); }; /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.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.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob 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 */ - HyperparameterTuningJob.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); - 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 HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.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.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob 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 */ - HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { + GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @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.HyperparameterTuningJob} HyperparameterTuningJob + * @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 */ - HyperparameterTuningJob.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.HyperparameterTuningJob(), key, value; + 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; - 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()); - break; default: reader.skipType(tag & 7); break; @@ -203474,359 +206398,111 @@ }; /** - * Decodes a HyperparameterTuningJob 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.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @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 */ - HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { + GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HyperparameterTuningJob message. + * Verifies a GetIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @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 */ - HyperparameterTuningJob.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"; - 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: - 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; }; /** - * Creates a HyperparameterTuningJob 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.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest */ - HyperparameterTuningJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) + GetIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); 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; - } - 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; }; /** - * Creates a plain object from a HyperparameterTuningJob 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.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} message HyperparameterTuningJob + * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HyperparameterTuningJob.toObject = function toObject(message, options) { + GetIndexEndpointRequest.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) { + 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 HyperparameterTuningJob to JSON. + * Converts this GetIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - HyperparameterTuningJob.prototype.toJSON = function toJSON() { + GetIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HyperparameterTuningJob; + return GetIndexEndpointRequest; })(); - v1beta1.Study = (function() { + v1beta1.ListIndexEndpointsRequest = (function() { /** - * Properties of a Study. + * Properties of a ListIndexEndpointsRequest. * @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 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 Study. + * Constructs a new ListIndexEndpointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Study. - * @implements IStudy + * @classdesc Represents a ListIndexEndpointsRequest. + * @implements IListIndexEndpointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set */ - function Study(properties) { + function ListIndexEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -203834,140 +206510,127 @@ } /** - * 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 + * ListIndexEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - Study.prototype.displayName = ""; + ListIndexEndpointsRequest.prototype.parent = ""; /** - * Study studySpec. - * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1beta1.Study + * ListIndexEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - Study.prototype.studySpec = null; + ListIndexEndpointsRequest.prototype.filter = ""; /** - * Study state. - * @member {google.cloud.aiplatform.v1beta1.Study.State} state - * @memberof google.cloud.aiplatform.v1beta1.Study + * ListIndexEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - Study.prototype.state = 0; + ListIndexEndpointsRequest.prototype.pageSize = 0; /** - * Study createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Study + * ListIndexEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - Study.prototype.createTime = null; + ListIndexEndpointsRequest.prototype.pageToken = ""; /** - * Study inactiveReason. - * @member {string} inactiveReason - * @memberof google.cloud.aiplatform.v1beta1.Study + * ListIndexEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - Study.prototype.inactiveReason = ""; + ListIndexEndpointsRequest.prototype.readMask = null; /** - * Creates a new Study instance using the specified properties. + * Creates a new ListIndexEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Study} Study instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance */ - Study.create = function create(properties) { - return new Study(properties); + ListIndexEndpointsRequest.create = function create(properties) { + return new ListIndexEndpointsRequest(properties); }; /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.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.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study 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 */ - Study.encode = function encode(message, writer) { + ListIndexEndpointsRequest.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.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 Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.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.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study 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 */ - Study.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Study message from the specified reader or buffer. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Study + * @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.Study} Study + * @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 */ - Study.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.Study(); + 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.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.displayName = reader.string(); + message.filter = reader.string(); break; case 3: - message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 4: - message.state = reader.int32(); + message.pageToken = reader.string(); break; case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.inactiveReason = reader.string(); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -203978,213 +206641,147 @@ }; /** - * Decodes a Study 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.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @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 */ - Study.decodeDelimited = function decodeDelimited(reader) { + ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Study message. + * Verifies a ListIndexEndpointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Study + * @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 */ - Study.verify = function verify(message) { + ListIndexEndpointsRequest.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.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 "createTime." + error; + return "readMask." + error; } - if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) - if (!$util.isString(message.inactiveReason)) - return "inactiveReason: string expected"; return null; }; /** - * Creates a Study 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.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest */ - Study.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Study) + ListIndexEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) 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.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); } - if (object.inactiveReason != null) - message.inactiveReason = String(object.inactiveReason); return message; }; /** - * Creates a plain object from a Study 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.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Study} message Study + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Study.toObject = function toObject(message, options) { + ListIndexEndpointsRequest.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.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = 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.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.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 Study to JSON. + * Converts this ListIndexEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance * @returns {Object.} JSON object */ - Study.prototype.toJSON = function toJSON() { + ListIndexEndpointsRequest.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 ListIndexEndpointsRequest; })(); - v1beta1.Trial = (function() { + v1beta1.ListIndexEndpointsResponse = (function() { /** - * Properties of a Trial. + * Properties of a ListIndexEndpointsResponse. * @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 IListIndexEndpointsResponse + * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints + * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken */ /** - * Constructs a new Trial. + * Constructs a new ListIndexEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Trial. - * @implements ITrial + * @classdesc Represents a ListIndexEndpointsResponse. + * @implements IListIndexEndpointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set */ - function Trial(properties) { - this.parameters = []; - this.measurements = []; - this.webAccessUris = {}; + function ListIndexEndpointsResponse(properties) { + this.indexEndpoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204192,244 +206789,91 @@ } /** - * 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 + * ListIndexEndpointsResponse indexEndpoints. + * @member {Array.} indexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @instance */ - Trial.prototype.customJob = ""; + ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; /** - * Trial webAccessUris. - * @member {Object.} webAccessUris - * @memberof google.cloud.aiplatform.v1beta1.Trial + * ListIndexEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @instance */ - Trial.prototype.webAccessUris = $util.emptyObject; + ListIndexEndpointsResponse.prototype.nextPageToken = ""; /** - * Creates a new Trial instance using the specified properties. + * Creates a new ListIndexEndpointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance */ - Trial.create = function create(properties) { - return new Trial(properties); + ListIndexEndpointsResponse.create = function create(properties) { + return new ListIndexEndpointsResponse(properties); }; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.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.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial 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 */ - Trial.encode = function encode(message, writer) { + ListIndexEndpointsResponse.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.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 Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.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.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial 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 */ - Trial.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @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.Trial} Trial + * @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 */ - Trial.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.Trial(), key, value; + 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.name = 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.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.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -204440,541 +206884,134 @@ }; /** - * Decodes a Trial 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.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @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 */ - Trial.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 Trial message. + * Verifies a ListIndexEndpointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @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 */ - Trial.verify = function verify(message) { + ListIndexEndpointsResponse.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 (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 "measurements." + error; + return "indexEndpoints." + 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"; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a Trial 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.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse */ - Trial.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial) + ListIndexEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) 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]); + 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.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]]); - } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a Trial 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.Trial + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.Trial} message Trial + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Trial.toObject = function toObject(message, options) { + ListIndexEndpointsResponse.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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * 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); - }; - - 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 + * Converts this ListIndexEndpointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + * @returns {Object.} JSON object */ - 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; - })(); + ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Trial; + return ListIndexEndpointsResponse; })(); - v1beta1.StudySpec = (function() { + v1beta1.UpdateIndexEndpointRequest = (function() { /** - * Properties of a StudySpec. + * Properties of an UpdateIndexEndpointRequest. * @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 {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 IUpdateIndexEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask */ /** - * Constructs a new StudySpec. + * Constructs a new UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StudySpec. - * @implements IStudySpec + * @classdesc Represents an UpdateIndexEndpointRequest. + * @implements IUpdateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set */ - function StudySpec(properties) { - this.metrics = []; - this.parameters = []; + function UpdateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204982,186 +207019,88 @@ } /** - * 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 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 + * UpdateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - StudySpec.prototype.measurementSelectionType = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * StudySpec automatedStoppingSpec. - * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|undefined} automatedStoppingSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * UpdateIndexEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { - get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexStopConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateIndexEndpointRequest.prototype.updateMask = null; /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance */ - StudySpec.create = function create(properties) { - return new StudySpec(properties); + UpdateIndexEndpointRequest.create = function create(properties) { + return new UpdateIndexEndpointRequest(properties); }; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.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.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec 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 */ - StudySpec.encode = function encode(message, writer) { + UpdateIndexEndpointRequest.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.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 StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.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.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec 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 */ - StudySpec.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @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.StudySpec} StudySpec + * @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 */ - StudySpec.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.StudySpec(); + 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 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 1: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.decode(reader, reader.uint32())); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.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.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -205172,3698 +207111,2945 @@ }; /** - * Decodes a StudySpec 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.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @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 */ - StudySpec.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 StudySpec message. + * Verifies an UpdateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @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 */ - StudySpec.verify = function verify(message) { + UpdateIndexEndpointRequest.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.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.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); + if (error) + return "indexEndpoint." + 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.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + 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. + * Creates an UpdateIndexEndpointRequest 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.UpdateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest */ - StudySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec) + UpdateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) 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.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; + 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); } - 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; + 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 StudySpec 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.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec} message StudySpec + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StudySpec.toObject = function toObject(message, options) { + UpdateIndexEndpointRequest.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"; + 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 StudySpec to JSON. + * Converts this UpdateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - StudySpec.prototype.toJSON = function toJSON() { + UpdateIndexEndpointRequest.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 = ""; - - /** - * MetricSpec goal. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType} goal - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @instance - */ - MetricSpec.prototype.goal = 0; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; - }; - - /** - * 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()); - }; - - /** - * 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; - }; - - /** - * 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": - case 1: - message.goal = 1; - break; - case "MINIMIZE": - case 2: - message.goal = 2; - 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; - }; - - /** - * 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); - }; - - /** - * 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.ParameterSpec = (function() { - - /** - * 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 - */ - - /** - * 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]]; - } - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * ParameterSpec parameterId. - * @member {string} parameterId - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - 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 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); - }; - - /** - * 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(); - }; + return UpdateIndexEndpointRequest; + })(); - /** - * 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; - }; + v1beta1.DeleteIndexEndpointRequest = (function() { - /** - * 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()); - }; + /** + * Properties of a DeleteIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteIndexEndpointRequest + * @property {string|null} [name] DeleteIndexEndpointRequest name + */ - /** - * 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; - }; + /** + * Constructs a new DeleteIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteIndexEndpointRequest. + * @implements IDeleteIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + */ + function DeleteIndexEndpointRequest(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 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": + /** + * DeleteIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @instance + */ + DeleteIndexEndpointRequest.prototype.name = ""; + + /** + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance + */ + DeleteIndexEndpointRequest.create = function create(properties) { + return new DeleteIndexEndpointRequest(properties); + }; + + /** + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @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 + */ + DeleteIndexEndpointRequest.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 DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @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 + */ + DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - message.scaleType = 1; - break; - case "UNIT_LOG_SCALE": - case 2: - message.scaleType = 2; + message.name = reader.string(); break; - case "UNIT_REVERSE_LOG_SCALE": - case 3: - message.scaleType = 3; + default: + reader.skipType(tag & 7); 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; - }; + } + 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); - } + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteIndexEndpointRequest message. + * @function verify + * @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 + */ + DeleteIndexEndpointRequest.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 DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + */ + DeleteIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteIndexEndpointRequest.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; + }; - ParameterSpec.DoubleValueSpec = (function() { + /** + * Converts this DeleteIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - */ + return DeleteIndexEndpointRequest; + })(); - /** - * 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]]; - } + v1beta1.DeployIndexRequest = (function() { - /** - * DoubleValueSpec minValue. - * @member {number} minValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.minValue = 0; + /** + * Properties of a DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexRequest + * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + */ - /** - * DoubleValueSpec maxValue. - * @member {number} maxValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.maxValue = 0; + /** + * Constructs a new DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexRequest. + * @implements IDeployIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + */ + function DeployIndexRequest(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 defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.defaultValue = null; + /** + * DeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @instance + */ + DeployIndexRequest.prototype.indexEndpoint = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * DeployIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @instance + */ + DeployIndexRequest.prototype.deployedIndex = null; - /** - * 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) - }); + /** + * Creates a new DeployIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance + */ + DeployIndexRequest.create = function create(properties) { + return new DeployIndexRequest(properties); + }; - /** - * 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); - }; + /** + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @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 + */ + DeployIndexRequest.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(); + return writer; + }; - /** - * 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; - }; + /** + * 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.DeployIndexRequest + * @static + * @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 + */ + DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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(); - }; + /** + * Decodes a DeployIndexRequest message from the specified reader or buffer. + * @function decode + * @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.DeployIndexRequest} DeployIndexRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.indexEndpoint = reader.string(); + break; + case 2: + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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()); - }; + /** + * Verifies a DeployIndexRequest message. + * @function verify + * @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 + */ + DeployIndexRequest.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; + } + return 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; - }; + /** + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + */ + DeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + 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); + } + return message; + }; - /** - * 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; - }; + /** + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + 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; + }; - /** - * 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; - }; + /** + * Converts this DeployIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @instance + * @returns {Object.} JSON object + */ + DeployIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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); - }; + return DeployIndexRequest; + })(); - return DoubleValueSpec; - })(); + v1beta1.DeployIndexResponse = (function() { - ParameterSpec.IntegerValueSpec = (function() { + /** + * Properties of a DeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + */ - /** - * 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 - */ + /** + * 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 + */ + 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]]; + } - /** - * 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]]; + /** + * DeployIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @instance + */ + DeployIndexResponse.prototype.deployedIndex = null; + + /** + * 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 + */ + 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 + */ + 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 + */ + DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * 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 + */ + 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; + }; - /** - * 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; + /** + * 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 + */ + DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; + /** + * 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 + */ + 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; + }; - /** - * IntegerValueSpec defaultValue. - * @member {number|Long|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.defaultValue = null; + /** + * 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 + */ + 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; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * 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 + */ + 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; + }; - /** - * 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) - }); + /** + * Converts this DeployIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @instance + * @returns {Object.} JSON object + */ + DeployIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 DeployIndexResponse; + })(); - /** - * 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.DeployIndexOperationMetadata = (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 a DeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + */ + + /** + * Constructs a new DeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexOperationMetadata. + * @implements IDeployIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + */ + function DeployIndexOperationMetadata(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]]; + } + + /** + * DeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + */ + DeployIndexOperationMetadata.prototype.genericMetadata = null; + + /** + * DeployIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + */ + DeployIndexOperationMetadata.prototype.deployedIndexId = ""; - /** - * 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; - }; + /** + * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + */ + DeployIndexOperationMetadata.create = function create(properties) { + return new DeployIndexOperationMetadata(properties); + }; - /** - * 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()); - }; + /** + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @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 + */ + DeployIndexOperationMetadata.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); + return writer; + }; - /** - * 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; - }; + /** + * 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.DeployIndexOperationMetadata + * @static + * @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 + */ + DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - }; + /** + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @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) { + 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(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + 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; - }; + /** + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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); - }; + /** + * Verifies a DeployIndexOperationMetadata message. + * @function verify + * @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 + */ + DeployIndexOperationMetadata.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"; + return null; + }; - return IntegerValueSpec; - })(); + /** + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + */ + DeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + 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); + } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); + return message; + }; - ParameterSpec.CategoricalValueSpec = (function() { + /** + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployIndexOperationMetadata.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; + return object; + }; - /** - * 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 - */ + /** + * Converts this DeployIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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]]; - } + return DeployIndexOperationMetadata; + })(); - /** - * CategoricalValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.values = $util.emptyArray; + v1beta1.UndeployIndexRequest = (function() { - /** - * CategoricalValueSpec defaultValue. - * @member {string|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.defaultValue = null; + /** + * Properties of an UndeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployIndexRequest + * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint + * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new UndeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployIndexRequest. + * @implements IUndeployIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + */ + function UndeployIndexRequest(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]]; + } - /** - * 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) - }); + /** + * UndeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @instance + */ + UndeployIndexRequest.prototype.indexEndpoint = ""; - /** - * 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); - }; + /** + * UndeployIndexRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @instance + */ + UndeployIndexRequest.prototype.deployedIndexId = ""; - /** - * 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; - }; + /** + * Creates a new UndeployIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance + */ + UndeployIndexRequest.create = function create(properties) { + return new UndeployIndexRequest(properties); + }; - /** - * 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(); - }; + /** + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @static + * @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 + */ + UndeployIndexRequest.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); + return writer; + }; - /** - * 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; - }; + /** + * 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.UndeployIndexRequest + * @static + * @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 + */ + UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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()); - }; + /** + * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * @function decode + * @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.UndeployIndexRequest} UndeployIndexRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.indexEndpoint = reader.string(); + break; + case 2: + message.deployedIndexId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * Verifies an UndeployIndexRequest message. + * @function verify + * @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 + */ + UndeployIndexRequest.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"; + return null; + }; - /** - * 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; - }; + /** + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + */ + UndeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + 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); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UndeployIndexRequest.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; + return object; + }; - return CategoricalValueSpec; - })(); + /** + * Converts this UndeployIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @instance + * @returns {Object.} JSON object + */ + UndeployIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ParameterSpec.DiscreteValueSpec = (function() { + return UndeployIndexRequest; + })(); - /** - * 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 - */ + v1beta1.UndeployIndexResponse = (function() { - /** - * 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]]; - } + /** + * Properties of an UndeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployIndexResponse + */ - /** - * DiscreteValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.values = $util.emptyArray; + /** + * Constructs a new UndeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployIndexResponse. + * @implements IUndeployIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + */ + function UndeployIndexResponse(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]]; + } - /** - * DiscreteValueSpec defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.defaultValue = null; + /** + * Creates a new UndeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance + */ + UndeployIndexResponse.create = function create(properties) { + return new UndeployIndexResponse(properties); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @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 + */ + UndeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * 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) - }); + /** + * 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.UndeployIndexResponse + * @static + * @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 + */ + UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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); - }; + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @function decode + * @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.UndeployIndexResponse} UndeployIndexResponse + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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(); - }; + /** + * Verifies an UndeployIndexResponse message. + * @function verify + * @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 + */ + UndeployIndexResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * 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; - }; + /** + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + */ + UndeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + }; + + /** + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UndeployIndexResponse.toObject = function toObject() { + return {}; + }; - /** - * 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()); - }; + /** + * Converts this UndeployIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @instance + * @returns {Object.} JSON object + */ + UndeployIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; - }; + return UndeployIndexResponse; + })(); - /** - * 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; - }; + v1beta1.UndeployIndexOperationMetadata = (function() { - /** - * 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; - }; + /** + * Properties of an UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + */ - /** - * 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); - }; + /** + * Constructs a new UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployIndexOperationMetadata. + * @implements IUndeployIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + */ + function UndeployIndexOperationMetadata(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 DiscreteValueSpec; - })(); + /** + * UndeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @instance + */ + UndeployIndexOperationMetadata.prototype.genericMetadata = null; - ParameterSpec.ConditionalParameterSpec = (function() { + /** + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance + */ + UndeployIndexOperationMetadata.create = function create(properties) { + return new UndeployIndexOperationMetadata(properties); + }; - /** - * 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 - */ + /** + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @static + * @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 + */ + UndeployIndexOperationMetadata.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; + }; - /** - * 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]]; + /** + * 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.UndeployIndexOperationMetadata + * @static + * @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 + */ + UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @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) { + 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(); + 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; + }; - /** - * 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; + /** + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; + /** + * Verifies an UndeployIndexOperationMetadata message. + * @function verify + * @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 + */ + UndeployIndexOperationMetadata.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; + }; - /** - * 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; + /** + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + */ + UndeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + 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); + } + return message; + }; - /** - * 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; + /** + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UndeployIndexOperationMetadata.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; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Converts this UndeployIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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) - }); + return UndeployIndexOperationMetadata; + })(); - /** - * 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); - }; + v1beta1.MutateDeployedIndexRequest = (function() { - /** - * 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; - }; + /** + * Properties of a MutateDeployedIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMutateDeployedIndexRequest + * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex + */ - /** - * 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(); - }; + /** + * Constructs a new MutateDeployedIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MutateDeployedIndexRequest. + * @implements IMutateDeployedIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + */ + function MutateDeployedIndexRequest(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]]; + } - /** - * 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; - }; + /** + * MutateDeployedIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @instance + */ + MutateDeployedIndexRequest.prototype.indexEndpoint = ""; - /** - * 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()); - }; + /** + * MutateDeployedIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @instance + */ + MutateDeployedIndexRequest.prototype.deployedIndex = 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 a new MutateDeployedIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + */ + MutateDeployedIndexRequest.create = function create(properties) { + return new MutateDeployedIndexRequest(properties); + }; - /** - * 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; - }; + /** + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @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 + */ + MutateDeployedIndexRequest.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(); + return writer; + }; - /** - * 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; - }; + /** + * 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.MutateDeployedIndexRequest + * @static + * @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 + */ + MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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); - }; + /** + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * @function decode + * @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.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.indexEndpoint = reader.string(); + break; + case 2: + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - ConditionalParameterSpec.DiscreteValueCondition = (function() { + /** + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a DiscreteValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IDiscreteValueCondition - * @property {Array.|null} [values] DiscreteValueCondition values - */ + /** + * Verifies a MutateDeployedIndexRequest message. + * @function verify + * @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 + */ + MutateDeployedIndexRequest.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; + } + return null; + }; - /** - * 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]]; - } + /** + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @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; + }; - /** - * DiscreteValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @instance - */ - DiscreteValueCondition.prototype.values = $util.emptyArray; + /** + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutateDeployedIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + 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; + }; - /** - * 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); - }; + /** + * Converts this MutateDeployedIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; - }; + return MutateDeployedIndexRequest; + })(); - /** - * 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(); - }; + v1beta1.MutateDeployedIndexResponse = (function() { - /** - * 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 MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMutateDeployedIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + */ - /** - * 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 MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MutateDeployedIndexResponse. + * @implements IMutateDeployedIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + */ + function MutateDeployedIndexResponse(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]]; + } - /** - * 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; - }; + /** + * MutateDeployedIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @instance + */ + MutateDeployedIndexResponse.prototype.deployedIndex = 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 new MutateDeployedIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + */ + MutateDeployedIndexResponse.create = function create(properties) { + return new MutateDeployedIndexResponse(properties); + }; - /** - * 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; - }; + /** + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @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 + */ + MutateDeployedIndexResponse.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 MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @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 + */ + MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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); - }; + /** + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * @function decode + * @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.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @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) { + 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(); + 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; + }; - return DiscreteValueCondition; - })(); + /** + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ConditionalParameterSpec.IntValueCondition = (function() { + /** + * Verifies a MutateDeployedIndexResponse message. + * @function verify + * @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 + */ + MutateDeployedIndexResponse.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; + }; - /** - * Properties of an IntValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IIntValueCondition - * @property {Array.|null} [values] IntValueCondition values - */ + /** + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + */ + MutateDeployedIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) + 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); + } + return message; + }; - /** - * 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]]; - } + /** + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutateDeployedIndexResponse.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; + }; - /** - * IntValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - */ - IntValueCondition.prototype.values = $util.emptyArray; + /** + * Converts this MutateDeployedIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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); - }; + return MutateDeployedIndexResponse; + })(); - /** - * 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; - }; + v1beta1.MutateDeployedIndexOperationMetadata = (function() { - /** - * 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(); - }; + /** + * Properties of a MutateDeployedIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMutateDeployedIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId + */ - /** - * 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; - }; + /** + * Constructs a new MutateDeployedIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MutateDeployedIndexOperationMetadata. + * @implements IMutateDeployedIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + */ + function MutateDeployedIndexOperationMetadata(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]]; + } - /** - * 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()); - }; + /** + * MutateDeployedIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + */ + MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; - /** - * 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; - }; + /** + * MutateDeployedIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + */ + MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; - /** - * 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; - }; + /** + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance + */ + MutateDeployedIndexOperationMetadata.create = function create(properties) { + return new MutateDeployedIndexOperationMetadata(properties); + }; - /** - * 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 MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @static + * @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 + */ + MutateDeployedIndexOperationMetadata.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); + return writer; + }; - /** - * 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); - }; + /** + * 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.MutateDeployedIndexOperationMetadata + * @static + * @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 + */ + MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return IntValueCondition; - })(); + /** + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @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.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @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) { + 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(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - ConditionalParameterSpec.CategoricalValueCondition = (function() { + /** + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface ICategoricalValueCondition - * @property {Array.|null} [values] CategoricalValueCondition values - */ + /** + * Verifies a MutateDeployedIndexOperationMetadata message. + * @function verify + * @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 + */ + MutateDeployedIndexOperationMetadata.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"; + return null; + }; - /** - * 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 MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + */ + MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) + 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); + return message; + }; - /** - * CategoricalValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - */ - CategoricalValueCondition.prototype.values = $util.emptyArray; + /** + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutateDeployedIndexOperationMetadata.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; + return object; + }; - /** - * 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); - }; + /** + * Converts this MutateDeployedIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 MutateDeployedIndexOperationMetadata; + })(); - /** - * 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.IndexService = (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; - }; + /** + * 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); + } - /** - * 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()); - }; + (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; - /** - * 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; - }; + /** + * 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); + }; - /** - * 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; - }; + /** + * 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 + */ - /** - * 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; - }; + /** + * 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" }); - /** - * 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); - }; + /** + * 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 + */ - return CategoricalValueCondition; - })(); + /** + * 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 + */ - return ConditionalParameterSpec; - })(); + /** + * 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" }); - /** - * 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; - })(); + /** + * 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 + */ - return ParameterSpec; - })(); + /** + * 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 + */ - StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + /** + * 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" }); - /** - * Properties of a DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IDecayCurveAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration - */ + /** + * 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 + */ - /** - * 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]]; - } + /** + * 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 + */ - /** - * DecayCurveAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @instance - */ - DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * 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" }); - /** - * 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); - }; + /** + * 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 + */ - /** - * 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; - }; + /** + * 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 + */ - /** - * 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(); - }; + /** + * 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" }); - /** - * 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; - } - } - return message; - }; + /** + * 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; + })(); - /** - * 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()); - }; + v1beta1.CreateIndexRequest = (function() { - /** - * 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; - }; + /** + * 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 + */ - /** - * 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; - }; + /** + * 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]]; + } - /** - * 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; - return object; - }; + /** + * CreateIndexRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @instance + */ + CreateIndexRequest.prototype.parent = ""; - /** - * 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); - }; + /** + * CreateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @instance + */ + CreateIndexRequest.prototype.index = null; - return DecayCurveAutomatedStoppingSpec; - })(); + /** + * 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); + }; - StudySpec.MedianAutomatedStoppingSpec = (function() { + /** + * 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 + */ + 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; + }; - /** - * Properties of a MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IMedianAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration - */ + /** + * 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(); + }; - /** - * 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]]; + /** + * 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; + }; - /** - * MedianAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @instance - */ - MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * 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 + */ + CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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); - }; + /** + * 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; + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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(); - }; + /** + * 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 + */ + 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; + }; - /** - * 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; - }; + /** + * Converts this CreateIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIndexRequest.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 CreateIndexRequest; + })(); - /** - * 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.CreateIndexOperationMetadata = (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; - }; + /** + * 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 + */ - /** - * 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; - }; + /** + * 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]]; + } - /** - * 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); - }; + /** + * CreateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @instance + */ + CreateIndexOperationMetadata.prototype.genericMetadata = null; - return MedianAutomatedStoppingSpec; - })(); + /** + * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @instance + */ + CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; - StudySpec.ConvexStopConfig = (function() { + /** + * 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); + }; - /** - * 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 - */ + /** + * 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 + */ + 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; + }; - /** - * 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]]; + /** + * 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(); + }; + + /** + * 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; + }; - /** - * 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; + /** + * 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 + */ + CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; + /** + * 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; + }; - /** - * 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; + /** + * 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; + }; - /** - * ConvexStopConfig learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.learningRateParameterName = ""; + /** + * 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 + */ + 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; + }; - /** - * ConvexStopConfig useSeconds. - * @member {boolean} useSeconds - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.useSeconds = false; + /** + * Converts this CreateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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); - }; + return CreateIndexOperationMetadata; + })(); - /** - * 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; - }; + v1beta1.GetIndexRequest = (function() { - /** - * 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(); - }; + /** + * Properties of a GetIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name + */ - /** - * 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; - }; + /** + * 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]]; + } - /** - * 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()); - }; + /** + * GetIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @instance + */ + GetIndexRequest.prototype.name = ""; - /** - * 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; - }; + /** + * 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); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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; - } - 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; - }; + /** + * 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 + */ + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * 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; + }; - /** - * 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); - }; + /** + * 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()); + }; - return ConvexStopConfig; - })(); + /** + * 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 + */ + 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; + }; /** - * 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 + * 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 */ - 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; - })(); + 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; + }; /** - * 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 + * 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 */ - 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; - })(); + 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; + }; /** - * 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 + * Converts this GetIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @instance + * @returns {Object.} JSON object */ - 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; - })(); + GetIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return StudySpec; + return GetIndexRequest; })(); - v1beta1.Measurement = (function() { + v1beta1.ListIndexesRequest = (function() { /** - * Properties of a Measurement. + * Properties of a ListIndexesRequest. * @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 + * @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 */ /** - * Constructs a new Measurement. + * Constructs a new ListIndexesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Measurement. - * @implements IMeasurement + * @classdesc Represents a ListIndexesRequest. + * @implements IListIndexesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set */ - function Measurement(properties) { - this.metrics = []; + function ListIndexesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208871,104 +210057,127 @@ } /** - * Measurement elapsedDuration. - * @member {google.protobuf.IDuration|null|undefined} elapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * ListIndexesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance */ - Measurement.prototype.elapsedDuration = null; + ListIndexesRequest.prototype.parent = ""; /** - * Measurement stepCount. - * @member {number|Long} stepCount - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * ListIndexesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance */ - Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListIndexesRequest.prototype.filter = ""; /** - * Measurement metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * ListIndexesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance */ - Measurement.prototype.metrics = $util.emptyArray; + ListIndexesRequest.prototype.pageSize = 0; /** - * Creates a new Measurement instance using the specified properties. + * ListIndexesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.pageToken = ""; + + /** + * ListIndexesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.readMask = null; + + /** + * Creates a new ListIndexesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance */ - Measurement.create = function create(properties) { - return new Measurement(properties); + ListIndexesRequest.create = function create(properties) { + return new ListIndexesRequest(properties); }; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @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 */ - Measurement.encode = function encode(message, writer) { + ListIndexesRequest.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(); + 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 Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * 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.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @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 */ - Measurement.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @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.Measurement} Measurement + * @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 */ - Measurement.decode = function decode(reader, length) { + 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.Measurement(); + 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.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.stepCount = reader.int64(); + message.filter = reader.string(); 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())); + 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); @@ -208979,382 +210188,147 @@ }; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @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 */ - Measurement.decodeDelimited = function decodeDelimited(reader) { + ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Measurement message. + * Verifies a ListIndexesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @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 */ - Measurement.verify = function verify(message) { + ListIndexesRequest.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 (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 "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 "readMask." + error; } return null; }; /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest */ - Measurement.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) + ListIndexesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) 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]); - } + 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; }; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement + * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Measurement.toObject = function toObject(message, options) { + ListIndexesRequest.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); + 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 Measurement to JSON. + * Converts this ListIndexesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance * @returns {Object.} JSON object */ - Measurement.prototype.toJSON = function toJSON() { + ListIndexesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - 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; + return ListIndexesRequest; })(); - v1beta1.Index = (function() { + v1beta1.ListIndexesResponse = (function() { /** - * Properties of an Index. + * Properties of a ListIndexesResponse. * @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 + * @interface IListIndexesResponse + * @property {Array.|null} [indexes] ListIndexesResponse indexes + * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken */ /** - * Constructs a new Index. + * Constructs a new ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Index. - * @implements IIndex + * @classdesc Represents a ListIndexesResponse. + * @implements IListIndexesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set */ - function Index(properties) { - this.deployedIndexes = []; - this.labels = {}; + function ListIndexesResponse(properties) { + this.indexes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209362,215 +210336,318 @@ } /** - * Index name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Index + * ListIndexesResponse indexes. + * @member {Array.} indexes + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - Index.prototype.name = ""; + ListIndexesResponse.prototype.indexes = $util.emptyArray; /** - * Index displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Index + * ListIndexesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - Index.prototype.displayName = ""; + ListIndexesResponse.prototype.nextPageToken = ""; /** - * Index description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a new ListIndexesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance */ - Index.prototype.description = ""; + ListIndexesResponse.create = function create(properties) { + return new ListIndexesResponse(properties); + }; /** - * Index metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @static + * @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 */ - Index.prototype.metadataSchemaUri = ""; + ListIndexesResponse.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; + }; /** - * Index metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * 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.ListIndexesResponse + * @static + * @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 */ - Index.prototype.metadata = null; + ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Index deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a ListIndexesResponse message from the specified reader or buffer. + * @function decode + * @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.ListIndexesResponse} ListIndexesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.prototype.deployedIndexes = $util.emptyArray; + 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.ListIndexesResponse(); + 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; + } + } + return message; + }; /** - * Index etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - Index.prototype.etag = ""; + ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Index labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Index + * Verifies a ListIndexesResponse message. + * @function verify + * @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 + */ + ListIndexesResponse.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. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + */ + ListIndexesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) + 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; + }; + + /** + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse + * @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; + }; + + /** + * Converts this ListIndexesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance + * @returns {Object.} JSON object */ - Index.prototype.labels = $util.emptyObject; + ListIndexesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListIndexesResponse; + })(); + + v1beta1.UpdateIndexRequest = (function() { /** - * Index createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Index + * Properties of an UpdateIndexRequest. + * @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 + */ + + /** + * Constructs a new UpdateIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateIndexRequest. + * @implements IUpdateIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + */ + function UpdateIndexRequest(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]]; + } + + /** + * UpdateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - Index.prototype.createTime = null; + UpdateIndexRequest.prototype.index = null; /** - * Index updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Index + * UpdateIndexRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - Index.prototype.updateTime = null; + UpdateIndexRequest.prototype.updateMask = null; /** - * Creates a new Index instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance */ - Index.create = function create(properties) { - return new Index(properties); + UpdateIndexRequest.create = function create(properties) { + return new UpdateIndexRequest(properties); }; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.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.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index 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 */ - Index.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.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(); + 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 Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.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.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index 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 */ - Index.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Index + * @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.Index} Index + * @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 */ - Index.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.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) { - 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()); + 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.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); break; - case 11: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -209581,239 +210658,127 @@ }; /** - * Decodes an Index 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.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @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 */ - Index.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Index message. + * Verifies an UpdateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Index + * @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 */ - Index.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.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 (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); if (error) - return "createTime." + error; + return "index." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } return null; }; /** - * Creates an Index 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.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest */ - Index.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) + UpdateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) 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]); - } - } - 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); + 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.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); + 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 an Index 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.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Index} message Index + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Index.toObject = function toObject(message, options) { + UpdateIndexRequest.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]]; + object.index = null; + object.updateMask = null; } - 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.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 Index to JSON. + * Converts this UpdateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance * @returns {Object.} JSON object */ - Index.prototype.toJSON = function toJSON() { + UpdateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Index; + return UpdateIndexRequest; })(); - v1beta1.IndexEndpoint = (function() { + v1beta1.UpdateIndexOperationMetadata = (function() { /** - * Properties of an IndexEndpoint. + * Properties of an UpdateIndexOperationMetadata. * @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 + * @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 IndexEndpoint. + * Constructs a new UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpoint. - * @implements IIndexEndpoint + * @classdesc Represents an UpdateIndexOperationMetadata. + * @implements IUpdateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set */ - function IndexEndpoint(properties) { - this.deployedIndexes = []; - this.labels = {}; + function UpdateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209821,215 +210786,88 @@ } /** - * IndexEndpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.name = ""; - - /** - * IndexEndpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.displayName = ""; - - /** - * 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 + * UpdateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - IndexEndpoint.prototype.network = ""; + UpdateIndexOperationMetadata.prototype.genericMetadata = null; /** - * IndexEndpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - IndexEndpoint.prototype.enablePrivateServiceConnect = false; + UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance */ - IndexEndpoint.create = function create(properties) { - return new IndexEndpoint(properties); + UpdateIndexOperationMetadata.create = function create(properties) { + return new UpdateIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @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 */ - IndexEndpoint.encode = function encode(message, writer) { + UpdateIndexOperationMetadata.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); + 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 IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * 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.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @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 */ - IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @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.IndexEndpoint} IndexEndpoint + * @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 */ - IndexEndpoint.decode = function decode(reader, length) { + 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.IndexEndpoint(), key, value; + 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.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); 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; - 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(); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -210040,235 +210878,126 @@ }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @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 */ - IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexEndpoint message. + * Verifies an UpdateIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @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 */ - IndexEndpoint.verify = function verify(message) { + UpdateIndexOperationMetadata.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 (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.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); if (error) - return "updateTime." + error; + return "nearestNeighborSearchOperationMetadata." + 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 an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata */ - IndexEndpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) 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); + 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.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.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); } - 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 an IndexEndpoint message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexEndpoint.toObject = function toObject(message, options) { + UpdateIndexOperationMetadata.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]]; + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; } - 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; + 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 IndexEndpoint to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - IndexEndpoint.prototype.toJSON = function toJSON() { + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IndexEndpoint; + return UpdateIndexOperationMetadata; })(); - v1beta1.DeployedIndex = (function() { + v1beta1.DeleteIndexRequest = (function() { /** - * Properties of a DeployedIndex. + * Properties of a DeleteIndexRequest. * @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 + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name */ /** - * Constructs a new DeployedIndex. + * Constructs a new DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndex. - * @implements IDeployedIndex + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set */ - function DeployedIndex(properties) { - this.reservedIpRanges = []; + function DeleteIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210276,221 +211005,75 @@ } /** - * DeployedIndex id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.id = ""; - - /** - * DeployedIndex index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.index = ""; - - /** - * 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 + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance */ - DeployedIndex.prototype.deploymentGroup = ""; + DeleteIndexRequest.prototype.name = ""; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance */ - DeployedIndex.create = function create(properties) { - return new DeployedIndex(properties); + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); }; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.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.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex 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 */ - DeployedIndex.encode = function encode(message, writer) { + DeleteIndexRequest.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(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.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.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex 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 */ - DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @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.DeployedIndex} DeployedIndex + * @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 */ - DeployedIndex.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.DeployedIndex(); + 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.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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -210501,239 +211084,109 @@ }; /** - * Decodes a DeployedIndex 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.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @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 */ - DeployedIndex.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 DeployedIndex message. + * Verifies a DeleteIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @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 */ - DeployedIndex.verify = function verify(message) { + DeleteIndexRequest.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"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a DeployedIndex 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.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest */ - DeployedIndex.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) 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); + 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 DeployedIndex 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.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndex.toObject = function toObject(message, options) { + DeleteIndexRequest.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); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this DeployedIndex to JSON. + * Converts this DeleteIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance * @returns {Object.} JSON object */ - DeployedIndex.prototype.toJSON = function toJSON() { + DeleteIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedIndex; + return DeleteIndexRequest; })(); - v1beta1.DeployedIndexAuthConfig = (function() { + v1beta1.NearestNeighborSearchOperationMetadata = (function() { /** - * Properties of a DeployedIndexAuthConfig. + * Properties of a NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexAuthConfig - * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + * @interface INearestNeighborSearchOperationMetadata + * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats + * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount */ /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexAuthConfig. - * @implements IDeployedIndexAuthConfig + * @classdesc Represents a NearestNeighborSearchOperationMetadata. + * @implements INearestNeighborSearchOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set */ - function DeployedIndexAuthConfig(properties) { + function NearestNeighborSearchOperationMetadata(properties) { + this.contentValidationStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210741,75 +211194,91 @@ } /** - * DeployedIndexAuthConfig authProvider. - * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * NearestNeighborSearchOperationMetadata contentValidationStats. + * @member {Array.} contentValidationStats + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - DeployedIndexAuthConfig.prototype.authProvider = null; + NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * NearestNeighborSearchOperationMetadata dataBytesCount. + * @member {number|Long} dataBytesCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @instance + */ + NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance */ - DeployedIndexAuthConfig.create = function create(properties) { - return new DeployedIndexAuthConfig(properties); + NearestNeighborSearchOperationMetadata.create = function create(properties) { + return new NearestNeighborSearchOperationMetadata(properties); }; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.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.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig 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 */ - DeployedIndexAuthConfig.encode = function encode(message, writer) { + NearestNeighborSearchOperationMetadata.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(); + 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 DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.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.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig 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 */ - DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @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 */ - DeployedIndexAuthConfig.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.DeployedIndexAuthConfig(); + 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: - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.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.dataBytesCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -210820,112 +211289,148 @@ }; /** - * Decodes a DeployedIndexAuthConfig 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.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @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 */ - DeployedIndexAuthConfig.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 DeployedIndexAuthConfig message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @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 */ - DeployedIndexAuthConfig.verify = function verify(message) { + NearestNeighborSearchOperationMetadata.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; + 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.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 DeployedIndexAuthConfig 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata */ - DeployedIndexAuthConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) 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); + 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 DeployedIndexAuthConfig message. Also converts values to other types if specified. + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexAuthConfig.toObject = function toObject(message, options) { + NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.contentValidationStats = []; 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); + 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 DeployedIndexAuthConfig to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance * @returns {Object.} JSON object */ - DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - DeployedIndexAuthConfig.AuthProvider = (function() { + NearestNeighborSearchOperationMetadata.RecordError = (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 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 AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @classdesc Represents an AuthProvider. - * @implements IAuthProvider + * Constructs a new RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a RecordError. + * @implements IRecordError * @constructor - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set */ - function AuthProvider(properties) { - this.audiences = []; - this.allowedIssuers = []; + function RecordError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210933,94 +211438,127 @@ } /** - * AuthProvider audiences. - * @member {Array.} audiences - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * RecordError errorType. + * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @instance */ - AuthProvider.prototype.audiences = $util.emptyArray; + RecordError.prototype.errorType = 0; /** - * AuthProvider allowedIssuers. - * @member {Array.} allowedIssuers - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * RecordError errorMessage. + * @member {string} errorMessage + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @instance */ - AuthProvider.prototype.allowedIssuers = $util.emptyArray; + RecordError.prototype.errorMessage = ""; /** - * Creates a new AuthProvider instance using the specified properties. + * 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.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @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.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance */ - AuthProvider.create = function create(properties) { - return new AuthProvider(properties); + RecordError.create = function create(properties) { + return new RecordError(properties); }; /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * 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.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @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 */ - AuthProvider.encode = function encode(message, writer) { + RecordError.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.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 AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * 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.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @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 */ - AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { + RecordError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuthProvider message from the specified reader or buffer. + * Decodes a RecordError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @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.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @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 */ - AuthProvider.decode = function decode(reader, length) { + 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.DeployedIndexAuthConfig.AuthProvider(); + 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: - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push(reader.string()); + message.errorType = reader.int32(); break; case 2: - if (!(message.allowedIssuers && message.allowedIssuers.length)) - message.allowedIssuers = []; - message.allowedIssuers.push(reader.string()); + 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); @@ -211031,867 +211569,1476 @@ }; /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * Decodes a RecordError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError * @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.NearestNeighborSearchOperationMetadata.RecordError} RecordError * @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) { + RecordError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuthProvider message. + * Verifies a RecordError message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @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 */ - AuthProvider.verify = function verify(message) { + RecordError.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.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 (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 (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 an AuthProvider message from a plain object. Also converts values to their respective internal types. + * Creates a ContentValidationStats 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.NearestNeighborSearchOperationMetadata.ContentValidationStats * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats */ - AuthProvider.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + 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.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.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 an AuthProvider message. Also converts values to other types if specified. + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuthProvider.toObject = function toObject(message, options) { + ContentValidationStats.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 (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.allowedIssuers && message.allowedIssuers.length) { - object.allowedIssuers = []; - for (var j = 0; j < message.allowedIssuers.length; ++j) - object.allowedIssuers[j] = message.allowedIssuers[j]; + 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 AuthProvider to JSON. + * Converts this ContentValidationStats to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats * @instance * @returns {Object.} JSON object */ - AuthProvider.prototype.toJSON = function toJSON() { + ContentValidationStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuthProvider; - })(); + return ContentValidationStats; + })(); + + return NearestNeighborSearchOperationMetadata; + })(); + + v1beta1.JobService = (function() { + + /** + * Constructs a new JobService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a JobService + * @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) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; + + /** + * Creates new JobService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @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. + */ + JobService.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 + * @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 + * @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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ - return DeployedIndexAuthConfig; - })(); + /** + * 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 + */ - v1beta1.IndexPrivateEndpoints = (function() { + /** + * 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 + */ + 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" }); /** - * Properties of an IndexPrivateEndpoints. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexPrivateEndpoints - * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress - * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * 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 + * 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 */ - 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]]; - } /** - * IndexPrivateEndpoints matchGrpcAddress. - * @member {string} matchGrpcAddress - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * 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 */ - IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + 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" }); /** - * IndexPrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * 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 */ - IndexPrivateEndpoints.prototype.serviceAttachment = ""; /** - * 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 + * 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 */ - IndexPrivateEndpoints.create = function create(properties) { - return new IndexPrivateEndpoints(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 + * 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 */ - 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; - }; + 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" }); /** - * 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 + * 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 */ - IndexPrivateEndpoints.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 + * 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 */ - 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; - } - } - 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 + * 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 */ - IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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" }); /** - * 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 + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - 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; - }; + 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" }); /** - * Converts this IndexPrivateEndpoints to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IndexPrivateEndpoints.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return IndexPrivateEndpoints; - })(); + /** + * 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 + */ - v1beta1.IndexEndpointService = (function() { + /** + * 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 + */ + 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" }); /** - * 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 + * 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 */ - function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + /** + * 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 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. + * 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 */ - IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + 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" }); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef CreateIndexEndpointCallback + * 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 + */ + + /** + * 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 */ /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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(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" }); + 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" }); /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef GetIndexEndpointCallback + * 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.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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(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" }); + 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" }); /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef ListIndexEndpointsCallback + * 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.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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 */ - 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" }); + 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" }); /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UpdateIndexEndpointCallback + * 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.IndexEndpoint} [response] IndexEndpoint + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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(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" }); + 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" }); /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest 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 + * 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.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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 */ - 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" }); + 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" }); /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest 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 + * 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 DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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(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" }); + 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" }); /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest 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 + * 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.longrunning.Operation} [response] Operation + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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(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" }); + 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" }); /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest 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 + * 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.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @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 + * @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 */ - 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" }); + 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" }); /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return IndexEndpointService; - })(); + /** + * 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 + */ - v1beta1.CreateIndexEndpointRequest = (function() { + /** + * 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 + */ + 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" }); /** - * 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 + * 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 */ /** - * 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 + * 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 */ - 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]]; - } /** - * CreateIndexEndpointRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * 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 */ - CreateIndexEndpointRequest.prototype.parent = ""; + 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" }); /** - * CreateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * 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 */ - CreateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * 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 + * 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 */ - CreateIndexEndpointRequest.create = function create(properties) { - return new CreateIndexEndpointRequest(properties); - }; /** - * 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 + * 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 */ - 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; - }; + 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" }); /** - * 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 + * 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 */ - CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * 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 + * 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 */ - 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; - } - } - return message; - }; /** - * 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 + * 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 */ - CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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" }); /** - * 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 + * 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 */ - 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; - }; /** - * 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 + * 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 */ - 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; - }; /** - * 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 + * 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 */ - 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; - }; + 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" }); /** - * Converts this CreateIndexEndpointRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return CreateIndexEndpointRequest; + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return JobService; })(); - v1beta1.CreateIndexEndpointOperationMetadata = (function() { + v1beta1.CreateCustomJobRequest = (function() { /** - * Properties of a CreateIndexEndpointOperationMetadata. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointOperationMetadata. - * @implements ICreateIndexEndpointOperationMetadata + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set */ - function CreateIndexEndpointOperationMetadata(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211899,75 +213046,88 @@ } /** - * CreateIndexEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * CreateCustomJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; + CreateCustomJobRequest.prototype.parent = ""; /** - * Creates a new CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - CreateIndexEndpointOperationMetadata.create = function create(properties) { - return new CreateIndexEndpointOperationMetadata(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata 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 */ - CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + CreateCustomJobRequest.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.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 CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata 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 */ - CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @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.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @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 */ - CreateIndexEndpointOperationMetadata.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.CreateIndexEndpointOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + 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); @@ -211978,112 +213138,121 @@ }; /** - * Decodes a CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @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 */ - CreateIndexEndpointOperationMetadata.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 CreateIndexEndpointOperationMetadata message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @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 */ - CreateIndexEndpointOperationMetadata.verify = function verify(message) { + CreateCustomJobRequest.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.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); if (error) - return "genericMetadata." + error; + return "customJob." + error; } return null; }; /** - * Creates a CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest */ - CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) 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); + 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 CreateIndexEndpointOperationMetadata 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.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + CreateCustomJobRequest.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.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 CreateIndexEndpointOperationMetadata to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIndexEndpointOperationMetadata; + return CreateCustomJobRequest; })(); - v1beta1.GetIndexEndpointRequest = (function() { + v1beta1.GetCustomJobRequest = (function() { /** - * Properties of a GetIndexEndpointRequest. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexEndpointRequest - * @property {string|null} [name] GetIndexEndpointRequest name + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexEndpointRequest. - * @implements IGetIndexEndpointRequest + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set */ - function GetIndexEndpointRequest(properties) { + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212091,35 +213260,35 @@ } /** - * GetIndexEndpointRequest name. + * GetCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance */ - GetIndexEndpointRequest.prototype.name = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance */ - GetIndexEndpointRequest.create = function create(properties) { - return new GetIndexEndpointRequest(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.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.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest 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 */ - GetIndexEndpointRequest.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")) @@ -212128,33 +213297,33 @@ }; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.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.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest 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 */ - GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @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.GetIndexEndpointRequest} GetIndexEndpointRequest + * @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 */ - GetIndexEndpointRequest.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.GetIndexEndpointRequest(); + 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) { @@ -212170,30 +213339,30 @@ }; /** - * Decodes a GetIndexEndpointRequest 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.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @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 */ - GetIndexEndpointRequest.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 GetIndexEndpointRequest message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @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 */ - GetIndexEndpointRequest.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")) @@ -212203,32 +213372,32 @@ }; /** - * Creates a GetIndexEndpointRequest 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.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest */ - GetIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + 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 GetIndexEndpointRequest 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.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexEndpointRequest.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -212240,41 +213409,41 @@ }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIndexEndpointRequest; + return GetCustomJobRequest; })(); - v1beta1.ListIndexEndpointsRequest = (function() { + v1beta1.ListCustomJobsRequest = (function() { /** - * Properties of a ListIndexEndpointsRequest. + * Properties of a ListCustomJobsRequest. * @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 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 ListIndexEndpointsRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsRequest. - * @implements IListIndexEndpointsRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set */ - function ListIndexEndpointsRequest(properties) { + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212282,67 +213451,67 @@ } /** - * ListIndexEndpointsRequest parent. + * ListCustomJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListIndexEndpointsRequest.prototype.parent = ""; + ListCustomJobsRequest.prototype.parent = ""; /** - * ListIndexEndpointsRequest filter. + * ListCustomJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListIndexEndpointsRequest.prototype.filter = ""; + ListCustomJobsRequest.prototype.filter = ""; /** - * ListIndexEndpointsRequest pageSize. + * ListCustomJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageSize = 0; + ListCustomJobsRequest.prototype.pageSize = 0; /** - * ListIndexEndpointsRequest pageToken. + * ListCustomJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageToken = ""; + ListCustomJobsRequest.prototype.pageToken = ""; /** - * ListIndexEndpointsRequest readMask. + * ListCustomJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - ListIndexEndpointsRequest.prototype.readMask = null; + ListCustomJobsRequest.prototype.readMask = null; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - ListIndexEndpointsRequest.create = function create(properties) { - return new ListIndexEndpointsRequest(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest 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 */ - ListIndexEndpointsRequest.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")) @@ -212359,33 +213528,33 @@ }; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.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.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest 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 */ - ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @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.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @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 */ - ListIndexEndpointsRequest.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.ListIndexEndpointsRequest(); + 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) { @@ -212413,30 +213582,30 @@ }; /** - * Decodes a ListIndexEndpointsRequest 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.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @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 */ - ListIndexEndpointsRequest.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 ListIndexEndpointsRequest message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @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 */ - ListIndexEndpointsRequest.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")) @@ -212460,17 +213629,17 @@ }; /** - * Creates a ListIndexEndpointsRequest 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.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest */ - ListIndexEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -212481,22 +213650,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); + 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 ListIndexEndpointsRequest 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.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsRequest.toObject = function toObject(message, options) { + ListCustomJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -212521,39 +213690,39 @@ }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexEndpointsRequest; + return ListCustomJobsRequest; })(); - v1beta1.ListIndexEndpointsResponse = (function() { + v1beta1.ListCustomJobsResponse = (function() { /** - * Properties of a ListIndexEndpointsResponse. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsResponse - * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints - * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsResponse. - * @implements IListIndexEndpointsResponse + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set */ - function ListIndexEndpointsResponse(properties) { - this.indexEndpoints = []; + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212561,88 +213730,88 @@ } /** - * ListIndexEndpointsResponse indexEndpoints. - * @member {Array.} indexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * ListIndexEndpointsResponse nextPageToken. + * ListCustomJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - ListIndexEndpointsResponse.prototype.nextPageToken = ""; + ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - ListIndexEndpointsResponse.create = function create(properties) { - return new ListIndexEndpointsResponse(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.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.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse 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 */ - ListIndexEndpointsResponse.encode = function encode(message, writer) { + ListCustomJobsResponse.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.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 ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.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.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse 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 */ - ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @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.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @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 */ - ListIndexEndpointsResponse.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.ListIndexEndpointsResponse(); + 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: - if (!(message.indexEndpoints && message.indexEndpoints.length)) - message.indexEndpoints = []; - message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + 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(); @@ -212656,39 +213825,39 @@ }; /** - * Decodes a ListIndexEndpointsResponse 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.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @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 */ - ListIndexEndpointsResponse.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 ListIndexEndpointsResponse message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @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 */ - ListIndexEndpointsResponse.verify = function verify(message) { + ListCustomJobsResponse.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]); + 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 "indexEndpoints." + error; + return "customJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -212698,25 +213867,25 @@ }; /** - * Creates a ListIndexEndpointsResponse 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.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse */ - ListIndexEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) 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.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) @@ -212725,26 +213894,26 @@ }; /** - * Creates a plain object from a ListIndexEndpointsResponse 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.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsResponse.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.indexEndpoints = []; + object.customJobs = []; 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.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; @@ -212752,257 +213921,37 @@ }; /** - * Converts this ListIndexEndpointsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse - * @instance - * @returns {Object.} JSON object - */ - ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListIndexEndpointsResponse; - })(); - - v1beta1.UpdateIndexEndpointRequest = (function() { - - /** - * Properties of an UpdateIndexEndpointRequest. - * @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 - */ - - /** - * Constructs a new UpdateIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexEndpointRequest. - * @implements IUpdateIndexEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set - */ - function UpdateIndexEndpointRequest(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]]; - } - - /** - * UpdateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @instance - */ - UpdateIndexEndpointRequest.prototype.indexEndpoint = null; - - /** - * 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.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance - */ - UpdateIndexEndpointRequest.create = function create(properties) { - return new UpdateIndexEndpointRequest(properties); - }; - - /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @static - * @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 - */ - UpdateIndexEndpointRequest.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(); - return writer; - }; - - /** - * 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.UpdateIndexEndpointRequest - * @static - * @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 - */ - UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. - * @function decode - * @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.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest - * @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) { - 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(); - 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()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateIndexEndpointRequest message. - * @function verify - * @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 - */ - UpdateIndexEndpointRequest.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 (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 an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest - */ - UpdateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) - 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); - } - 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 an UpdateIndexEndpointRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateIndexEndpointRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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 UpdateIndexEndpointRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexEndpointRequest; + return ListCustomJobsResponse; })(); - v1beta1.DeleteIndexEndpointRequest = (function() { + v1beta1.DeleteCustomJobRequest = (function() { /** - * Properties of a DeleteIndexEndpointRequest. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexEndpointRequest - * @property {string|null} [name] DeleteIndexEndpointRequest name + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexEndpointRequest. - * @implements IDeleteIndexEndpointRequest + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function DeleteIndexEndpointRequest(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213010,35 +213959,35 @@ } /** - * DeleteIndexEndpointRequest name. + * DeleteCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance */ - DeleteIndexEndpointRequest.prototype.name = ""; + DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - DeleteIndexEndpointRequest.create = function create(properties) { - return new DeleteIndexEndpointRequest(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.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.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest 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 */ - DeleteIndexEndpointRequest.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -213047,33 +213996,33 @@ }; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.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.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest 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 */ - DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @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.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @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 */ - DeleteIndexEndpointRequest.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.DeleteIndexEndpointRequest(); + 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) { @@ -213089,30 +214038,30 @@ }; /** - * Decodes a DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @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 */ - DeleteIndexEndpointRequest.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 DeleteIndexEndpointRequest message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @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 */ - DeleteIndexEndpointRequest.verify = function verify(message) { + DeleteCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -213122,32 +214071,32 @@ }; /** - * Creates a DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - DeleteIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + 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 DeleteIndexEndpointRequest 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.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + DeleteCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -213159,38 +214108,37 @@ }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIndexEndpointRequest; + return DeleteCustomJobRequest; })(); - v1beta1.DeployIndexRequest = (function() { + v1beta1.CancelCustomJobRequest = (function() { /** - * Properties of a DeployIndexRequest. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexRequest - * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new DeployIndexRequest. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexRequest. - * @implements IDeployIndexRequest + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set */ - function DeployIndexRequest(properties) { + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213198,88 +214146,75 @@ } /** - * DeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest - * @instance - */ - DeployIndexRequest.prototype.indexEndpoint = ""; - - /** - * DeployIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * CancelCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance */ - DeployIndexRequest.prototype.deployedIndex = null; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - DeployIndexRequest.create = function create(properties) { - return new DeployIndexRequest(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.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.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest 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 */ - DeployIndexRequest.encode = function encode(message, writer) { + CancelCustomJobRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.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.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest 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 */ - DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @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.DeployIndexRequest} DeployIndexRequest + * @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 */ - DeployIndexRequest.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.DeployIndexRequest(); + 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.indexEndpoint = reader.string(); - break; - case 2: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -213290,121 +214225,108 @@ }; /** - * Decodes a DeployIndexRequest 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.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @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 */ - DeployIndexRequest.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 DeployIndexRequest message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @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 */ - DeployIndexRequest.verify = function verify(message) { + CancelCustomJobRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a DeployIndexRequest 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.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest */ - DeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) 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.CancelCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeployIndexRequest 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.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object - */ - DeployIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - 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); + */ + 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; }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeployIndexRequest.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployIndexRequest; + return CancelCustomJobRequest; })(); - v1beta1.DeployIndexResponse = (function() { + v1beta1.CreateDataLabelingJobRequest = (function() { /** - * Properties of a DeployIndexResponse. + * Properties of a CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob */ /** - * Constructs a new DeployIndexResponse. + * Constructs a new CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexResponse. - * @implements IDeployIndexResponse + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set */ - function DeployIndexResponse(properties) { + function CreateDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213412,75 +214334,88 @@ } /** - * DeployIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * CreateDataLabelingJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance */ - DeployIndexResponse.prototype.deployedIndex = null; + CreateDataLabelingJobRequest.prototype.parent = ""; /** - * Creates a new DeployIndexResponse 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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance */ - DeployIndexResponse.create = function create(properties) { - return new DeployIndexResponse(properties); + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); }; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse 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 */ - DeployIndexResponse.encode = function encode(message, writer) { + CreateDataLabelingJobRequest.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.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 DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse 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 */ - DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @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.DeployIndexResponse} DeployIndexResponse + * @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 */ - DeployIndexResponse.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.DeployIndexResponse(); + 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.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + 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); @@ -213491,113 +214426,121 @@ }; /** - * Decodes a DeployIndexResponse 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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @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 */ - DeployIndexResponse.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 DeployIndexResponse message. + * Verifies a CreateDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @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 */ - DeployIndexResponse.verify = function verify(message) { + CreateDataLabelingJobRequest.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.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 "deployedIndex." + error; + return "dataLabelingJob." + error; } return null; }; /** - * Creates a DeployIndexResponse 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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest */ - DeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) 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); + 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 DeployIndexResponse 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.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse + * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexResponse.toObject = function toObject(message, options) { + CreateDataLabelingJobRequest.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.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 DeployIndexResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - DeployIndexResponse.prototype.toJSON = function toJSON() { + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployIndexResponse; + return CreateDataLabelingJobRequest; })(); - v1beta1.DeployIndexOperationMetadata = (function() { + v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a DeployIndexOperationMetadata. + * Properties of a GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name */ /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexOperationMetadata. - * @implements IDeployIndexOperationMetadata + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set */ - function DeployIndexOperationMetadata(properties) { + function GetDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213605,88 +214548,75 @@ } /** - * DeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * DeployIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * GetDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance */ - DeployIndexOperationMetadata.prototype.deployedIndexId = ""; + GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance */ - DeployIndexOperationMetadata.create = function create(properties) { - return new DeployIndexOperationMetadata(properties); + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); }; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.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.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata 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 */ - DeployIndexOperationMetadata.encode = function encode(message, writer) { + GetDataLabelingJobRequest.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 DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.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.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata 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 */ - DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @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.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @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 */ - DeployIndexOperationMetadata.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.DeployIndexOperationMetadata(); + 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.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); @@ -213697,122 +214627,112 @@ }; /** - * Decodes a DeployIndexOperationMetadata 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.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @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 */ - DeployIndexOperationMetadata.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 DeployIndexOperationMetadata message. + * Verifies a GetDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @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 */ - DeployIndexOperationMetadata.verify = function verify(message) { + GetDataLabelingJobRequest.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 DeployIndexOperationMetadata 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.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest */ - DeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) 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); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + 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 DeployIndexOperationMetadata 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.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexOperationMetadata.toObject = function toObject(message, options) { + GetDataLabelingJobRequest.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 DeployIndexOperationMetadata to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployIndexOperationMetadata; + return GetDataLabelingJobRequest; })(); - v1beta1.UndeployIndexRequest = (function() { + v1beta1.ListDataLabelingJobsRequest = (function() { /** - * Properties of an UndeployIndexRequest. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexRequest - * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint - * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + * @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 UndeployIndexRequest. + * Constructs a new ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexRequest. - * @implements IUndeployIndexRequest + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - function UndeployIndexRequest(properties) { + function ListDataLabelingJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213820,88 +214740,140 @@ } /** - * UndeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * ListDataLabelingJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - UndeployIndexRequest.prototype.indexEndpoint = ""; + ListDataLabelingJobsRequest.prototype.parent = ""; /** - * UndeployIndexRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * ListDataLabelingJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - UndeployIndexRequest.prototype.deployedIndexId = ""; + ListDataLabelingJobsRequest.prototype.filter = ""; /** - * Creates a new UndeployIndexRequest 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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ - UndeployIndexRequest.create = function create(properties) { - return new UndeployIndexRequest(properties); + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); }; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest 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 */ - UndeployIndexRequest.encode = function encode(message, writer) { + ListDataLabelingJobsRequest.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 UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest 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 */ - UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @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.UndeployIndexRequest} UndeployIndexRequest + * @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 */ - UndeployIndexRequest.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.UndeployIndexRequest(); + 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.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); @@ -213912,115 +214884,155 @@ }; /** - * Decodes an UndeployIndexRequest 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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @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 */ - UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexRequest message. + * Verifies a ListDataLabelingJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @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 */ - UndeployIndexRequest.verify = function verify(message) { + ListDataLabelingJobsRequest.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 an UndeployIndexRequest 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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ - UndeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) 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.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 an UndeployIndexRequest 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.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexRequest.toObject = function toObject(message, options) { + ListDataLabelingJobsRequest.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 UndeployIndexRequest to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexRequest.prototype.toJSON = function toJSON() { + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexRequest; + return ListDataLabelingJobsRequest; })(); - v1beta1.UndeployIndexResponse = (function() { + v1beta1.ListDataLabelingJobsResponse = (function() { /** - * Properties of an UndeployIndexResponse. + * Properties of a ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexResponse + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Constructs a new UndeployIndexResponse. + * Constructs a new ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexResponse. - * @implements IUndeployIndexResponse + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set */ - function UndeployIndexResponse(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) @@ -214028,63 +215040,92 @@ } /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @instance + */ + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + + /** + * 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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ - UndeployIndexResponse.create = function create(properties) { - return new UndeployIndexResponse(properties); + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); }; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse 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 */ - UndeployIndexResponse.encode = function encode(message, writer) { + 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; }; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse 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 */ - UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @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.UndeployIndexResponse} UndeployIndexResponse + * @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 */ - UndeployIndexResponse.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.UndeployIndexResponse(); + 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; @@ -214094,94 +215135,133 @@ }; /** - * Decodes an UndeployIndexResponse 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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @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 */ - UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexResponse message. + * Verifies a ListDataLabelingJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @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 */ - UndeployIndexResponse.verify = function verify(message) { + 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 an UndeployIndexResponse 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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ - UndeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + 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 an UndeployIndexResponse 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.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexResponse.toObject = function toObject() { - return {}; + 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; }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance * @returns {Object.} JSON object */ - UndeployIndexResponse.prototype.toJSON = function toJSON() { + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexResponse; + return ListDataLabelingJobsResponse; })(); - v1beta1.UndeployIndexOperationMetadata = (function() { + v1beta1.DeleteDataLabelingJobRequest = (function() { /** - * Properties of an UndeployIndexOperationMetadata. + * Properties of a DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name */ /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexOperationMetadata. - * @implements IUndeployIndexOperationMetadata + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set */ - function UndeployIndexOperationMetadata(properties) { + function DeleteDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214189,75 +215269,75 @@ } /** - * UndeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * DeleteDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance */ - UndeployIndexOperationMetadata.prototype.genericMetadata = null; + DeleteDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance */ - UndeployIndexOperationMetadata.create = function create(properties) { - return new UndeployIndexOperationMetadata(properties); + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); }; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.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.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata 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 */ - UndeployIndexOperationMetadata.encode = function encode(message, writer) { + DeleteDataLabelingJobRequest.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 UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.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.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata 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 */ - UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @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.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @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 */ - UndeployIndexOperationMetadata.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.UndeployIndexOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -214268,113 +215348,107 @@ }; /** - * Decodes an UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @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 */ - UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a DeleteDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @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 */ - UndeployIndexOperationMetadata.verify = function verify(message) { + DeleteDataLabelingJobRequest.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 UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest */ - UndeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) 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.DeleteDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UndeployIndexOperationMetadata 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.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexOperationMetadata.toObject = function toObject(message, options) { + DeleteDataLabelingJobRequest.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 UndeployIndexOperationMetadata to JSON. + * Converts this DeleteDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexOperationMetadata; + return DeleteDataLabelingJobRequest; })(); - v1beta1.MutateDeployedIndexRequest = (function() { + v1beta1.CancelDataLabelingJobRequest = (function() { /** - * Properties of a MutateDeployedIndexRequest. + * Properties of a CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexRequest - * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name */ /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexRequest. - * @implements IMutateDeployedIndexRequest + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - function MutateDeployedIndexRequest(properties) { + function CancelDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214382,88 +215456,75 @@ } /** - * MutateDeployedIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.indexEndpoint = ""; - - /** - * MutateDeployedIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * CancelDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance */ - MutateDeployedIndexRequest.prototype.deployedIndex = null; + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ - MutateDeployedIndexRequest.create = function create(properties) { - return new MutateDeployedIndexRequest(properties); + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); }; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.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.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest 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 */ - MutateDeployedIndexRequest.encode = function encode(message, writer) { + CancelDataLabelingJobRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.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.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest 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 */ - MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @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.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @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 */ - MutateDeployedIndexRequest.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.MutateDeployedIndexRequest(); + 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: - message.indexEndpoint = reader.string(); - break; - case 2: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -214474,121 +215535,108 @@ }; /** - * Decodes a MutateDeployedIndexRequest 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.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @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 */ - MutateDeployedIndexRequest.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 MutateDeployedIndexRequest message. + * Verifies a CancelDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @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 */ - MutateDeployedIndexRequest.verify = function verify(message) { + CancelDataLabelingJobRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a MutateDeployedIndexRequest 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.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ - MutateDeployedIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) 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.CancelDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MutateDeployedIndexRequest 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.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexRequest.toObject = function toObject(message, options) { + CancelDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - 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 (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this CancelDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexRequest; + return CancelDataLabelingJobRequest; })(); - v1beta1.MutateDeployedIndexResponse = (function() { + v1beta1.CreateHyperparameterTuningJobRequest = (function() { /** - * Properties of a MutateDeployedIndexResponse. + * Properties of a CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexResponse. - * @implements IMutateDeployedIndexResponse + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set */ - function MutateDeployedIndexResponse(properties) { + function CreateHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214596,75 +215644,88 @@ } /** - * MutateDeployedIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * CreateHyperparameterTuningJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance */ - MutateDeployedIndexResponse.prototype.deployedIndex = null; + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * Creates a new MutateDeployedIndexResponse 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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ - MutateDeployedIndexResponse.create = function create(properties) { - return new MutateDeployedIndexResponse(properties); + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse 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 */ - MutateDeployedIndexResponse.encode = function encode(message, writer) { + CreateHyperparameterTuningJobRequest.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.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 MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse 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 */ - MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @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.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @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 */ - MutateDeployedIndexResponse.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.MutateDeployedIndexResponse(); + 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.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + 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); @@ -214675,113 +215736,121 @@ }; /** - * Decodes a MutateDeployedIndexResponse 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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @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 */ - MutateDeployedIndexResponse.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 MutateDeployedIndexResponse message. + * Verifies a CreateHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @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 */ - MutateDeployedIndexResponse.verify = function verify(message) { + CreateHyperparameterTuningJobRequest.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.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 "deployedIndex." + error; + return "hyperparameterTuningJob." + error; } return null; }; /** - * Creates a MutateDeployedIndexResponse 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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ - MutateDeployedIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) 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.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 MutateDeployedIndexResponse 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.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse + * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexResponse.toObject = function toObject(message, options) { + CreateHyperparameterTuningJobRequest.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.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 MutateDeployedIndexResponse to JSON. + * Converts this CreateHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexResponse; + return CreateHyperparameterTuningJobRequest; })(); - v1beta1.MutateDeployedIndexOperationMetadata = (function() { + v1beta1.GetHyperparameterTuningJobRequest = (function() { /** - * Properties of a MutateDeployedIndexOperationMetadata. + * Properties of a GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Constructs a new MutateDeployedIndexOperationMetadata. + * Constructs a new GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexOperationMetadata. - * @implements IMutateDeployedIndexOperationMetadata + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ - function MutateDeployedIndexOperationMetadata(properties) { + function GetHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214789,88 +215858,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 + * GetHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance */ - MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ - MutateDeployedIndexOperationMetadata.create = function create(properties) { - return new MutateDeployedIndexOperationMetadata(properties); + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.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.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata 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 */ - MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { + GetHyperparameterTuningJobRequest.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 GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata 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 */ - MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @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.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @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 */ - MutateDeployedIndexOperationMetadata.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.MutateDeployedIndexOperationMetadata(); + 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) { 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); @@ -214881,403 +215937,222 @@ }; /** - * Decodes a MutateDeployedIndexOperationMetadata 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.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @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 */ - MutateDeployedIndexOperationMetadata.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 MutateDeployedIndexOperationMetadata message. + * Verifies a GetHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @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 */ - MutateDeployedIndexOperationMetadata.verify = function verify(message) { + GetHyperparameterTuningJobRequest.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 GetHyperparameterTuningJobRequest 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.GetHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest */ - MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) 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.GetHyperparameterTuningJobRequest(); + 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 GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { + GetHyperparameterTuningJobRequest.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 GetHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexOperationMetadata; + return GetHyperparameterTuningJobRequest; })(); - v1beta1.IndexService = (function() { + v1beta1.ListHyperparameterTuningJobsRequest = (function() { /** - * Constructs a new IndexService service. + * Properties of a ListHyperparameterTuningJobsRequest. * @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 + * @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 */ /** - * 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 + * Constructs a new ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ - 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" }); + function ListHyperparameterTuningJobsRequest(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 UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * ListHyperparameterTuningJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @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 */ + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * ListHyperparameterTuningJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @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" }); + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * ListHyperparameterTuningJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return IndexService; - })(); - - v1beta1.CreateIndexRequest = (function() { - - /** - * 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 - */ - - /** - * 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]]; - } + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; /** - * CreateIndexRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * ListHyperparameterTuningJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - CreateIndexRequest.prototype.parent = ""; + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; /** - * CreateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * ListHyperparameterTuningJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - CreateIndexRequest.prototype.index = null; + ListHyperparameterTuningJobsRequest.prototype.readMask = null; /** - * Creates a new CreateIndexRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ - CreateIndexRequest.create = function create(properties) { - return new CreateIndexRequest(properties); + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); }; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.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.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest 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 */ - CreateIndexRequest.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.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.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 CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.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.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest 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 */ - CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @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.CreateIndexRequest} CreateIndexRequest + * @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 */ - CreateIndexRequest.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.CreateIndexRequest(); + 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) { @@ -215285,7 +216160,16 @@ message.parent = reader.string(); break; case 2: - message.index = $root.google.cloud.aiplatform.v1beta1.Index.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); @@ -215296,122 +216180,147 @@ }; /** - * Decodes a CreateIndexRequest 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.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @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 */ - CreateIndexRequest.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 CreateIndexRequest message. + * Verifies a ListHyperparameterTuningJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @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 */ - CreateIndexRequest.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.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + 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 "index." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateIndexRequest 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.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ - CreateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); 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); + 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 CreateIndexRequest 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.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexRequest.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.index = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = 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.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 CreateIndexRequest to JSON. + * Converts this ListHyperparameterTuningJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance * @returns {Object.} JSON object */ - CreateIndexRequest.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIndexRequest; + return ListHyperparameterTuningJobsRequest; })(); - v1beta1.CreateIndexOperationMetadata = (function() { + v1beta1.ListHyperparameterTuningJobsResponse = (function() { /** - * Properties of a CreateIndexOperationMetadata. + * Properties of a ListHyperparameterTuningJobsResponse. * @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 IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ /** - * Constructs a new CreateIndexOperationMetadata. + * Constructs a new ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexOperationMetadata. - * @implements ICreateIndexOperationMetadata + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ - function CreateIndexOperationMetadata(properties) { + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215419,88 +216328,91 @@ } /** - * CreateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - CreateIndexOperationMetadata.prototype.genericMetadata = null; + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * ListHyperparameterTuningJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ - CreateIndexOperationMetadata.create = function create(properties) { - return new CreateIndexOperationMetadata(properties); + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); }; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.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.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata 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 */ - CreateIndexOperationMetadata.encode = function encode(message, writer) { + ListHyperparameterTuningJobsResponse.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.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 CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.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.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata 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 */ - CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @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.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @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 */ - CreateIndexOperationMetadata.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.CreateIndexOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + 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.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -215511,126 +216423,133 @@ }; /** - * Decodes a CreateIndexOperationMetadata 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.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @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 */ - CreateIndexOperationMetadata.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 CreateIndexOperationMetadata message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @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 */ - CreateIndexOperationMetadata.verify = function verify(message) { + ListHyperparameterTuningJobsResponse.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; + 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"; return null; }; /** - * Creates a CreateIndexOperationMetadata 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.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ - CreateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) 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.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); return message; }; /** - * Creates a plain object from a CreateIndexOperationMetadata 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.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexOperationMetadata.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + 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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateIndexOperationMetadata to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance * @returns {Object.} JSON object */ - CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIndexOperationMetadata; + return ListHyperparameterTuningJobsResponse; })(); - v1beta1.GetIndexRequest = (function() { + v1beta1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Properties of a GetIndexRequest. + * Properties of a DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Constructs a new GetIndexRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - function GetIndexRequest(properties) { + function DeleteHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215638,35 +216557,35 @@ } /** - * GetIndexRequest name. + * DeleteHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance */ - GetIndexRequest.prototype.name = ""; + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new GetIndexRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.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.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest 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 */ - GetIndexRequest.encode = function encode(message, writer) { + DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -215675,33 +216594,33 @@ }; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.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.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest 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 */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @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.GetIndexRequest} GetIndexRequest + * @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 */ - GetIndexRequest.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.GetIndexRequest(); + 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) { @@ -215717,30 +216636,30 @@ }; /** - * Decodes a GetIndexRequest 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.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @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 */ - GetIndexRequest.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 GetIndexRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @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 */ - GetIndexRequest.verify = function verify(message) { + DeleteHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -215750,32 +216669,32 @@ }; /** - * Creates a GetIndexRequest 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.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + 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 GetIndexRequest 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.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexRequest.toObject = function toObject(message, options) { + DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -215787,41 +216706,37 @@ }; /** - * Converts this GetIndexRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - GetIndexRequest.prototype.toJSON = function toJSON() { + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIndexRequest; + return DeleteHyperparameterTuningJobRequest; })(); - v1beta1.ListIndexesRequest = (function() { + v1beta1.CancelHyperparameterTuningJobRequest = (function() { /** - * Properties of a ListIndexesRequest. + * Properties of a CancelHyperparameterTuningJobRequest. * @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 ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Constructs a new ListIndexesRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesRequest. - * @implements IListIndexesRequest + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ - function ListIndexesRequest(properties) { + function CancelHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215829,127 +216744,75 @@ } /** - * 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 - * @instance - */ - ListIndexesRequest.prototype.pageToken = ""; - - /** - * ListIndexesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * CancelHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance */ - ListIndexesRequest.prototype.readMask = null; + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ - ListIndexesRequest.create = function create(properties) { - return new ListIndexesRequest(properties); + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.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.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest 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 */ - ListIndexesRequest.encode = function encode(message, writer) { + CancelHyperparameterTuningJobRequest.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 ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.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.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest 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 */ - ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @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.ListIndexesRequest} ListIndexesRequest + * @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 */ - ListIndexesRequest.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.ListIndexesRequest(); + 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) { 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); @@ -215960,147 +216823,108 @@ }; /** - * Decodes a ListIndexesRequest 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.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @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 */ - ListIndexesRequest.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 ListIndexesRequest message. + * Verifies a CancelHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @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 */ - ListIndexesRequest.verify = function verify(message) { + CancelHyperparameterTuningJobRequest.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 ListIndexesRequest 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.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ - ListIndexesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) 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.CancelHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIndexesRequest 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.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest + * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesRequest.toObject = function toObject(message, options) { + CancelHyperparameterTuningJobRequest.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 ListIndexesRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesRequest.prototype.toJSON = function toJSON() { + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexesRequest; + return CancelHyperparameterTuningJobRequest; })(); - v1beta1.ListIndexesResponse = (function() { + v1beta1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a ListIndexesResponse. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesResponse - * @property {Array.|null} [indexes] ListIndexesResponse indexes - * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new ListIndexesResponse. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesResponse. - * @implements IListIndexesResponse + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function ListIndexesResponse(properties) { - this.indexes = []; + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216108,91 +216932,88 @@ } /** - * ListIndexesResponse indexes. - * @member {Array.} indexes - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - ListIndexesResponse.prototype.indexes = $util.emptyArray; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * ListIndexesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - ListIndexesResponse.prototype.nextPageToken = ""; + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - ListIndexesResponse.create = function create(properties) { - return new ListIndexesResponse(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.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.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse 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 */ - ListIndexesResponse.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.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); + 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(); return writer; }; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.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.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse 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 */ - ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @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.ListIndexesResponse} ListIndexesResponse + * @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 */ - ListIndexesResponse.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.ListIndexesResponse(); + 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) { case 1: - if (!(message.indexes && message.indexes.length)) - message.indexes = []; - message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -216203,134 +217024,121 @@ }; /** - * Decodes a ListIndexesResponse 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.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @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 */ - ListIndexesResponse.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 ListIndexesResponse message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @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 */ - ListIndexesResponse.verify = function verify(message) { + CreateBatchPredictionJobRequest.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.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 (error) + return "batchPredictionJob." + 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 a CreateBatchPredictionJobRequest 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.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - ListIndexesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) 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]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + 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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIndexesResponse 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.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesResponse.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.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 (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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); return object; }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesResponse.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexesResponse; + return CreateBatchPredictionJobRequest; })(); - v1beta1.UpdateIndexRequest = (function() { + v1beta1.GetBatchPredictionJobRequest = (function() { /** - * Properties of an UpdateIndexRequest. + * Properties of a GetBatchPredictionJobRequest. * @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 IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new UpdateIndexRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexRequest. - * @implements IUpdateIndexRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function UpdateIndexRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216338,88 +217146,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 + * GetBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance */ - UpdateIndexRequest.prototype.updateMask = null; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - UpdateIndexRequest.create = function create(properties) { - return new UpdateIndexRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.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.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest 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 */ - UpdateIndexRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.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.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest 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 */ - UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @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.UpdateIndexRequest} UpdateIndexRequest + * @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 */ - UpdateIndexRequest.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.UpdateIndexRequest(); + 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: - 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.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -216430,127 +217225,111 @@ }; /** - * Decodes an UpdateIndexRequest 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.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @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 */ - UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @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 */ - UpdateIndexRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.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 (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateIndexRequest 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.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - UpdateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) 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.GetBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateIndexRequest 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.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.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.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexRequest; + return GetBatchPredictionJobRequest; })(); - v1beta1.UpdateIndexOperationMetadata = (function() { + v1beta1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of an UpdateIndexOperationMetadata. + * Properties of a ListBatchPredictionJobsRequest. * @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 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 UpdateIndexOperationMetadata. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexOperationMetadata. - * @implements IUpdateIndexOperationMetadata + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function UpdateIndexOperationMetadata(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216558,88 +217337,127 @@ } /** - * UpdateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListBatchPredictionJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - UpdateIndexOperationMetadata.prototype.genericMetadata = null; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListBatchPredictionJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * Creates a new UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - UpdateIndexOperationMetadata.create = function create(properties) { - return new UpdateIndexOperationMetadata(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata 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 */ - UpdateIndexOperationMetadata.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.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.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 UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata 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 */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @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.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @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 */ - UpdateIndexOperationMetadata.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.UpdateIndexOperationMetadata(); + 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.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); @@ -216650,126 +217468,147 @@ }; /** - * Decodes an UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @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 */ - UpdateIndexOperationMetadata.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 UpdateIndexOperationMetadata message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @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 */ - UpdateIndexOperationMetadata.verify = function verify(message) { + ListBatchPredictionJobsRequest.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.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 "nearestNeighborSearchOperationMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates an UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) 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); + 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 UpdateIndexOperationMetadata 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.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = 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.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 UpdateIndexOperationMetadata to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexOperationMetadata; + return ListBatchPredictionJobsRequest; })(); - v1beta1.DeleteIndexRequest = (function() { + v1beta1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function DeleteIndexRequest(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) @@ -216777,75 +217616,91 @@ } /** - * DeleteIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - DeleteIndexRequest.prototype.name = ""; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * Creates a new DeleteIndexRequest 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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest 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 */ - DeleteIndexRequest.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 DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest 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 */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @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.DeleteIndexRequest} DeleteIndexRequest + * @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 */ - DeleteIndexRequest.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.DeleteIndexRequest(); + 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); @@ -216856,109 +217711,133 @@ }; /** - * Decodes a DeleteIndexRequest 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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @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 */ - DeleteIndexRequest.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 DeleteIndexRequest message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @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 */ - DeleteIndexRequest.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 DeleteIndexRequest 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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) 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.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 DeleteIndexRequest 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.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.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 DeleteIndexRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIndexRequest; + return ListBatchPredictionJobsResponse; })(); - v1beta1.NearestNeighborSearchOperationMetadata = (function() { + v1beta1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a NearestNeighborSearchOperationMetadata. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface INearestNeighborSearchOperationMetadata - * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats - * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a NearestNeighborSearchOperationMetadata. - * @implements INearestNeighborSearchOperationMetadata + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function NearestNeighborSearchOperationMetadata(properties) { - this.contentValidationStats = []; + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -216966,91 +217845,75 @@ } /** - * NearestNeighborSearchOperationMetadata contentValidationStats. - * @member {Array.} contentValidationStats - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @instance - */ - NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; - - /** - * NearestNeighborSearchOperationMetadata dataBytesCount. - * @member {number|Long} dataBytesCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * DeleteBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance */ - NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - NearestNeighborSearchOperationMetadata.create = function create(properties) { - return new NearestNeighborSearchOperationMetadata(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.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.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata 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 */ - NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.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.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata 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 */ - NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @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.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @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 */ - NearestNeighborSearchOperationMetadata.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.NearestNeighborSearchOperationMetadata(); + 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) { case 1: - 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.dataBytesCount = reader.int64(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -217061,1756 +217924,1543 @@ }; /** - * Decodes a NearestNeighborSearchOperationMetadata 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.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @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 */ - NearestNeighborSearchOperationMetadata.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 NearestNeighborSearchOperationMetadata message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @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 */ - NearestNeighborSearchOperationMetadata.verify = function verify(message) { + DeleteBatchPredictionJobRequest.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.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a NearestNeighborSearchOperationMetadata 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.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) 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(); + 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 NearestNeighborSearchOperationMetadata 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.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.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; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.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; - })(); - - return NearestNeighborSearchOperationMetadata; + return DeleteBatchPredictionJobRequest; })(); - v1beta1.JobService = (function() { + v1beta1.CancelBatchPredictionJobRequest = (function() { /** - * Constructs a new JobService service. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a JobService - * @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) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; - - /** - * Creates new JobService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @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. - */ - JobService.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 + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * 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 + * Constructs a new CancelBatchPredictionJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ + function CancelBatchPredictionJobRequest(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 ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CancelBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @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" }); + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * 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 + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); + }; /** - * 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 + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @static + * @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 */ + CancelBatchPredictionJobRequest.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 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 + * 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.CancelBatchPredictionJobRequest + * @static + * @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 */ - 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" }); + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * @function decode + * @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.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @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) { + 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(); + 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#cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a CancelBatchPredictionJobRequest message. + * @function verify + * @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 */ - 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" }); + CancelBatchPredictionJobRequest.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 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 + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * 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 + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CancelBatchPredictionJobRequest.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 CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CancelBatchPredictionJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @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 + * @returns {Object.} JSON object */ - 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" }); + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CancelBatchPredictionJobRequest; + })(); + + v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * 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 + * Properties of a CreateModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * 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 + * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ + function CreateModelDeploymentMonitoringJobRequest(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 GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @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 */ - 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" }); + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * 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 + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); + }; /** - * 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 + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @static + * @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 */ - 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" }); + CreateModelDeploymentMonitoringJobRequest.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(); + return writer; + }; /** - * 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 + * 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.CreateModelDeploymentMonitoringJobRequest + * @static + * @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 */ + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @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.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + 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); + break; + } + } + return message; + }; /** - * 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 + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - 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" }); + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * @function verify + * @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 */ + CreateModelDeploymentMonitoringJobRequest.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 (error) + return "modelDeploymentMonitoringJob." + error; + } + return null; + }; /** - * 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 + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + return object; + 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; + }; /** - * 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 + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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; + }; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - */ + return CreateModelDeploymentMonitoringJobRequest; + })(); - /** - * 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 - */ - 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" }); + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * 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 + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @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 */ /** - * 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 + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; + 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 GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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 */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; /** - * 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 + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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 */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; /** - * 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 + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; /** - * 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 + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + }; /** - * 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 + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @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 */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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(); + return writer; + }; /** - * 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 + * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @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 */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * @function decode + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.modelDeploymentMonitoringJob = reader.string(); + 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()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * @function verify + * @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 */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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 (error) + return "objectives." + 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; + } + return null; + }; /** - * 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 + * 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.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); + } + 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 + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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); + } + 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; + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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; + }; - /** - * 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 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; + }; - /** - * 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 - */ - 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" }); + /** + * 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); + }; - /** - * 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 - */ + return StatsAnomaliesObjective; + })(); - /** - * 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest; + })(); - /** - * 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.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (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 SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * 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 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]]; + } /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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" }); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; /** - * 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 + * 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); + }; /** - * 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 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 */ - 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" }); + 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; + }; /** - * 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 + * 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(); + }; /** - * 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 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; + }; /** - * 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 + * 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 */ - 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" }); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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 - * @returns {Promise} Promise - * @variation 2 + * 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; + }; /** - * 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 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; + }; /** - * 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 + * 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 */ - 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" }); + 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; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * 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 + * @returns {Object.} JSON object */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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" }); + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + })(); - /** - * 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 - */ + v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * 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 + * Properties of a GetModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * 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 + * 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 */ - 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" }); + 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]]; + } /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * GetModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * 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 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); + }; /** - * 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 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 */ - 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" }); + 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; + }; /** - * 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 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(); + }; /** - * 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 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; + }; /** - * 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 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 */ - 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" }); + GetModelDeploymentMonitoringJobRequest.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 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; + }; /** - * 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 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; + }; /** - * 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 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 */ - 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" }); + 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; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return JobService; + return GetModelDeploymentMonitoringJobRequest; })(); - v1beta1.CreateCustomJobRequest = (function() { + v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * Properties of a CreateCustomJobRequest. + * Properties of a ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob + * @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 CreateCustomJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - function CreateCustomJobRequest(properties) { + function ListModelDeploymentMonitoringJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218818,80 +219468,110 @@ } /** - * CreateCustomJobRequest parent. + * ListModelDeploymentMonitoringJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - CreateCustomJobRequest.prototype.parent = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - CreateCustomJobRequest.prototype.customJob = null; + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * 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.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @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 */ - CreateCustomJobRequest.encode = function encode(message, 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.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.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 CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * 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.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @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 */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @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.CreateCustomJobRequest} CreateCustomJobRequest + * @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 */ - CreateCustomJobRequest.decode = function decode(reader, length) { + 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.CreateCustomJobRequest(); + 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) { @@ -218899,7 +219579,16 @@ message.parent = reader.string(); break; case 2: - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.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); @@ -218910,121 +219599,147 @@ }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @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 */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @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 */ - CreateCustomJobRequest.verify = function verify(message) { + 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.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); + 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 "customJob." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateCustomJobRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); 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); + 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 CreateCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomJobRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.customJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = 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); + 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 CreateCustomJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomJobRequest; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1beta1.GetCustomJobRequest = (function() { + v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of a GetCustomJobRequest. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new GetCustomJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function GetCustomJobRequest(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) @@ -219032,75 +219747,91 @@ } /** - * GetCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - GetCustomJobRequest.prototype.name = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @instance + */ + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.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.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest 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 */ - GetCustomJobRequest.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.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.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 GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.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.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest 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 */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @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.GetCustomJobRequest} GetCustomJobRequest + * @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 */ - GetCustomJobRequest.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.GetCustomJobRequest(); + 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.name = reader.string(); + 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(); break; default: reader.skipType(tag & 7); @@ -219111,111 +219842,134 @@ }; /** - * Decodes a GetCustomJobRequest 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.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @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 */ - GetCustomJobRequest.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 GetCustomJobRequest message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @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 */ - GetCustomJobRequest.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.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.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"; return null; }; /** - * Creates a GetCustomJobRequest 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.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) 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.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); return message; }; /** - * Creates a plain object from a GetCustomJobRequest 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.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomJobRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.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.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; return object; }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomJobRequest; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1beta1.ListCustomJobsRequest = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListCustomJobsRequest. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @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 IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListCustomJobsRequest(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219223,127 +219977,88 @@ } /** - * ListCustomJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.parent = ""; - - /** - * ListCustomJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.filter = ""; - - /** - * 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 + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ListCustomJobsRequest.prototype.pageToken = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * ListCustomJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ListCustomJobsRequest.prototype.readMask = null; + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.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.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest 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 */ - ListCustomJobsRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.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.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 ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.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.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest 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 */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @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.ListCustomJobsRequest} ListCustomJobsRequest + * @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 */ - ListCustomJobsRequest.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.ListCustomJobsRequest(); + 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.parent = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); 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.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -219354,147 +220069,126 @@ }; /** - * Decodes a ListCustomJobsRequest 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.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @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 */ - ListCustomJobsRequest.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 ListCustomJobsRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @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 */ - ListCustomJobsRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.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.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "readMask." + 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 ListCustomJobsRequest 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.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) 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.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 ListCustomJobsRequest 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.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.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.modelDeploymentMonitoringJob = null; + object.updateMask = 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.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 ListCustomJobsRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomJobsRequest; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1beta1.ListCustomJobsResponse = (function() { + v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListCustomJobsResponse. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219502,91 +220196,75 @@ } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @instance - */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; - - /** - * ListCustomJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ListCustomJobsResponse.prototype.nextPageToken = ""; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.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.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse 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 */ - ListCustomJobsResponse.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.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.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse 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 */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @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.ListCustomJobsResponse} ListCustomJobsResponse + * @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 */ - ListCustomJobsResponse.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.ListCustomJobsResponse(); + 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: - 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(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -219597,133 +220275,107 @@ }; /** - * Decodes a ListCustomJobsResponse 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.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @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 */ - ListCustomJobsResponse.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 ListCustomJobsResponse message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @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 */ - ListCustomJobsResponse.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.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 (error) - return "customJobs." + 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 ListCustomJobsResponse 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.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) 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 (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + 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 ListCustomJobsResponse 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.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsResponse.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.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; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomJobsResponse; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1beta1.DeleteCustomJobRequest = (function() { + v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteCustomJobRequest. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteCustomJobRequest(properties) { + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219731,35 +220383,35 @@ } /** - * DeleteCustomJobRequest name. + * PauseModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance */ - DeleteCustomJobRequest.prototype.name = ""; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @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 */ - DeleteCustomJobRequest.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -219768,33 +220420,33 @@ }; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * 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.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @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 */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @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.DeleteCustomJobRequest} DeleteCustomJobRequest + * @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 */ - DeleteCustomJobRequest.decode = function decode(reader, length) { + 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.DeleteCustomJobRequest(); + 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) { @@ -219810,30 +220462,30 @@ }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @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 */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @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 */ - DeleteCustomJobRequest.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -219843,32 +220495,32 @@ }; /** - * Creates a DeleteCustomJobRequest 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. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); + 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 DeleteCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -219880,37 +220532,37 @@ }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteCustomJobRequest; + return PauseModelDeploymentMonitoringJobRequest; })(); - v1beta1.CancelCustomJobRequest = (function() { + v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a CancelCustomJobRequest. + * Properties of a ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function CancelCustomJobRequest(properties) { + function ResumeModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219918,35 +220570,35 @@ } /** - * CancelCustomJobRequest name. + * ResumeModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - CancelCustomJobRequest.prototype.name = ""; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.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.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest 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 */ - CancelCustomJobRequest.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -219955,33 +220607,33 @@ }; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.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.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest 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 */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @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.CancelCustomJobRequest} CancelCustomJobRequest + * @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 */ - CancelCustomJobRequest.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.CancelCustomJobRequest(); + 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) { @@ -219997,30 +220649,30 @@ }; /** - * Decodes a CancelCustomJobRequest 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.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @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 */ - CancelCustomJobRequest.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 CancelCustomJobRequest message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @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 */ - CancelCustomJobRequest.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -220030,32 +220682,32 @@ }; /** - * Creates a CancelCustomJobRequest 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.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + 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 CancelCustomJobRequest 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.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelCustomJobRequest.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -220067,38 +220719,37 @@ }; /** - * Converts this CancelCustomJobRequest to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelCustomJobRequest; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1beta1.CreateDataLabelingJobRequest = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a CreateDataLabelingJobRequest. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function CreateDataLabelingJobRequest(properties) { + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220106,88 +220757,75 @@ } /** - * CreateDataLabelingJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @instance - */ - CreateDataLabelingJobRequest.prototype.parent = ""; - - /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.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.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest 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 */ - CreateDataLabelingJobRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.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(); + 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 CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.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.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest 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 */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @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.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @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 */ - CreateDataLabelingJobRequest.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.CreateDataLabelingJobRequest(); + 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.parent = reader.string(); - break; - case 2: - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -220198,198 +220836,546 @@ }; /** - * Decodes a CreateDataLabelingJobRequest 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.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @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 */ - CreateDataLabelingJobRequest.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 CreateDataLabelingJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @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 */ - CreateDataLabelingJobRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.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 (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "dataLabelingJob." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a CreateDataLabelingJobRequest 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.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) 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); + 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 CreateDataLabelingJobRequest 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.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.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); + 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 CreateDataLabelingJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDataLabelingJobRequest; + return UpdateModelDeploymentMonitoringJobOperationMetadata; })(); - v1beta1.GetDataLabelingJobRequest = (function() { + /** + * 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; + })(); + + v1beta1.ModelDeploymentMonitoringJob = (function() { /** - * Properties of a GetDataLabelingJobRequest. + * Properties of a ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * @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 */ /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @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]]; + } + + /** + * 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 + * @instance + */ + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + + /** + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.createTime = null; + + /** + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.updateTime = null; + + /** + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + + /** + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + + /** + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + + /** + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance */ - 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]]; - } + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; /** - * GetDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance */ - GetDataLabelingJobRequest.prototype.name = ""; + ModelDeploymentMonitoringJob.prototype.error = null; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @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 */ - GetDataLabelingJobRequest.encode = function encode(message, 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 GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * 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.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @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 */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @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.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @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 */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { + 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.GetDataLabelingJobRequest(); + 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.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; @@ -220399,112 +221385,716 @@ }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @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 */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a ModelDeploymentMonitoringJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @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 */ - GetDataLabelingJobRequest.verify = function verify(message) { + 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.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 (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 GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + 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]); + } + } + 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; }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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; }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob * @instance * @returns {Object.} JSON object */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDataLabelingJobRequest; + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (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 + */ + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + */ + function LatestMonitoringPipelineMetadata(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]]; + } + + /** + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.runTime = null; + + /** + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.status = null; + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + */ + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); + }; + + /** + * 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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @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 + */ + LatestMonitoringPipelineMetadata.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(); + return writer; + }; + + /** + * 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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @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 + */ + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * @function decode + * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LatestMonitoringPipelineMetadata message. + * @function verify + * @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 + */ + LatestMonitoringPipelineMetadata.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; + } + return null; + }; + + /** + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + */ + 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.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 a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.runTime = null; + object.status = null; + } + 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 LatestMonitoringPipelineMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + * @returns {Object.} JSON object + */ + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LatestMonitoringPipelineMetadata; + })(); + + /** + * 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; + })(); + + return ModelDeploymentMonitoringJob; })(); - v1beta1.ListDataLabelingJobsRequest = (function() { + v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { /** - * Properties of a ListDataLabelingJobsRequest. + * Properties of a ModelDeploymentMonitoringBigQueryTable. * @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 + * @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 */ /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set */ - function ListDataLabelingJobsRequest(properties) { + function ModelDeploymentMonitoringBigQueryTable(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220512,140 +222102,101 @@ } /** - * ListDataLabelingJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.parent = ""; - - /** - * ListDataLabelingJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.filter = ""; - - /** - * 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 + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @instance */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; /** - * ListDataLabelingJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @instance */ - ListDataLabelingJobsRequest.prototype.readMask = null; + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @instance */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @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 */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { + ModelDeploymentMonitoringBigQueryTable.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.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; }; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * 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.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @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 */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @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.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @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 */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { + 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.ListDataLabelingJobsRequest(); + 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.parent = reader.string(); + message.logSource = reader.int32(); break; case 2: - message.filter = reader.string(); + message.logType = reader.int32(); 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.bigqueryTablePath = reader.string(); break; default: reader.skipType(tag & 7); @@ -220656,155 +222207,193 @@ }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @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 */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a ModelDeploymentMonitoringBigQueryTable message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @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 */ - ListDataLabelingJobsRequest.verify = function verify(message) { + ModelDeploymentMonitoringBigQueryTable.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.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 ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) 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); + 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; } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + 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; }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringBigQueryTable.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; + 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; }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataLabelingJobsRequest; + /** + * 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; })(); - v1beta1.ListDataLabelingJobsResponse = (function() { + v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { /** - * Properties of a ListDataLabelingJobsResponse. + * Properties of a ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; + function ModelDeploymentMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220812,91 +222401,88 @@ } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; /** - * ListDataLabelingJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.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.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse 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 */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.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); + 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 ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.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.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse 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 */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @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.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @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 */ - ListDataLabelingJobsResponse.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.ListDataLabelingJobsResponse(); + 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: - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); + message.deployedModelId = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -220907,133 +222493,121 @@ }; /** - * Decodes a ListDataLabelingJobsResponse 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.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @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 */ - ListDataLabelingJobsResponse.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 ListDataLabelingJobsResponse message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @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 */ - ListDataLabelingJobsResponse.verify = function verify(message) { + ModelDeploymentMonitoringObjectiveConfig.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.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.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. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) 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]); - } + 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.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. + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + ModelDeploymentMonitoringObjectiveConfig.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 (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListDataLabelingJobsResponse to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataLabelingJobsResponse; + return ModelDeploymentMonitoringObjectiveConfig; })(); - v1beta1.DeleteDataLabelingJobRequest = (function() { + v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function ModelDeploymentMonitoringScheduleConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221041,75 +222615,75 @@ } /** - * DeleteDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.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.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest 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 */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + ModelDeploymentMonitoringScheduleConfig.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.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).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 ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest 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 */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @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.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @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 */ - DeleteDataLabelingJobRequest.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.DeleteDataLabelingJobRequest(); + 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.name = reader.string(); + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -221120,107 +222694,116 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest 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.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @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 */ - DeleteDataLabelingJobRequest.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 DeleteDataLabelingJobRequest message. + * Verifies a ModelDeploymentMonitoringScheduleConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @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 */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + ModelDeploymentMonitoringScheduleConfig.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.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); + if (error) + return "monitorInterval." + error; + } return null; }; /** - * Creates a DeleteDataLabelingJobRequest 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.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) 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.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); + } return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest 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.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringScheduleConfig.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.monitorInterval = null; + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); return object; }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDataLabelingJobRequest; + return ModelDeploymentMonitoringScheduleConfig; })(); - v1beta1.CancelDataLabelingJobRequest = (function() { + v1beta1.ModelMonitoringStatsAnomalies = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @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 CancelDataLabelingJobRequest. + * Constructs a new ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(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) @@ -221228,75 +222811,117 @@ } /** - * CancelDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + ModelMonitoringStatsAnomalies.prototype.objective = 0; /** - * Creates a new CancelDataLabelingJobRequest 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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest 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 */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + ModelMonitoringStatsAnomalies.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.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 CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest 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 */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @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.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @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 */ - CancelDataLabelingJobRequest.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.CancelDataLabelingJobRequest(); + 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.name = reader.string(); + 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); @@ -221307,108 +222932,467 @@ }; /** - * Decodes a CancelDataLabelingJobRequest 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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @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 */ - CancelDataLabelingJobRequest.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 CancelDataLabelingJobRequest message. + * Verifies a ModelMonitoringStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @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 */ - CancelDataLabelingJobRequest.verify = function verify(message) { + ModelMonitoringStatsAnomalies.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.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 CancelDataLabelingJobRequest 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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + 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 CancelDataLabelingJobRequest 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.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + ModelMonitoringStatsAnomalies.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.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 CancelDataLabelingJobRequest to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelDataLabelingJobRequest; + 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; })(); - v1beta1.CreateHyperparameterTuningJobRequest = (function() { + v1beta1.ModelMonitoringObjectiveConfig = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @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 CreateHyperparameterTuningJobRequest. + * Constructs a new ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function ModelMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221416,88 +223400,114 @@ } /** - * CreateHyperparameterTuningJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * 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 + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + + /** + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.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.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest 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 */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ModelMonitoringObjectiveConfig.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.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 CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.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.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest 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 */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @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.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @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 */ - CreateHyperparameterTuningJobRequest.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.CreateHyperparameterTuningJobRequest(); + 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.parent = reader.string(); + message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); break; case 2: - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + 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()); break; default: reader.skipType(tag & 7); @@ -221508,820 +223518,1602 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest 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.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @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 */ - CreateHyperparameterTuningJobRequest.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 CreateHyperparameterTuningJobRequest message. + * Verifies a ModelMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @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 */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + ModelMonitoringObjectiveConfig.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.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); if (error) - return "hyperparameterTuningJob." + 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 (error) + return "explanationConfig." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest 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.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) return object; - 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); + 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); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest 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.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.hyperparameterTuningJob = null; + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = 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.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 CreateHyperparameterTuningJobRequest to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateHyperparameterTuningJobRequest; - })(); + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { - v1beta1.GetHyperparameterTuningJobRequest = (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 + */ - /** - * Properties of a GetHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name - */ + /** + * 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]]; + } - /** - * Constructs a new GetHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - */ - function GetHyperparameterTuningJobRequest(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; - /** - * GetHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @instance - */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + /** + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.gcsSource = null; - /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance - */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); - }; + /** + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; - /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @static - * @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 - */ - GetHyperparameterTuningJobRequest.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; - }; + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; - /** - * 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.GetHyperparameterTuningJobRequest - * @static - * @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 - */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; - /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. - * @function decode - * @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.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return TrainingDataset; + })(); + + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + + /** + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + */ + + /** + * 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]]; + } + + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return TrainingPredictionSkewDetectionConfig; + })(); + + ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + + /** + * Properties of a PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface IPredictionDriftDetectionConfig + * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds + * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + */ + + /** + * 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]]; + } + + /** + * PredictionDriftDetectionConfig driftThresholds. + * @member {Object.} driftThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + + /** + * PredictionDriftDetectionConfig attributionScoreDriftThresholds. + * @member {Object.} attributionScoreDriftThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + + /** + * 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); + }; + + /** + * 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 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(); + }; + + /** + * 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; + 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; + } } - } - return message; - }; - - /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a GetHyperparameterTuningJobRequest message. - * @function verify - * @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 - */ - GetHyperparameterTuningJobRequest.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 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]]); + } + } + return message; + }; - /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest - */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + /** + * 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); + } + 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); + } return object; - 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 GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetHyperparameterTuningJobRequest.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 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); + }; - /** - * Converts this GetHyperparameterTuningJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest - * @instance - * @returns {Object.} JSON object - */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return PredictionDriftDetectionConfig; + })(); - return GetHyperparameterTuningJobRequest; - })(); + ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { - v1beta1.ListHyperparameterTuningJobsRequest = (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 ListHyperparameterTuningJobsRequest. - * @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 - */ + /** + * 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]]; + } - /** - * Constructs a new ListHyperparameterTuningJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - */ - function ListHyperparameterTuningJobsRequest(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; - /** - * ListHyperparameterTuningJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; + /** + * 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; - /** - * ListHyperparameterTuningJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; + /** + * 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); + }; - /** - * ListHyperparameterTuningJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; + /** + * 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; + }; - /** - * ListHyperparameterTuningJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; + /** + * 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(); + }; - /** - * ListHyperparameterTuningJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + /** + * 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; + }; - /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance - */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); - }; + /** + * 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()); + }; - /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @static - * @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 - */ - 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.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; - }; + /** + * 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; + }; - /** - * 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.ListHyperparameterTuningJobsRequest - * @static - * @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 - */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; + }; - /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. - * @function decode - * @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.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest - * @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) { - 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(); - 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; + /** + * 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; } - } - return message; - }; + 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; + }; - /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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); + }; - /** - * Verifies a ListHyperparameterTuningJobsRequest message. - * @function verify - * @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 - */ - 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.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; - }; + ExplanationConfig.ExplanationBaseline = (function() { - /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest - */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) - 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); - } - return message; - }; + /** + * 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 + */ - /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListHyperparameterTuningJobsRequest.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; - }; + /** + * 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]]; + } - /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - * @returns {Object.} JSON object - */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ExplanationBaseline gcs. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcs + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.gcs = null; - return ListHyperparameterTuningJobsRequest; - })(); + /** + * ExplanationBaseline bigquery. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigquery + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.bigquery = null; - v1beta1.ListHyperparameterTuningJobsResponse = (function() { + /** + * 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; - /** - * Properties of a ListHyperparameterTuningJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Constructs a new ListHyperparameterTuningJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; - 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 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) + }); - /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; + /** + * 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); + }; - /** - * ListHyperparameterTuningJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + /** + * 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 ListHyperparameterTuningJobsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance - */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(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 ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @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 - */ - ListHyperparameterTuningJobsResponse.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); - 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 ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @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 - */ - ListHyperparameterTuningJobsResponse.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 ListHyperparameterTuningJobsResponse message from the specified reader or buffer. - * @function decode - * @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.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse - * @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) { - 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(); - 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(); - 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 ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListHyperparameterTuningJobsResponse.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 ListHyperparameterTuningJobsResponse message. - * @function verify - * @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 - */ - ListHyperparameterTuningJobsResponse.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"; - 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 ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse - */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) - 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); - 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 ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListHyperparameterTuningJobsResponse.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; - 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 ListHyperparameterTuningJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - * @returns {Object.} JSON object - */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ExplanationBaseline; + })(); - return ListHyperparameterTuningJobsResponse; + return ExplanationConfig; + })(); + + return ModelMonitoringObjectiveConfig; })(); - v1beta1.DeleteHyperparameterTuningJobRequest = (function() { + v1beta1.ModelMonitoringAlertConfig = (function() { /** - * Properties of a DeleteHyperparameterTuningJobRequest. + * Properties of a ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name + * @interface IModelMonitoringAlertConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig + * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging */ /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest + * @classdesc Represents a ModelMonitoringAlertConfig. + * @implements IModelMonitoringAlertConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set */ - function DeleteHyperparameterTuningJobRequest(properties) { + function ModelMonitoringAlertConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222329,262 +225121,102 @@ } /** - * DeleteHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * ModelMonitoringAlertConfig emailAlertConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; - - /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance - */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); - }; - - /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @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 - */ - DeleteHyperparameterTuningJobRequest.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 DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @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 - */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. - * @function decode - * @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.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest - * @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) { - 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(); - 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 DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteHyperparameterTuningJobRequest message. - * @function verify - * @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 - */ - DeleteHyperparameterTuningJobRequest.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 DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest - */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) - return object; - 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 DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteHyperparameterTuningJobRequest.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; - }; + ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * ModelMonitoringAlertConfig enableLogging. + * @member {boolean} enableLogging + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance - * @returns {Object.} JSON object - */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteHyperparameterTuningJobRequest; - })(); - - v1beta1.CancelHyperparameterTuningJobRequest = (function() { - - /** - * Properties of a CancelHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ + ModelMonitoringAlertConfig.prototype.enableLogging = false; - /** - * Constructs a new CancelHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - */ - function CancelHyperparameterTuningJobRequest(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; /** - * CancelHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * ModelMonitoringAlertConfig alert. + * @member {"emailAlertConfig"|undefined} alert + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { + get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + ModelMonitoringAlertConfig.create = function create(properties) { + return new ModelMonitoringAlertConfig(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.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.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest 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 */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ModelMonitoringAlertConfig.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.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 CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.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.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest 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 */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @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.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @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 */ - CancelHyperparameterTuningJobRequest.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.CancelHyperparameterTuningJobRequest(); + 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.name = reader.string(); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + break; + case 2: + message.enableLogging = reader.bool(); break; default: reader.skipType(tag & 7); @@ -222595,322 +225227,329 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest 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.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @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 */ - CancelHyperparameterTuningJobRequest.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 CancelHyperparameterTuningJobRequest message. + * Verifies a ModelMonitoringAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @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 */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { + ModelMonitoringAlertConfig.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.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.enableLogging != null && message.hasOwnProperty("enableLogging")) + if (typeof message.enableLogging !== "boolean") + return "enableLogging: boolean expected"; return null; }; /** - * Creates a CancelHyperparameterTuningJobRequest 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.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + ModelMonitoringAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + 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.enableLogging != null) + message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest 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.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ModelMonitoringAlertConfig.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.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.enableLogging != null && message.hasOwnProperty("enableLogging")) + object.enableLogging = message.enableLogging; return object; }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance * @returns {Object.} JSON object */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelHyperparameterTuningJobRequest; - })(); + ModelMonitoringAlertConfig.EmailAlertConfig = (function() { - v1beta1.CreateBatchPredictionJobRequest = (function() { + /** + * Properties of an EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @interface IEmailAlertConfig + * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + */ - /** - * Properties of a CreateBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob - */ + /** + * 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]]; + } - /** - * Constructs a new CreateBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - */ - function CreateBatchPredictionJobRequest(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]]; - } + /** + * EmailAlertConfig userEmails. + * @member {Array.} userEmails + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + */ + EmailAlertConfig.prototype.userEmails = $util.emptyArray; - /** - * CreateBatchPredictionJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @instance - */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + /** + * 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); + }; - /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @instance - */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + /** + * 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; + }; - /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance - */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); - }; + /** + * 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(); + }; - /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @static - * @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 - */ - 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.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; - }; + /** + * 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; + }; - /** - * 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.CreateBatchPredictionJobRequest - * @static - * @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 - */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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()); + }; - /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. - * @function decode - * @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.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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 message; - }; - - /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a CreateBatchPredictionJobRequest message. - * @function verify - * @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 - */ - 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.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); - if (error) - return "batchPredictionJob." + error; - } - 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 CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest - */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + /** + * 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; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); - 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); - } - return message; - }; + }; - /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.batchPredictionJob = null; - } - 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); - 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); + }; - /** - * Converts this CreateBatchPredictionJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest - * @instance - * @returns {Object.} JSON object - */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return EmailAlertConfig; + })(); - return CreateBatchPredictionJobRequest; + return ModelMonitoringAlertConfig; })(); - v1beta1.GetBatchPredictionJobRequest = (function() { + v1beta1.ThresholdConfig = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a ThresholdConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new ThresholdConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function ThresholdConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222918,75 +225557,89 @@ } /** - * GetBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + ThresholdConfig.prototype.value = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new GetBatchPredictionJobRequest 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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest 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 */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + ThresholdConfig.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 1, wireType 1 =*/9).double(message.value); return writer; }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest 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 */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @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.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @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 */ - GetBatchPredictionJobRequest.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.GetBatchPredictionJobRequest(); + 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 1: - message.name = reader.string(); + message.value = reader.double(); break; default: reader.skipType(tag & 7); @@ -222997,239 +225650,187 @@ }; /** - * Decodes a GetBatchPredictionJobRequest 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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @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 */ - GetBatchPredictionJobRequest.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 GetBatchPredictionJobRequest message. + * Verifies a ThresholdConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @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 */ - GetBatchPredictionJobRequest.verify = function verify(message) { + ThresholdConfig.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.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } return null; }; /** - * Creates a GetBatchPredictionJobRequest 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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ThresholdConfig) 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.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest 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.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.ThresholdConfig} message ThresholdConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + ThresholdConfig.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 (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 GetBatchPredictionJobRequest to JSON. + * Converts this ThresholdConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + ThresholdConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetBatchPredictionJobRequest; - })(); - - v1beta1.ListBatchPredictionJobsRequest = (function() { - - /** - * Properties of a ListBatchPredictionJobsRequest. - * @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 - */ - - /** - * Constructs a new ListBatchPredictionJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - */ - function ListBatchPredictionJobsRequest(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]]; - } - - /** - * 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 = ""; + }; + + return ThresholdConfig; + })(); + + v1beta1.SamplingStrategy = (function() { /** - * ListBatchPredictionJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance + * Properties of a SamplingStrategy. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISamplingStrategy + * @property {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance + * Constructs a new SamplingStrategy. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SamplingStrategy. + * @implements ISamplingStrategy + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + function SamplingStrategy(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]]; + } /** - * ListBatchPredictionJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * SamplingStrategy randomSampleConfig. + * @member {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + SamplingStrategy.prototype.randomSampleConfig = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + SamplingStrategy.create = function create(properties) { + return new SamplingStrategy(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.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.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest 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 */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + SamplingStrategy.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.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 ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.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.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest 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 */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @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.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @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 */ - ListBatchPredictionJobsRequest.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.ListBatchPredictionJobsRequest(); + 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.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.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -223240,147 +225841,304 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest 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.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @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 */ - ListBatchPredictionJobsRequest.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 ListBatchPredictionJobsRequest message. + * Verifies a SamplingStrategy message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @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 */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + SamplingStrategy.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.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); if (error) - return "readMask." + error; + return "randomSampleConfig." + error; } return null; }; /** - * Creates a ListBatchPredictionJobsRequest 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.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) + SamplingStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy) 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.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 ListBatchPredictionJobsRequest 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.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy} message SamplingStrategy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + SamplingStrategy.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.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 ListBatchPredictionJobsRequest to JSON. + * Converts this SamplingStrategy to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + SamplingStrategy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListBatchPredictionJobsRequest; + 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.ListBatchPredictionJobsResponse = (function() { + v1beta1.LineageSubgraph = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a LineageSubgraph. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface ILineageSubgraph + * @property {Array.|null} [artifacts] LineageSubgraph artifacts + * @property {Array.|null} [executions] LineageSubgraph executions + * @property {Array.|null} [events] LineageSubgraph events */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new LineageSubgraph. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a LineageSubgraph. + * @implements ILineageSubgraph * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function LineageSubgraph(properties) { + this.artifacts = []; + this.executions = []; + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223388,91 +226146,110 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * LineageSubgraph artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + LineageSubgraph.prototype.artifacts = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * LineageSubgraph executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + LineageSubgraph.prototype.executions = $util.emptyArray; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * LineageSubgraph events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.events = $util.emptyArray; + + /** + * Creates a new LineageSubgraph instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + LineageSubgraph.create = function create(properties) { + return new LineageSubgraph(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + LineageSubgraph.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.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a LineageSubgraph message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static * @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.LineageSubgraph} LineageSubgraph * @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) { + LineageSubgraph.decode = function decode(reader, length) { 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.LineageSubgraph(); 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())); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); break; case 2: - message.nextPageToken = reader.string(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -223483,133 +226260,180 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph * @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) { + LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a LineageSubgraph message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @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) { + LineageSubgraph.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 (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); if (error) - return "batchPredictionJobs." + error; + return "artifacts." + error; + } + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); + if (error) + return "events." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LineageSubgraph 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.LineageSubgraph * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) + LineageSubgraph.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.LineageSubgraph) 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]); + var message = new $root.google.cloud.aiplatform.v1beta1.LineageSubgraph(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); + } + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); + } + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} message LineageSubgraph * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + LineageSubgraph.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 (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + object.events = []; + } + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); + } + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this LineageSubgraph to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + LineageSubgraph.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListBatchPredictionJobsResponse; + return LineageSubgraph; })(); - v1beta1.DeleteBatchPredictionJobRequest = (function() { + v1beta1.MetadataSchema = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a MetadataSchema. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IMetadataSchema + * @property {string|null} [name] MetadataSchema name + * @property {string|null} [schemaVersion] MetadataSchema schemaVersion + * @property {string|null} [schema] MetadataSchema schema + * @property {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime + * @property {string|null} [description] MetadataSchema description */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new MetadataSchema. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a MetadataSchema. + * @implements IMetadataSchema * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function MetadataSchema(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223617,76 +226441,141 @@ } /** - * DeleteBatchPredictionJobRequest name. + * MetadataSchema name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + MetadataSchema.prototype.name = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * MetadataSchema schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schemaVersion = ""; + + /** + * MetadataSchema schema. + * @member {string} schema + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schema = ""; + + /** + * MetadataSchema schemaType. + * @member {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType} schemaType + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schemaType = 0; + + /** + * MetadataSchema createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.createTime = null; + + /** + * MetadataSchema description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.description = ""; + + /** + * Creates a new MetadataSchema instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + MetadataSchema.create = function create(properties) { + return new MetadataSchema(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + MetadataSchema.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.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); + if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); + 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.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); return writer; }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @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.MetadataSchema} MetadataSchema * @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) { + MetadataSchema.decode = function decode(reader, length) { 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.MetadataSchema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.schemaVersion = reader.string(); + break; + case 3: + message.schema = reader.string(); + break; + case 4: + message.schemaType = reader.int32(); + break; + case 5: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.description = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -223696,1543 +226585,1254 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema * @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) { + MetadataSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a MetadataSchema message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @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) { + MetadataSchema.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.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + switch (message.schemaType) { + default: + return "schemaType: 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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema 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.MetadataSchema * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) + MetadataSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataSchema) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); if (object.name != null) message.name = String(object.name); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.schema != null) + message.schema = String(object.schema); + switch (object.schemaType) { + case "METADATA_SCHEMA_TYPE_UNSPECIFIED": + case 0: + message.schemaType = 0; + break; + case "ARTIFACT_TYPE": + case 1: + message.schemaType = 1; + break; + case "EXECUTION_TYPE": + case 2: + message.schemaType = 2; + break; + case "CONTEXT_TYPE": + case 3: + message.schemaType = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataSchema.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} message MetadataSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.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; - }; + MetadataSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.schemaVersion = ""; + object.schema = ""; + object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; + object.createTime = null; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this MetadataSchema to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @instance + * @returns {Object.} JSON object + */ + MetadataSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MetadataSchemaType enum. + * @name google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType + * @enum {number} + * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value + * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value + * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value + * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value + */ + MetadataSchema.MetadataSchemaType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE"] = 1; + values[valuesById[2] = "EXECUTION_TYPE"] = 2; + values[valuesById[3] = "CONTEXT_TYPE"] = 3; + return values; + })(); + + return MetadataSchema; + })(); + + v1beta1.MetadataService = (function() { + + /** + * Constructs a new MetadataService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MetadataService + * @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 MetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; + + /** + * Creates new MetadataService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @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 {MetadataService} RPC service. Useful where requests and/or responses are streamed. + */ + MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { + return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateMetadataStore" }); + + /** + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataStore} [response] MetadataStore + */ + + /** + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { + return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1beta1.MetadataStore, request, callback); + }, "name", { value: "GetMetadataStore" }); + + /** + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataStores}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListMetadataStoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse + */ /** - * Converts this DeleteBatchPredictionJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * @returns {undefined} + * @variation 1 */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteBatchPredictionJobRequest; - })(); - - v1beta1.CancelBatchPredictionJobRequest = (function() { + Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { + return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, request, callback); + }, "name", { value: "ListMetadataStores" }); /** - * Properties of a CancelBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CancelBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteMetadataStore}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function CancelBatchPredictionJobRequest(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]]; - } /** - * CancelBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CancelBatchPredictionJobRequest.prototype.name = ""; + Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { + return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteMetadataStore" }); /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); - }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - CancelBatchPredictionJobRequest.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 CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @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 + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { + return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "CreateArtifact" }); /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. - * @function decode - * @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.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.CancelBatchPredictionJobRequest(); - 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 CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CancelBatchPredictionJobRequest message. - * @function verify - * @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 + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - CancelBatchPredictionJobRequest.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(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { + return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "GetArtifact" }); /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) - return object; - 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 CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listArtifacts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} [response] ListArtifactsResponse */ - CancelBatchPredictionJobRequest.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 CancelBatchPredictionJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse + * @returns {undefined} + * @variation 1 */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CancelBatchPredictionJobRequest; - })(); - - v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { + Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { + return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse, request, callback); + }, "name", { value: "ListArtifacts" }); /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact */ - function CreateModelDeploymentMonitoringJobRequest(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]]; - } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; + Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { + return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); + }, "name", { value: "UpdateArtifact" }); /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteArtifact}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); - }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @static - * @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 + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateModelDeploymentMonitoringJobRequest.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(); - return writer; - }; + Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { + return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteArtifact" }); /** - * 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.CreateModelDeploymentMonitoringJobRequest - * @static - * @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 + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @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.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest - * @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.MetadataService#purgeArtifacts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - 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.CreateModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - 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); - break; - } - } - return message; - }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { + return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeArtifacts" }); /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. - * @function verify - * @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 + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateModelDeploymentMonitoringJobRequest.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 (error) - return "modelDeploymentMonitoringJob." + error; - } - return null; - }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) - return object; - 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 a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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; - }; + Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { + return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1beta1.CreateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "CreateContext" }); /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return CreateModelDeploymentMonitoringJobRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context + */ - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + /** + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { + return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1beta1.GetContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "GetContext" }); /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @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 + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listContexts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} [response] ListContextsResponse */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; - 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]]; - } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; + Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { + return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1beta1.ListContextsRequest, $root.google.cloud.aiplatform.v1beta1.ListContextsResponse, request, callback); + }, "name", { value: "ListContexts" }); /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { + return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); + }, "name", { value: "UpdateContext" }); /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteContext}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { + return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteContext" }); /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeContexts}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { + return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeContexts" }); /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); - }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @static - * @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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextArtifactsAndExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddContextArtifactsAndExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.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(); - return writer; - }; /** - * 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @static - * @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 + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { + return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, request, callback); + }, "name", { value: "AddContextArtifactsAndExecutions" }); /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. - * @function decode - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.modelDeploymentMonitoringJob = reader.string(); - 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()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextChildren}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} [response] AddContextChildrenResponse */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. - * @function verify - * @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 + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.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 (error) - return "objectives." + 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; - } - return null; - }; + Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { + return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, request, callback); + }, "name", { value: "AddContextChildren" }); /** - * 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 + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.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); - } - return message; - }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryContextLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryContextLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.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); - } - 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.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; + Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { + return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryContextLineageSubgraph" }); - /** - * 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); - }; + /** + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + */ - /** - * 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(); - }; + /** + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "CreateExecution" }); - /** - * 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; - }; + /** + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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()); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + */ - /** - * 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; - }; + /** + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "GetExecution" }); - /** - * 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; - }; + /** + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} [response] ListExecutionsResponse + */ - /** - * 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); - }; + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse, request, callback); + }, "name", { value: "ListExecutions" }); - return StatsAnomaliesObjective; - })(); + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + */ - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); + }, "name", { value: "UpdateExecution" }); /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteExecution}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef DeleteExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - 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 + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { + return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExecution" }); /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeExecutions}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef PurgeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - 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 + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { + return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeExecutions" }); /** - * 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 + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addExecutionEvents}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef AddExecutionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse */ - 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 + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse + * @returns {undefined} + * @variation 1 */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { + return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, request, callback); + }, "name", { value: "AddExecutionEvents" }); /** - * 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 + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryExecutionInputsAndOutputs}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryExecutionInputsAndOutputsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph */ - 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 + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { + return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryExecutionInputsAndOutputs" }); /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataSchema}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef CreateMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema */ /** - * 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 + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 */ - 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]]; - } + Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { + return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); + }, "name", { value: "CreateMetadataSchema" }); /** - * GetModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataSchema}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef GetMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema */ - 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 + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { + return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); + }, "name", { value: "GetMetadataSchema" }); /** - * 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 + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataSchemas}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef ListMetadataSchemasCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse */ - 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 + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * @returns {undefined} + * @variation 1 */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { + return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, request, callback); + }, "name", { value: "ListMetadataSchemas" }); /** - * 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 + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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 + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryArtifactLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @typedef QueryArtifactLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph */ - 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 + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - 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; - }; + Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { + return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); + }, "name", { value: "QueryArtifactLineageSubgraph" }); /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return GetModelDeploymentMonitoringJobRequest; + return MetadataService; })(); - v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1beta1.CreateMetadataStoreRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a CreateMetadataStoreRequest. * @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 ICreateMetadataStoreRequest + * @property {string|null} [parent] CreateMetadataStoreRequest parent + * @property {google.cloud.aiplatform.v1beta1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore + * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a CreateMetadataStoreRequest. + * @implements ICreateMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function CreateMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225240,110 +227840,90 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. + * CreateMetadataStoreRequest 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 + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + CreateMetadataStoreRequest.prototype.parent = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * CreateMetadataStoreRequest metadataStore. + * @member {google.cloud.aiplatform.v1beta1.IMetadataStore|null|undefined} metadataStore + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + CreateMetadataStoreRequest.prototype.metadataStore = null; /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * CreateMetadataStoreRequest metadataStoreId. + * @member {string} metadataStoreId + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + CreateMetadataStoreRequest.prototype.metadataStoreId = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + CreateMetadataStoreRequest.create = function create(properties) { + return new CreateMetadataStoreRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + CreateMetadataStoreRequest.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.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @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.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @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) { + CreateMetadataStoreRequest.decode = function decode(reader, length) { 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.CreateMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -225351,16 +227931,10 @@ message.parent = reader.string(); break; case 2: - message.filter = reader.string(); + message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32()); 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.metadataStoreId = reader.string(); break; default: reader.skipType(tag & 7); @@ -225371,147 +227945,129 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @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) { + CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a CreateMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @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) { + CreateMetadataStoreRequest.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.metadataStore != null && message.hasOwnProperty("metadataStore")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStore); if (error) - return "readMask." + error; + return "metadataStore." + error; } + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + if (!$util.isString(message.metadataStoreId)) + return "metadataStoreId: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest 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.CreateMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + CreateMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); 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.metadataStore != null) { + if (typeof object.metadataStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.metadataStore: object expected"); + message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStore); } + if (object.metadataStoreId != null) + message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + CreateMetadataStoreRequest.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.metadataStore = null; + object.metadataStoreId = ""; } 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.metadataStore != null && message.hasOwnProperty("metadataStore")) + object.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStore, options); + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelDeploymentMonitoringJobsRequest; + return CreateMetadataStoreRequest; })(); - v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1beta1.CreateMetadataStoreOperationMetadata = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface ICreateMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a CreateMetadataStoreOperationMetadata. + * @implements ICreateMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function CreateMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225519,91 +228075,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 + * CreateMetadataStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + CreateMetadataStoreOperationMetadata.create = function create(properties) { + return new CreateMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + CreateMetadataStoreOperationMetadata.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.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 ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @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.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @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) { + CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { 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.CreateMetadataStoreOperationMetadata(); 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.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -225614,134 +228154,112 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @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) { + CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a CreateMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @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) { + CreateMetadataStoreOperationMetadata.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.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata 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.CreateMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) 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]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + CreateMetadataStoreOperationMetadata.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.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 ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelDeploymentMonitoringJobsResponse; + return CreateMetadataStoreOperationMetadata; })(); - v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.GetMetadataStoreRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a GetMetadataStoreRequest. * @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 IGetMetadataStoreRequest + * @property {string|null} [name] GetMetadataStoreRequest name */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetMetadataStoreRequest. + * @implements IGetMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function GetMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225749,88 +228267,75 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; - - /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * GetMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + GetMetadataStoreRequest.prototype.name = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + GetMetadataStoreRequest.create = function create(properties) { + return new GetMetadataStoreRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetMetadataStoreRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @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.GetMetadataStoreRequest} GetMetadataStoreRequest * @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) { + GetMetadataStoreRequest.decode = function decode(reader, length) { 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.GetMetadataStoreRequest(); 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()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -225841,126 +228346,109 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest * @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) { + GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a GetMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @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) { + GetMetadataStoreRequest.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 (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest 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.GetMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + GetMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) 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.GetMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} message GetMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = 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 (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateModelDeploymentMonitoringJobRequest; + return GetMetadataStoreRequest; })(); - v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListMetadataStoresRequest = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface IListMetadataStoresRequest + * @property {string|null} [parent] ListMetadataStoresRequest parent + * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize + * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListMetadataStoresRequest. + * @implements IListMetadataStoresRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function ListMetadataStoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225968,75 +228456,101 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * ListMetadataStoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + ListMetadataStoresRequest.prototype.parent = ""; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListMetadataStoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageSize = 0; + + /** + * ListMetadataStoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + ListMetadataStoresRequest.create = function create(properties) { + return new ListMetadataStoresRequest(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListMetadataStoresRequest.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.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); return writer; }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @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.ListMetadataStoresRequest} ListMetadataStoresRequest * @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) { + ListMetadataStoresRequest.decode = function decode(reader, length) { 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.ListMetadataStoresRequest(); 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.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -226047,107 +228561,126 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest * @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) { + ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a ListMetadataStoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @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) { + ListMetadataStoresRequest.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.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 DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest 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.ListMetadataStoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + ListMetadataStoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) 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.ListMetadataStoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + 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 DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} message ListMetadataStoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListMetadataStoresRequest.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.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + 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 DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteModelDeploymentMonitoringJobRequest; + return ListMetadataStoresRequest; })(); - v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListMetadataStoresResponse = (function() { /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. + * Properties of a ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name + * @interface IListMetadataStoresResponse + * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores + * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken */ /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListMetadataStoresResponse. + * @implements IListMetadataStoresResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set */ - function PauseModelDeploymentMonitoringJobRequest(properties) { + function ListMetadataStoresResponse(properties) { + this.metadataStores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -226155,75 +228688,91 @@ } /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * ListMetadataStoresResponse metadataStores. + * @member {Array.} metadataStores + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @instance */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListMetadataStoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @instance + */ + ListMetadataStoresResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse instance */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); + ListMetadataStoresResponse.create = function create(properties) { + return new ListMetadataStoresResponse(properties); }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListMetadataStoresResponse.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.metadataStores != null && message.metadataStores.length) + for (var i = 0; i < message.metadataStores.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStores[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 PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @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.ListMetadataStoresResponse} ListMetadataStoresResponse * @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) { + ListMetadataStoresResponse.decode = function decode(reader, length) { 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.ListMetadataStoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.metadataStores && message.metadataStores.length)) + message.metadataStores = []; + message.metadataStores.push($root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -226234,107 +228783,134 @@ }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse * @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) { + ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a ListMetadataStoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @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) { + ListMetadataStoresResponse.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.metadataStores != null && message.hasOwnProperty("metadataStores")) { + if (!Array.isArray(message.metadataStores)) + return "metadataStores: array expected"; + for (var i = 0; i < message.metadataStores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStores[i]); + if (error) + return "metadataStores." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse 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.ListMetadataStoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + ListMetadataStoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); + if (object.metadataStores) { + if (!Array.isArray(object.metadataStores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: array expected"); + message.metadataStores = []; + for (var i = 0; i < object.metadataStores.length; ++i) { + if (typeof object.metadataStores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: object expected"); + message.metadataStores[i] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStores[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} message ListMetadataStoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListMetadataStoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.metadataStores = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.metadataStores && message.metadataStores.length) { + object.metadataStores = []; + for (var j = 0; j < message.metadataStores.length; ++j) + object.metadataStores[j] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStores[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse * @instance * @returns {Object.} JSON object */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PauseModelDeploymentMonitoringJobRequest; + return ListMetadataStoresResponse; })(); - v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1beta1.DeleteMetadataStoreRequest = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface IDeleteMetadataStoreRequest + * @property {string|null} [name] DeleteMetadataStoreRequest name + * @property {boolean|null} [force] DeleteMetadataStoreRequest force */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a DeleteMetadataStoreRequest. + * @implements IDeleteMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function DeleteMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -226342,76 +228918,89 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. + * DeleteMetadataStoreRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + DeleteMetadataStoreRequest.prototype.name = ""; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * DeleteMetadataStoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @instance + */ + DeleteMetadataStoreRequest.prototype.force = false; + + /** + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); + DeleteMetadataStoreRequest.create = function create(properties) { + return new DeleteMetadataStoreRequest(properties); }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + DeleteMetadataStoreRequest.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 ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @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.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @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) { + DeleteMetadataStoreRequest.decode = function decode(reader, length) { 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.DeleteMetadataStoreRequest(); 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; @@ -226421,107 +229010,116 @@ }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @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) { + DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @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) { + DeleteMetadataStoreRequest.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 a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest 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.DeleteMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + DeleteMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); 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 ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + DeleteMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResumeModelDeploymentMonitoringJobRequest; + return DeleteMetadataStoreRequest; })(); - v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + v1beta1.DeleteMetadataStoreOperationMetadata = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. + * Properties of a DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * @interface IDeleteMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata + * @classdesc Represents a DeleteMetadataStoreOperationMetadata. + * @implements IDeleteMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { + function DeleteMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -226529,35 +229127,35 @@ } /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * DeleteMetadataStoreOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + DeleteMetadataStoreOperationMetadata.create = function create(properties) { + return new DeleteMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -226566,33 +229164,33 @@ }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @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.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @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) { + DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { 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.DeleteMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -226608,30 +229206,30 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @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) { + DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a DeleteMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @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) { + DeleteMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -226643,35 +229241,35 @@ }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata 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.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -226683,42 +229281,39 @@ }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; + return DeleteMetadataStoreOperationMetadata; })(); - v1beta1.LineageSubgraph = (function() { + v1beta1.CreateArtifactRequest = (function() { /** - * Properties of a LineageSubgraph. + * Properties of a CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ILineageSubgraph - * @property {Array.|null} [artifacts] LineageSubgraph artifacts - * @property {Array.|null} [executions] LineageSubgraph executions - * @property {Array.|null} [events] LineageSubgraph events + * @interface ICreateArtifactRequest + * @property {string|null} [parent] CreateArtifactRequest parent + * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] CreateArtifactRequest artifact + * @property {string|null} [artifactId] CreateArtifactRequest artifactId */ /** - * Constructs a new LineageSubgraph. + * Constructs a new CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a LineageSubgraph. - * @implements ILineageSubgraph + * @classdesc Represents a CreateArtifactRequest. + * @implements ICreateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set */ - function LineageSubgraph(properties) { - this.artifacts = []; - this.executions = []; - this.events = []; + function CreateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -226726,110 +229321,101 @@ } /** - * LineageSubgraph artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * CreateArtifactRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance */ - LineageSubgraph.prototype.artifacts = $util.emptyArray; + CreateArtifactRequest.prototype.parent = ""; /** - * LineageSubgraph executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * CreateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance */ - LineageSubgraph.prototype.executions = $util.emptyArray; + CreateArtifactRequest.prototype.artifact = null; /** - * LineageSubgraph events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * CreateArtifactRequest artifactId. + * @member {string} artifactId + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance */ - LineageSubgraph.prototype.events = $util.emptyArray; + CreateArtifactRequest.prototype.artifactId = ""; /** - * Creates a new LineageSubgraph instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph instance + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest instance */ - LineageSubgraph.create = function create(properties) { - return new LineageSubgraph(properties); + CreateArtifactRequest.create = function create(properties) { + return new CreateArtifactRequest(properties); }; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LineageSubgraph.encode = function encode(message, writer) { + CreateArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); return writer; }; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LineageSubgraph.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { + CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LineageSubgraph.decode = function decode(reader, length) { + CreateArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.LineageSubgraph(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); break; case 3: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); + message.artifactId = reader.string(); break; default: reader.skipType(tag & 7); @@ -226840,180 +229426,129 @@ }; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { + CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LineageSubgraph message. + * Verifies a CreateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LineageSubgraph.verify = function verify(message) { + CreateArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); + if (error) + return "artifact." + error; } + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; return null; }; /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest */ - LineageSubgraph.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.LineageSubgraph) + CreateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.LineageSubgraph(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); - } - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); - } - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.LineageSubgraph.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); } + if (object.artifactId != null) + message.artifactId = String(object.artifactId); return message; }; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} message LineageSubgraph + * @param {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} message CreateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LineageSubgraph.toObject = function toObject(message, options) { + CreateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - object.events = []; - } - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); - } - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); + if (options.defaults) { + object.parent = ""; + object.artifact = null; + object.artifactId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + object.artifactId = message.artifactId; return object; }; /** - * Converts this LineageSubgraph to JSON. + * Converts this CreateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest * @instance * @returns {Object.} JSON object */ - LineageSubgraph.prototype.toJSON = function toJSON() { + CreateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LineageSubgraph; + return CreateArtifactRequest; })(); - v1beta1.MetadataSchema = (function() { + v1beta1.GetArtifactRequest = (function() { /** - * Properties of a MetadataSchema. + * Properties of a GetArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMetadataSchema - * @property {string|null} [name] MetadataSchema name - * @property {string|null} [schemaVersion] MetadataSchema schemaVersion - * @property {string|null} [schema] MetadataSchema schema - * @property {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime - * @property {string|null} [description] MetadataSchema description + * @interface IGetArtifactRequest + * @property {string|null} [name] GetArtifactRequest name */ /** - * Constructs a new MetadataSchema. + * Constructs a new GetArtifactRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataSchema. - * @implements IMetadataSchema + * @classdesc Represents a GetArtifactRequest. + * @implements IGetArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set */ - function MetadataSchema(properties) { + function GetArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227021,141 +229556,76 @@ } /** - * MetadataSchema name. + * GetArtifactRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.name = ""; - - /** - * MetadataSchema schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schemaVersion = ""; - - /** - * MetadataSchema schema. - * @member {string} schema - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schema = ""; - - /** - * MetadataSchema schemaType. - * @member {google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType} schemaType - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schemaType = 0; - - /** - * MetadataSchema createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.createTime = null; - - /** - * MetadataSchema description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @instance */ - MetadataSchema.prototype.description = ""; + GetArtifactRequest.prototype.name = ""; /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema instance + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest instance */ - MetadataSchema.create = function create(properties) { - return new MetadataSchema(properties); + GetArtifactRequest.create = function create(properties) { + return new GetArtifactRequest(properties); }; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encode = function encode(message, writer) { + GetArtifactRequest.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.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); - if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); - 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.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); return writer; }; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataSchema.verify|verify} messages. + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { + GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decode = function decode(reader, length) { + GetArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.schemaVersion = reader.string(); - break; - case 3: - message.schema = reader.string(); - break; - case 4: - message.schemaType = reader.int32(); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.description = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -227165,1254 +229635,1046 @@ }; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decodeDelimited = function decodeDelimited(reader) { + GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataSchema message. + * Verifies a GetArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataSchema.verify = function verify(message) { + GetArtifactRequest.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.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - switch (message.schemaType) { - default: - return "schemaType: 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.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest */ - MetadataSchema.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataSchema) + GetArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataSchema(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); if (object.name != null) message.name = String(object.name); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.schema != null) - message.schema = String(object.schema); - switch (object.schemaType) { - case "METADATA_SCHEMA_TYPE_UNSPECIFIED": - case 0: - message.schemaType = 0; - break; - case "ARTIFACT_TYPE": - case 1: - message.schemaType = 1; - break; - case "EXECUTION_TYPE": - case 2: - message.schemaType = 2; - break; - case "CONTEXT_TYPE": - case 3: - message.schemaType = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataSchema.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} message MetadataSchema + * @param {google.cloud.aiplatform.v1beta1.GetArtifactRequest} message GetArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataSchema.toObject = function toObject(message, options) { + GetArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.schemaVersion = ""; - object.schema = ""; - object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; - object.createTime = null; - object.description = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; return object; }; /** - * Converts this MetadataSchema to JSON. + * Converts this GetArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataSchema + * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest * @instance * @returns {Object.} JSON object */ - MetadataSchema.prototype.toJSON = function toJSON() { + GetArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MetadataSchemaType enum. - * @name google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType - * @enum {number} - * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value - * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value - * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value - * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value - */ - MetadataSchema.MetadataSchemaType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE"] = 1; - values[valuesById[2] = "EXECUTION_TYPE"] = 2; - values[valuesById[3] = "CONTEXT_TYPE"] = 3; - return values; - })(); - - return MetadataSchema; + return GetArtifactRequest; })(); - v1beta1.MetadataService = (function() { + v1beta1.ListArtifactsRequest = (function() { /** - * Constructs a new MetadataService service. + * Properties of a ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataService - * @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 MetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; - - /** - * Creates new MetadataService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @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 {MetadataService} RPC service. Useful where requests and/or responses are streamed. - */ - MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { - return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateMetadataStore" }); - - /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataStore} [response] MetadataStore - */ - - /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { - return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1beta1.MetadataStore, request, callback); - }, "name", { value: "GetMetadataStore" }); - - /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataStores}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListMetadataStoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse - */ - - /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { - return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse, request, callback); - }, "name", { value: "ListMetadataStores" }); - - /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteMetadataStore}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { - return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteMetadataStore" }); - - /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact - */ - - /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { - return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "CreateArtifact" }); - - /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact - */ - - /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { - return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "GetArtifact" }); - - /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listArtifacts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} [response] ListArtifactsResponse - */ - - /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { - return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse, request, callback); - }, "name", { value: "ListArtifacts" }); - - /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Artifact} [response] Artifact - */ - - /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { - return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1beta1.Artifact, request, callback); - }, "name", { value: "UpdateArtifact" }); - - /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteArtifact}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { - return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteArtifact" }); - - /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeArtifacts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { - return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeArtifacts" }); - - /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context - */ - - /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { - return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1beta1.CreateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "CreateContext" }); - - /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} request CreateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context - */ - - /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { - return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1beta1.GetContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "GetContext" }); - - /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} request GetContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listContexts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} [response] ListContextsResponse + * @interface IListArtifactsRequest + * @property {string|null} [parent] ListArtifactsRequest parent + * @property {number|null} [pageSize] ListArtifactsRequest pageSize + * @property {string|null} [pageToken] ListArtifactsRequest pageToken + * @property {string|null} [filter] ListArtifactsRequest filter */ /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new ListArtifactsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListArtifactsRequest. + * @implements IListArtifactsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { - return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1beta1.ListContextsRequest, $root.google.cloud.aiplatform.v1beta1.ListContextsResponse, request, callback); - }, "name", { value: "ListContexts" }); + function ListArtifactsRequest(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 ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} request ListContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Context} [response] Context */ + ListArtifactsRequest.prototype.parent = ""; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { - return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest, $root.google.cloud.aiplatform.v1beta1.Context, request, callback); - }, "name", { value: "UpdateContext" }); + ListArtifactsRequest.prototype.pageSize = 0; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteContext}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + ListArtifactsRequest.prototype.pageToken = ""; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { - return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteContext" }); + ListArtifactsRequest.prototype.filter = ""; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new ListArtifactsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest instance */ + ListArtifactsRequest.create = function create(properties) { + return new ListArtifactsRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeContexts}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListArtifactsRequest.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.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); + return writer; + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { - return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeContexts" }); + ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListArtifactsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextArtifactsAndExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddContextArtifactsAndExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse - * @returns {undefined} - * @variation 1 + * Verifies a ListArtifactsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { - return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse, request, callback); - }, "name", { value: "AddContextArtifactsAndExecutions" }); + ListArtifactsRequest.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.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"; + return null; + }; /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest */ + ListArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + 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); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addContextChildren}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} [response] AddContextChildrenResponse + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} message ListArtifactsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListArtifactsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + 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; + return object; + }; /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this ListArtifactsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { - return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse, request, callback); - }, "name", { value: "AddContextChildren" }); + ListArtifactsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListArtifactsRequest; + })(); + + v1beta1.ListArtifactsResponse = (function() { /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListArtifactsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListArtifactsResponse + * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts + * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryContextLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryContextLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph + * Constructs a new ListArtifactsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListArtifactsResponse. + * @implements IListArtifactsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set */ + function ListArtifactsResponse(properties) { + this.artifacts = []; + 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 QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsResponse artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { - return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryContextLineageSubgraph" }); + ListArtifactsResponse.prototype.artifacts = $util.emptyArray; /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * ListArtifactsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListArtifactsResponse.prototype.nextPageToken = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + * Creates a new ListArtifactsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse instance */ + ListArtifactsResponse.create = function create(properties) { + return new ListArtifactsResponse(properties); + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "CreateExecution" }); + ListArtifactsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[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; + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListArtifactsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "GetExecution" }); + ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListArtifactsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListArtifactsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} [response] ListExecutionsResponse + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse */ + ListArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} message ListArtifactsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse, request, callback); - }, "name", { value: "ListExecutions" }); + ListArtifactsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this ListArtifactsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListArtifactsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListArtifactsResponse; + })(); + + v1beta1.UpdateArtifactRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#updateExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Execution} [response] Execution + * Properties of an UpdateArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateArtifactRequest + * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] UpdateArtifactRequest artifact + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask + * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing */ /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Constructs a new UpdateArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateArtifactRequest. + * @implements IUpdateArtifactRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1beta1.Execution, request, callback); - }, "name", { value: "UpdateExecution" }); + function UpdateArtifactRequest(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 UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * UpdateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + UpdateArtifactRequest.prototype.artifact = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#deleteExecution}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef DeleteExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * UpdateArtifactRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @instance */ + UpdateArtifactRequest.prototype.updateMask = null; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * UpdateArtifactRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { - return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteExecution" }); + UpdateArtifactRequest.prototype.allowMissing = false; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new UpdateArtifactRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest instance */ + UpdateArtifactRequest.create = function create(properties) { + return new UpdateArtifactRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#purgeExecutions}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef PurgeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + UpdateArtifactRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, 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.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + return writer; + }; /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { - return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeExecutions" }); + UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + UpdateArtifactRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 3: + message.allowMissing = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#addExecutionEvents}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef AddExecutionEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - * @returns {undefined} - * @variation 1 + * Verifies an UpdateArtifactRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { - return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse, request, callback); - }, "name", { value: "AddExecutionEvents" }); + UpdateArtifactRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); + if (error) + return "artifact." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest */ + UpdateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryExecutionInputsAndOutputs}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryExecutionInputsAndOutputsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + UpdateArtifactRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifact = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this UpdateArtifactRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { - return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryExecutionInputsAndOutputs" }); + UpdateArtifactRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateArtifactRequest; + })(); + + v1beta1.DeleteArtifactRequest = (function() { /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a DeleteArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteArtifactRequest + * @property {string|null} [name] DeleteArtifactRequest name + * @property {string|null} [etag] DeleteArtifactRequest etag */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#createMetadataSchema}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef CreateMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema + * Constructs a new DeleteArtifactRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteArtifactRequest. + * @implements IDeleteArtifactRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set */ + function DeleteArtifactRequest(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 CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * DeleteArtifactRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { - return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); - }, "name", { value: "CreateMetadataSchema" }); + DeleteArtifactRequest.prototype.name = ""; /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * DeleteArtifactRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteArtifactRequest.prototype.etag = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#getMetadataSchema}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef GetMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.MetadataSchema} [response] MetadataSchema + * Creates a new DeleteArtifactRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest instance */ + DeleteArtifactRequest.create = function create(properties) { + return new DeleteArtifactRequest(properties); + }; /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { - return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1beta1.MetadataSchema, request, callback); - }, "name", { value: "GetMetadataSchema" }); + DeleteArtifactRequest.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.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + return writer; + }; /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#listMetadataSchemas}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef ListMetadataSchemasCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteArtifactRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.etag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - * @returns {undefined} - * @variation 1 + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { - return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse, request, callback); - }, "name", { value: "ListMetadataSchemas" }); + DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteArtifactRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteArtifactRequest.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.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MetadataService#queryArtifactLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @typedef QueryArtifactLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.LineageSubgraph} [response] LineageSubgraph + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest */ + DeleteArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} message DeleteArtifactRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { - return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1beta1.LineageSubgraph, request, callback); - }, "name", { value: "QueryArtifactLineageSubgraph" }); + DeleteArtifactRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1beta1.MetadataService + * Converts this DeleteArtifactRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DeleteArtifactRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MetadataService; + return DeleteArtifactRequest; })(); - v1beta1.CreateMetadataStoreRequest = (function() { + v1beta1.PurgeArtifactsRequest = (function() { /** - * Properties of a CreateMetadataStoreRequest. + * Properties of a PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataStoreRequest - * @property {string|null} [parent] CreateMetadataStoreRequest parent - * @property {google.cloud.aiplatform.v1beta1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore - * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId + * @interface IPurgeArtifactsRequest + * @property {string|null} [parent] PurgeArtifactsRequest parent + * @property {string|null} [filter] PurgeArtifactsRequest filter + * @property {boolean|null} [force] PurgeArtifactsRequest force */ /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataStoreRequest. - * @implements ICreateMetadataStoreRequest + * @classdesc Represents a PurgeArtifactsRequest. + * @implements IPurgeArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set */ - function CreateMetadataStoreRequest(properties) { + function PurgeArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228420,90 +230682,90 @@ } /** - * CreateMetadataStoreRequest parent. + * PurgeArtifactsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @instance */ - CreateMetadataStoreRequest.prototype.parent = ""; + PurgeArtifactsRequest.prototype.parent = ""; /** - * CreateMetadataStoreRequest metadataStore. - * @member {google.cloud.aiplatform.v1beta1.IMetadataStore|null|undefined} metadataStore - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * PurgeArtifactsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @instance */ - CreateMetadataStoreRequest.prototype.metadataStore = null; + PurgeArtifactsRequest.prototype.filter = ""; /** - * CreateMetadataStoreRequest metadataStoreId. - * @member {string} metadataStoreId - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * PurgeArtifactsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @instance */ - CreateMetadataStoreRequest.prototype.metadataStoreId = ""; + PurgeArtifactsRequest.prototype.force = false; /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest instance */ - CreateMetadataStoreRequest.create = function create(properties) { - return new CreateMetadataStoreRequest(properties); + PurgeArtifactsRequest.create = function create(properties) { + return new PurgeArtifactsRequest(properties); }; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encode = function encode(message, writer) { + PurgeArtifactsRequest.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.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decode = function decode(reader, length) { + PurgeArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -228511,10 +230773,10 @@ message.parent = reader.string(); break; case 2: - message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32()); + message.filter = reader.string(); break; case 3: - message.metadataStoreId = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -228525,129 +230787,126 @@ }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies a PurgeArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreRequest.verify = function verify(message) { + PurgeArtifactsRequest.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.metadataStore != null && message.hasOwnProperty("metadataStore")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStore); - if (error) - return "metadataStore." + error; - } - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - if (!$util.isString(message.metadataStoreId)) - return "metadataStoreId: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest */ - CreateMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest) + PurgeArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.metadataStore != null) { - if (typeof object.metadataStore !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest.metadataStore: object expected"); - message.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStore); - } - if (object.metadataStoreId != null) - message.metadataStoreId = String(object.metadataStoreId); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} message PurgeArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreRequest.toObject = function toObject(message, options) { + PurgeArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.metadataStore = null; - object.metadataStoreId = ""; + object.filter = ""; + object.force = false; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) - object.metadataStore = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStore, options); - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - object.metadataStoreId = message.metadataStoreId; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { + PurgeArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateMetadataStoreRequest; + return PurgeArtifactsRequest; })(); - v1beta1.CreateMetadataStoreOperationMetadata = (function() { + v1beta1.PurgeArtifactsResponse = (function() { /** - * Properties of a CreateMetadataStoreOperationMetadata. + * Properties of a PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata + * @interface IPurgeArtifactsResponse + * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample */ /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataStoreOperationMetadata. - * @implements ICreateMetadataStoreOperationMetadata + * @classdesc Represents a PurgeArtifactsResponse. + * @implements IPurgeArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set */ - function CreateMetadataStoreOperationMetadata(properties) { + function PurgeArtifactsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228655,75 +230914,91 @@ } /** - * CreateMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * PurgeArtifactsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @instance */ - CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; + PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * PurgeArtifactsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @instance + */ + PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; + + /** + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse instance */ - CreateMetadataStoreOperationMetadata.create = function create(properties) { - return new CreateMetadataStoreOperationMetadata(properties); + PurgeArtifactsResponse.create = function create(properties) { + return new PurgeArtifactsResponse(properties); }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { + PurgeArtifactsResponse.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.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { + PurgeArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); 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.purgeCount = reader.int64(); + break; + case 2: + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -228734,112 +231009,142 @@ }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a PurgeArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreOperationMetadata.verify = function verify(message) { + PurgeArtifactsResponse.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.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; } return null; }; /** - * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse */ - CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata) + PurgeArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); } return message; }; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} message PurgeArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { + PurgeArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.purgeSample = []; 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 ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; + } return object; }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + PurgeArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateMetadataStoreOperationMetadata; + return PurgeArtifactsResponse; })(); - v1beta1.GetMetadataStoreRequest = (function() { + v1beta1.PurgeArtifactsMetadata = (function() { /** - * Properties of a GetMetadataStoreRequest. + * Properties of a PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetMetadataStoreRequest - * @property {string|null} [name] GetMetadataStoreRequest name + * @interface IPurgeArtifactsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata */ /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetMetadataStoreRequest. - * @implements IGetMetadataStoreRequest + * @classdesc Represents a PurgeArtifactsMetadata. + * @implements IPurgeArtifactsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set */ - function GetMetadataStoreRequest(properties) { + function PurgeArtifactsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -228847,75 +231152,75 @@ } /** - * GetMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * PurgeArtifactsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @instance */ - GetMetadataStoreRequest.prototype.name = ""; + PurgeArtifactsMetadata.prototype.genericMetadata = null; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance */ - GetMetadataStoreRequest.create = function create(properties) { - return new GetMetadataStoreRequest(properties); + PurgeArtifactsMetadata.create = function create(properties) { + return new PurgeArtifactsMetadata(properties); }; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encode = function encode(message, writer) { + PurgeArtifactsMetadata.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(); return writer; }; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decode = function decode(reader, length) { + PurgeArtifactsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); 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; default: reader.skipType(tag & 7); @@ -228926,109 +231231,114 @@ }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a PurgeArtifactsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataStoreRequest.verify = function verify(message) { + PurgeArtifactsMetadata.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; + } return null; }; /** - * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata */ - GetMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest) + PurgeArtifactsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest} message GetMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataStoreRequest.toObject = function toObject(message, options) { + PurgeArtifactsMetadata.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.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 GetMetadataStoreRequest to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata * @instance * @returns {Object.} JSON object */ - GetMetadataStoreRequest.prototype.toJSON = function toJSON() { + PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetMetadataStoreRequest; + return PurgeArtifactsMetadata; })(); - v1beta1.ListMetadataStoresRequest = (function() { + v1beta1.CreateContextRequest = (function() { /** - * Properties of a ListMetadataStoresRequest. + * Properties of a CreateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataStoresRequest - * @property {string|null} [parent] ListMetadataStoresRequest parent - * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize - * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken + * @interface ICreateContextRequest + * @property {string|null} [parent] CreateContextRequest parent + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] CreateContextRequest context + * @property {string|null} [contextId] CreateContextRequest contextId */ /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new CreateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataStoresRequest. - * @implements IListMetadataStoresRequest + * @classdesc Represents a CreateContextRequest. + * @implements ICreateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set */ - function ListMetadataStoresRequest(properties) { + function CreateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229036,90 +231346,90 @@ } /** - * ListMetadataStoresRequest parent. + * CreateContextRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - ListMetadataStoresRequest.prototype.parent = ""; + CreateContextRequest.prototype.parent = ""; /** - * ListMetadataStoresRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * CreateContextRequest context. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - ListMetadataStoresRequest.prototype.pageSize = 0; + CreateContextRequest.prototype.context = null; /** - * ListMetadataStoresRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * CreateContextRequest contextId. + * @member {string} contextId + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance */ - ListMetadataStoresRequest.prototype.pageToken = ""; + CreateContextRequest.prototype.contextId = ""; /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest instance */ - ListMetadataStoresRequest.create = function create(properties) { - return new ListMetadataStoresRequest(properties); + CreateContextRequest.create = function create(properties) { + return new CreateContextRequest(properties); }; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encode = function encode(message, writer) { + CreateContextRequest.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.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.context != null && Object.hasOwnProperty.call(message, "context")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); return writer; }; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decode = function decode(reader, length) { + CreateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -229127,10 +231437,10 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); break; case 3: - message.pageToken = reader.string(); + message.contextId = reader.string(); break; default: reader.skipType(tag & 7); @@ -229141,126 +231451,129 @@ }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { + CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a CreateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresRequest.verify = function verify(message) { + CreateContextRequest.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.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.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); + if (error) + return "context." + error; + } + if (message.contextId != null && message.hasOwnProperty("contextId")) + if (!$util.isString(message.contextId)) + return "contextId: string expected"; return null; }; /** - * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest */ - ListMetadataStoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest) + CreateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); + } + if (object.contextId != null) + message.contextId = String(object.contextId); return message; }; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest} message ListMetadataStoresRequest + * @param {google.cloud.aiplatform.v1beta1.CreateContextRequest} message CreateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresRequest.toObject = function toObject(message, options) { + CreateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.context = null; + object.contextId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); + if (message.contextId != null && message.hasOwnProperty("contextId")) + object.contextId = message.contextId; return object; }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this CreateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest * @instance * @returns {Object.} JSON object */ - ListMetadataStoresRequest.prototype.toJSON = function toJSON() { + CreateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMetadataStoresRequest; + return CreateContextRequest; })(); - v1beta1.ListMetadataStoresResponse = (function() { + v1beta1.GetContextRequest = (function() { /** - * Properties of a ListMetadataStoresResponse. + * Properties of a GetContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataStoresResponse - * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores - * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken + * @interface IGetContextRequest + * @property {string|null} [name] GetContextRequest name */ /** - * Constructs a new ListMetadataStoresResponse. + * Constructs a new GetContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataStoresResponse. - * @implements IListMetadataStoresResponse + * @classdesc Represents a GetContextRequest. + * @implements IGetContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set */ - function ListMetadataStoresResponse(properties) { - this.metadataStores = []; + function GetContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229268,91 +231581,304 @@ } /** - * ListMetadataStoresResponse metadataStores. - * @member {Array.} metadataStores - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * GetContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest * @instance */ - ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; + GetContextRequest.prototype.name = ""; /** - * ListMetadataStoresResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * Creates a new GetContextRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest instance + */ + GetContextRequest.create = function create(properties) { + return new GetContextRequest(properties); + }; + + /** + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetContextRequest.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 GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetContextRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetContextRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + 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 GetContextRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetContextRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetContextRequest.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 GetContextRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + */ + GetContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetContextRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetContextRequest} message GetContextRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetContextRequest.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 GetContextRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest * @instance + * @returns {Object.} JSON object */ - ListMetadataStoresResponse.prototype.nextPageToken = ""; + GetContextRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetContextRequest; + })(); + + v1beta1.ListContextsRequest = (function() { /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. + * Properties of a ListContextsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListContextsRequest + * @property {string|null} [parent] ListContextsRequest parent + * @property {number|null} [pageSize] ListContextsRequest pageSize + * @property {string|null} [pageToken] ListContextsRequest pageToken + * @property {string|null} [filter] ListContextsRequest filter + */ + + /** + * Constructs a new ListContextsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListContextsRequest. + * @implements IListContextsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set + */ + function ListContextsRequest(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]]; + } + + /** + * ListContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.parent = ""; + + /** + * ListContextsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.pageSize = 0; + + /** + * ListContextsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.pageToken = ""; + + /** + * ListContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.filter = ""; + + /** + * Creates a new ListContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest instance */ - ListMetadataStoresResponse.create = function create(properties) { - return new ListMetadataStoresResponse(properties); + ListContextsRequest.create = function create(properties) { + return new ListContextsRequest(properties); }; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresResponse.encode = function encode(message, writer) { + ListContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadataStores != null && message.metadataStores.length) - for (var i = 0; i < message.metadataStores.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.encode(message.metadataStores[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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + 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); return writer; }; /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.verify|verify} messages. + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresResponse.decode = function decode(reader, length) { + ListContextsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.metadataStores && message.metadataStores.length)) - message.metadataStores = []; - message.metadataStores.push($root.google.cloud.aiplatform.v1beta1.MetadataStore.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -229363,134 +231889,134 @@ }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { + ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresResponse message. + * Verifies a ListContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresResponse.verify = function verify(message) { + ListContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { - if (!Array.isArray(message.metadataStores)) - return "metadataStores: array expected"; - for (var i = 0; i < message.metadataStores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.verify(message.metadataStores[i]); - if (error) - return "metadataStores." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: 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"; return null; }; /** - * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} ListMetadataStoresResponse + * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest */ - ListMetadataStoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse) + ListContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(); - if (object.metadataStores) { - if (!Array.isArray(object.metadataStores)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: array expected"); - message.metadataStores = []; - for (var i = 0; i < object.metadataStores.length; ++i) { - if (typeof object.metadataStores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse.metadataStores: object expected"); - message.metadataStores[i] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.fromObject(object.metadataStores[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + 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); return message; }; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse} message ListMetadataStoresResponse + * @param {google.cloud.aiplatform.v1beta1.ListContextsRequest} message ListContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresResponse.toObject = function toObject(message, options) { + ListContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metadataStores = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataStores && message.metadataStores.length) { - object.metadataStores = []; - for (var j = 0; j < message.metadataStores.length; ++j) - object.metadataStores[j] = $root.google.cloud.aiplatform.v1beta1.MetadataStore.toObject(message.metadataStores[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + 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; return object; }; /** - * Converts this ListMetadataStoresResponse to JSON. + * Converts this ListContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse + * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest * @instance * @returns {Object.} JSON object */ - ListMetadataStoresResponse.prototype.toJSON = function toJSON() { + ListContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListMetadataStoresResponse; + return ListContextsRequest; })(); - v1beta1.DeleteMetadataStoreRequest = (function() { + v1beta1.ListContextsResponse = (function() { /** - * Properties of a DeleteMetadataStoreRequest. + * Properties of a ListContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteMetadataStoreRequest - * @property {string|null} [name] DeleteMetadataStoreRequest name - * @property {boolean|null} [force] DeleteMetadataStoreRequest force + * @interface IListContextsResponse + * @property {Array.|null} [contexts] ListContextsResponse contexts + * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken */ /** - * Constructs a new DeleteMetadataStoreRequest. + * Constructs a new ListContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteMetadataStoreRequest. - * @implements IDeleteMetadataStoreRequest + * @classdesc Represents a ListContextsResponse. + * @implements IListContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set */ - function DeleteMetadataStoreRequest(properties) { + function ListContextsResponse(properties) { + this.contexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229498,88 +232024,91 @@ } /** - * DeleteMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * ListContextsResponse contexts. + * @member {Array.} contexts + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance */ - DeleteMetadataStoreRequest.prototype.name = ""; + ListContextsResponse.prototype.contexts = $util.emptyArray; /** - * DeleteMetadataStoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * ListContextsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance */ - DeleteMetadataStoreRequest.prototype.force = false; + ListContextsResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. + * Creates a new ListContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse instance */ - DeleteMetadataStoreRequest.create = function create(properties) { - return new DeleteMetadataStoreRequest(properties); + ListContextsResponse.create = function create(properties) { + return new ListContextsResponse(properties); }; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreRequest.encode = function encode(message, writer) { + ListContextsResponse.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.contexts != null && message.contexts.length) + for (var i = 0; i < message.contexts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.contexts[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 DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest.verify|verify} messages. + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreRequest.decode = function decode(reader, length) { + ListContextsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.contexts && message.contexts.length)) + message.contexts = []; + message.contexts.push($root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32())); break; case 2: - message.force = reader.bool(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -229590,116 +232119,135 @@ }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMetadataStoreRequest message. + * Verifies a ListContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMetadataStoreRequest.verify = function verify(message) { + ListContextsResponse.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.contexts != null && message.hasOwnProperty("contexts")) { + if (!Array.isArray(message.contexts)) + return "contexts: array expected"; + for (var i = 0; i < message.contexts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.contexts[i]); + if (error) + return "contexts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse */ - DeleteMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest) + ListContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(); - 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.ListContextsResponse(); + if (object.contexts) { + if (!Array.isArray(object.contexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: array expected"); + message.contexts = []; + for (var i = 0; i < object.contexts.length; ++i) { + if (typeof object.contexts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: object expected"); + message.contexts[i] = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.contexts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest + * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} message ListContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMetadataStoreRequest.toObject = function toObject(message, options) { + ListContextsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.contexts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.contexts && message.contexts.length) { + object.contexts = []; + for (var j = 0; j < message.contexts.length; ++j) + object.contexts[j] = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.contexts[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteMetadataStoreRequest to JSON. + * Converts this ListContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse * @instance * @returns {Object.} JSON object */ - DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { + ListContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteMetadataStoreRequest; + return ListContextsResponse; })(); - v1beta1.DeleteMetadataStoreOperationMetadata = (function() { + v1beta1.UpdateContextRequest = (function() { /** - * Properties of a DeleteMetadataStoreOperationMetadata. + * Properties of an UpdateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata + * @interface IUpdateContextRequest + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] UpdateContextRequest context + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask + * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing */ /** - * Constructs a new DeleteMetadataStoreOperationMetadata. + * Constructs a new UpdateContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteMetadataStoreOperationMetadata. - * @implements IDeleteMetadataStoreOperationMetadata + * @classdesc Represents an UpdateContextRequest. + * @implements IUpdateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set */ - function DeleteMetadataStoreOperationMetadata(properties) { + function UpdateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229707,75 +232255,101 @@ } /** - * DeleteMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * UpdateContextRequest context. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance */ - DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; + UpdateContextRequest.prototype.context = null; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * UpdateContextRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @instance + */ + UpdateContextRequest.prototype.updateMask = null; + + /** + * UpdateContextRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @instance + */ + UpdateContextRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest instance */ - DeleteMetadataStoreOperationMetadata.create = function create(properties) { - return new DeleteMetadataStoreOperationMetadata(properties); + UpdateContextRequest.create = function create(properties) { + return new UpdateContextRequest(properties); }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { + UpdateContextRequest.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.context != null && Object.hasOwnProperty.call(message, "context")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, 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.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { + UpdateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); 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.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 3: + message.allowMissing = reader.bool(); break; default: reader.skipType(tag & 7); @@ -229786,114 +232360,136 @@ }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies an UpdateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMetadataStoreOperationMetadata.verify = function verify(message) { + UpdateContextRequest.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.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); if (error) - return "genericMetadata." + error; + return "context." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest */ - DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata) + UpdateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.UpdateContextRequest} message UpdateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { + UpdateContextRequest.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.context = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this UpdateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest * @instance * @returns {Object.} JSON object */ - DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + UpdateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteMetadataStoreOperationMetadata; + return UpdateContextRequest; })(); - v1beta1.CreateArtifactRequest = (function() { + v1beta1.DeleteContextRequest = (function() { /** - * Properties of a CreateArtifactRequest. + * Properties of a DeleteContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateArtifactRequest - * @property {string|null} [parent] CreateArtifactRequest parent - * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] CreateArtifactRequest artifact - * @property {string|null} [artifactId] CreateArtifactRequest artifactId + * @interface IDeleteContextRequest + * @property {string|null} [name] DeleteContextRequest name + * @property {boolean|null} [force] DeleteContextRequest force + * @property {string|null} [etag] DeleteContextRequest etag */ /** - * Constructs a new CreateArtifactRequest. + * Constructs a new DeleteContextRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateArtifactRequest. - * @implements ICreateArtifactRequest + * @classdesc Represents a DeleteContextRequest. + * @implements IDeleteContextRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set */ - function CreateArtifactRequest(properties) { + function DeleteContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -229901,101 +232497,101 @@ } /** - * CreateArtifactRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * DeleteContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance */ - CreateArtifactRequest.prototype.parent = ""; + DeleteContextRequest.prototype.name = ""; /** - * CreateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * DeleteContextRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance */ - CreateArtifactRequest.prototype.artifact = null; + DeleteContextRequest.prototype.force = false; /** - * CreateArtifactRequest artifactId. - * @member {string} artifactId - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * DeleteContextRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance */ - CreateArtifactRequest.prototype.artifactId = ""; + DeleteContextRequest.prototype.etag = ""; /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new DeleteContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest instance */ - CreateArtifactRequest.create = function create(properties) { - return new CreateArtifactRequest(properties); + DeleteContextRequest.create = function create(properties) { + return new DeleteContextRequest(properties); }; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateArtifactRequest.encode = function encode(message, writer) { + DeleteContextRequest.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.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); + 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.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateArtifactRequest.verify|verify} messages. + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateArtifactRequest.decode = function decode(reader, length) { + DeleteContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); 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.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); + message.force = reader.bool(); break; case 3: - message.artifactId = reader.string(); + message.etag = reader.string(); break; default: reader.skipType(tag & 7); @@ -230006,129 +232602,126 @@ }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateArtifactRequest message. + * Verifies a DeleteContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateArtifactRequest.verify = function verify(message) { + DeleteContextRequest.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.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: 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"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} CreateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest */ - CreateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest) + DeleteContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); - } - if (object.artifactId != null) - message.artifactId = String(object.artifactId); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateArtifactRequest} message CreateArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteContextRequest} message DeleteContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateArtifactRequest.toObject = function toObject(message, options) { + DeleteContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.artifact = null; - object.artifactId = ""; + object.name = ""; + object.force = false; + object.etag = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - object.artifactId = message.artifactId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this DeleteContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest * @instance * @returns {Object.} JSON object */ - CreateArtifactRequest.prototype.toJSON = function toJSON() { + DeleteContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateArtifactRequest; + return DeleteContextRequest; })(); - v1beta1.GetArtifactRequest = (function() { + v1beta1.PurgeContextsRequest = (function() { /** - * Properties of a GetArtifactRequest. + * Properties of a PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetArtifactRequest - * @property {string|null} [name] GetArtifactRequest name + * @interface IPurgeContextsRequest + * @property {string|null} [parent] PurgeContextsRequest parent + * @property {string|null} [filter] PurgeContextsRequest filter + * @property {boolean|null} [force] PurgeContextsRequest force */ /** - * Constructs a new GetArtifactRequest. + * Constructs a new PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetArtifactRequest. - * @implements IGetArtifactRequest + * @classdesc Represents a PurgeContextsRequest. + * @implements IPurgeContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set */ - function GetArtifactRequest(properties) { + function PurgeContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230136,75 +232729,101 @@ } /** - * GetArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * PurgeContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @instance */ - GetArtifactRequest.prototype.name = ""; + PurgeContextsRequest.prototype.parent = ""; /** - * Creates a new GetArtifactRequest instance using the specified properties. + * PurgeContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.filter = ""; + + /** + * PurgeContextsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.force = false; + + /** + * Creates a new PurgeContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest instance */ - GetArtifactRequest.create = function create(properties) { - return new GetArtifactRequest(properties); + PurgeContextsRequest.create = function create(properties) { + return new PurgeContextsRequest(properties); }; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetArtifactRequest.encode = function encode(message, writer) { + PurgeContextsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetArtifactRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetArtifactRequest.decode = function decode(reader, length) { + PurgeContextsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); 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.filter = reader.string(); + break; + case 3: + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -230215,110 +232834,126 @@ }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetArtifactRequest message. + * Verifies a PurgeContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetArtifactRequest.verify = function verify(message) { + PurgeContextsRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetArtifactRequest} GetArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest */ - GetArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest) + PurgeContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetArtifactRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetArtifactRequest} message GetArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} message PurgeContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetArtifactRequest.toObject = function toObject(message, options) { + PurgeContextsRequest.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.filter = ""; + object.force = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest * @instance * @returns {Object.} JSON object */ - GetArtifactRequest.prototype.toJSON = function toJSON() { + PurgeContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetArtifactRequest; + return PurgeContextsRequest; })(); - v1beta1.ListArtifactsRequest = (function() { + v1beta1.PurgeContextsResponse = (function() { /** - * Properties of a ListArtifactsRequest. + * Properties of a PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListArtifactsRequest - * @property {string|null} [parent] ListArtifactsRequest parent - * @property {number|null} [pageSize] ListArtifactsRequest pageSize - * @property {string|null} [pageToken] ListArtifactsRequest pageToken - * @property {string|null} [filter] ListArtifactsRequest filter + * @interface IPurgeContextsResponse + * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample */ /** - * Constructs a new ListArtifactsRequest. + * Constructs a new PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListArtifactsRequest. - * @implements IListArtifactsRequest + * @classdesc Represents a PurgeContextsResponse. + * @implements IPurgeContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set */ - function ListArtifactsRequest(properties) { + function PurgeContextsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230326,114 +232961,91 @@ } /** - * ListArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.parent = ""; - - /** - * ListArtifactsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.pageSize = 0; - - /** - * ListArtifactsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * PurgeContextsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance */ - ListArtifactsRequest.prototype.pageToken = ""; + PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ListArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * PurgeContextsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance */ - ListArtifactsRequest.prototype.filter = ""; + PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse instance */ - ListArtifactsRequest.create = function create(properties) { - return new ListArtifactsRequest(properties); + PurgeContextsResponse.create = function create(properties) { + return new PurgeContextsResponse(properties); }; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encode = function encode(message, writer) { + PurgeContextsResponse.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.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.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decode = function decode(reader, length) { + PurgeContextsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.purgeCount = reader.int64(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -230444,134 +233056,142 @@ }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a ListArtifactsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListArtifactsRequest.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.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"; + /** + * Verifies a PurgeContextsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PurgeContextsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; + } return null; }; /** - * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse */ - ListArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest) + PurgeContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - 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); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); + } return message; }; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsRequest} message ListArtifactsRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} message PurgeContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsRequest.toObject = function toObject(message, options) { + PurgeContextsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - 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; return object; }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse * @instance * @returns {Object.} JSON object */ - ListArtifactsRequest.prototype.toJSON = function toJSON() { + PurgeContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListArtifactsRequest; + return PurgeContextsResponse; })(); - v1beta1.ListArtifactsResponse = (function() { + v1beta1.PurgeContextsMetadata = (function() { /** - * Properties of a ListArtifactsResponse. + * Properties of a PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListArtifactsResponse - * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts - * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken + * @interface IPurgeContextsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata */ /** - * Constructs a new ListArtifactsResponse. + * Constructs a new PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListArtifactsResponse. - * @implements IListArtifactsResponse + * @classdesc Represents a PurgeContextsMetadata. + * @implements IPurgeContextsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set */ - function ListArtifactsResponse(properties) { - this.artifacts = []; + function PurgeContextsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230579,91 +233199,75 @@ } /** - * ListArtifactsResponse artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse - * @instance - */ - ListArtifactsResponse.prototype.artifacts = $util.emptyArray; - - /** - * ListArtifactsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * PurgeContextsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @instance */ - ListArtifactsResponse.prototype.nextPageToken = ""; + PurgeContextsMetadata.prototype.genericMetadata = null; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata instance */ - ListArtifactsResponse.create = function create(properties) { - return new ListArtifactsResponse(properties); + PurgeContextsMetadata.create = function create(properties) { + return new PurgeContextsMetadata(properties); }; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encode = function encode(message, writer) { + PurgeContextsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[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.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 ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decode = function decode(reader, length) { + PurgeContextsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -230674,135 +233278,116 @@ }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsResponse message. + * Verifies a PurgeContextsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsResponse.verify = function verify(message) { + PurgeContextsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata */ - ListArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse) + PurgeContextsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListArtifactsResponse.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListArtifactsResponse} message ListArtifactsResponse + * @param {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} message PurgeContextsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsResponse.toObject = function toObject(message, options) { + PurgeContextsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; if (options.defaults) - object.nextPageToken = ""; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListArtifactsResponse to JSON. + * Converts this PurgeContextsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata * @instance * @returns {Object.} JSON object */ - ListArtifactsResponse.prototype.toJSON = function toJSON() { + PurgeContextsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListArtifactsResponse; + return PurgeContextsMetadata; })(); - v1beta1.UpdateArtifactRequest = (function() { + v1beta1.AddContextArtifactsAndExecutionsRequest = (function() { /** - * Properties of an UpdateArtifactRequest. + * Properties of an AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateArtifactRequest - * @property {google.cloud.aiplatform.v1beta1.IArtifact|null} [artifact] UpdateArtifactRequest artifact - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask - * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing + * @interface IAddContextArtifactsAndExecutionsRequest + * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context + * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts + * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions */ /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateArtifactRequest. - * @implements IUpdateArtifactRequest + * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. + * @implements IAddContextArtifactsAndExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set */ - function UpdateArtifactRequest(properties) { + function AddContextArtifactsAndExecutionsRequest(properties) { + this.artifacts = []; + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -230810,101 +233395,107 @@ } /** - * UpdateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1beta1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * AddContextArtifactsAndExecutionsRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance */ - UpdateArtifactRequest.prototype.artifact = null; + AddContextArtifactsAndExecutionsRequest.prototype.context = ""; /** - * UpdateArtifactRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * AddContextArtifactsAndExecutionsRequest artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance */ - UpdateArtifactRequest.prototype.updateMask = null; + AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; /** - * UpdateArtifactRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * AddContextArtifactsAndExecutionsRequest executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance */ - UpdateArtifactRequest.prototype.allowMissing = false; + AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance */ - UpdateArtifactRequest.create = function create(properties) { - return new UpdateArtifactRequest(properties); + AddContextArtifactsAndExecutionsRequest.create = function create(properties) { + return new AddContextArtifactsAndExecutionsRequest(properties); }; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifact, 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.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); return writer; }; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32()); + message.context = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push(reader.string()); break; case 3: - message.allowMissing = reader.bool(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -230915,135 +233506,148 @@ }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateArtifactRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateArtifactRequest.verify = function verify(message) { + AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) + if (!$util.isString(message.artifacts[i])) + return "artifacts: string[] expected"; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) + if (!$util.isString(message.executions[i])) + return "executions: string[] expected"; } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest */ - UpdateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest) + AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifact); + var message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) + message.artifacts[i] = String(object.artifacts[i]); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateArtifactRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) + message.executions[i] = String(object.executions[i]); } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateArtifactRequest.toObject = function toObject(message, options) { + AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = null; - object.updateMask = null; - object.allowMissing = false; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + } + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = message.artifacts[j]; + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = message.executions[j]; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifact, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; return object; }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest * @instance * @returns {Object.} JSON object */ - UpdateArtifactRequest.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateArtifactRequest; + return AddContextArtifactsAndExecutionsRequest; })(); - v1beta1.DeleteArtifactRequest = (function() { + v1beta1.AddContextArtifactsAndExecutionsResponse = (function() { /** - * Properties of a DeleteArtifactRequest. + * Properties of an AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteArtifactRequest - * @property {string|null} [name] DeleteArtifactRequest name - * @property {string|null} [etag] DeleteArtifactRequest etag + * @interface IAddContextArtifactsAndExecutionsResponse */ /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteArtifactRequest. - * @implements IDeleteArtifactRequest + * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. + * @implements IAddContextArtifactsAndExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set */ - function DeleteArtifactRequest(properties) { + function AddContextArtifactsAndExecutionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231051,89 +233655,63 @@ } /** - * DeleteArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest - * @instance - */ - DeleteArtifactRequest.prototype.name = ""; - - /** - * DeleteArtifactRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest - * @instance - */ - DeleteArtifactRequest.prototype.etag = ""; - - /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance */ - DeleteArtifactRequest.create = function create(properties) { - return new DeleteArtifactRequest(properties); + AddContextArtifactsAndExecutionsResponse.create = function create(properties) { + return new AddContextArtifactsAndExecutionsResponse(properties); }; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsResponse.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.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.etag = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -231143,118 +233721,96 @@ }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteArtifactRequest message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteArtifactRequest.verify = function verify(message) { + AddContextArtifactsAndExecutionsResponse.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.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse */ - DeleteArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); - return message; + return new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); }; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} message DeleteArtifactRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteArtifactRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; + AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse * @instance * @returns {Object.} JSON object */ - DeleteArtifactRequest.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteArtifactRequest; + return AddContextArtifactsAndExecutionsResponse; })(); - v1beta1.PurgeArtifactsRequest = (function() { + v1beta1.AddContextChildrenRequest = (function() { /** - * Properties of a PurgeArtifactsRequest. + * Properties of an AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsRequest - * @property {string|null} [parent] PurgeArtifactsRequest parent - * @property {string|null} [filter] PurgeArtifactsRequest filter - * @property {boolean|null} [force] PurgeArtifactsRequest force + * @interface IAddContextChildrenRequest + * @property {string|null} [context] AddContextChildrenRequest context + * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts */ /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsRequest. - * @implements IPurgeArtifactsRequest + * @classdesc Represents an AddContextChildrenRequest. + * @implements IAddContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set */ - function PurgeArtifactsRequest(properties) { + function AddContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231262,101 +233818,91 @@ } /** - * PurgeArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest - * @instance - */ - PurgeArtifactsRequest.prototype.parent = ""; - - /** - * PurgeArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * AddContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance */ - PurgeArtifactsRequest.prototype.filter = ""; + AddContextChildrenRequest.prototype.context = ""; /** - * PurgeArtifactsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * AddContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance */ - PurgeArtifactsRequest.prototype.force = false; + AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest instance */ - PurgeArtifactsRequest.create = function create(properties) { - return new PurgeArtifactsRequest(properties); + AddContextChildrenRequest.create = function create(properties) { + return new AddContextChildrenRequest(properties); }; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encode = function encode(message, writer) { + AddContextChildrenRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decode = function decode(reader, length) { + AddContextChildrenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.context = reader.string(); break; case 2: - message.filter = reader.string(); - break; - case 3: - message.force = reader.bool(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -231367,126 +233913,127 @@ }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies an AddContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsRequest.verify = function verify(message) { + AddContextChildrenRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } return null; }; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest */ - PurgeArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + AddContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } return message; }; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} message PurgeArtifactsRequest + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} message AddContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsRequest.toObject = function toObject(message, options) { + AddContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[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.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsRequest.prototype.toJSON = function toJSON() { + AddContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeArtifactsRequest; + return AddContextChildrenRequest; })(); - v1beta1.PurgeArtifactsResponse = (function() { + v1beta1.AddContextChildrenResponse = (function() { /** - * Properties of a PurgeArtifactsResponse. + * Properties of an AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsResponse - * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample + * @interface IAddContextChildrenResponse */ /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsResponse. - * @implements IPurgeArtifactsResponse + * @classdesc Represents an AddContextChildrenResponse. + * @implements IAddContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set */ - function PurgeArtifactsResponse(properties) { - this.purgeSample = []; + function AddContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231494,92 +234041,63 @@ } /** - * PurgeArtifactsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse - * @instance - */ - PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PurgeArtifactsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse - * @instance - */ - PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; - - /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse instance */ - PurgeArtifactsResponse.create = function create(properties) { - return new PurgeArtifactsResponse(properties); + AddContextChildrenResponse.create = function create(properties) { + return new AddContextChildrenResponse(properties); }; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encode = function encode(message, writer) { + AddContextChildrenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decode = function decode(reader, length) { + AddContextChildrenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.purgeCount = reader.int64(); - break; - case 2: - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -231589,142 +234107,94 @@ }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies an AddContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsResponse.verify = function verify(message) { + AddContextChildrenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } return null; }; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse */ - PurgeArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + AddContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); }; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} message PurgeArtifactsResponse + * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} message AddContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } - return object; + AddContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this AddContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse * @instance * @returns {Object.} JSON object */ - PurgeArtifactsResponse.prototype.toJSON = function toJSON() { + AddContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeArtifactsResponse; + return AddContextChildrenResponse; })(); - v1beta1.PurgeArtifactsMetadata = (function() { + v1beta1.QueryContextLineageSubgraphRequest = (function() { /** - * Properties of a PurgeArtifactsMetadata. + * Properties of a QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeArtifactsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata + * @interface IQueryContextLineageSubgraphRequest + * @property {string|null} [context] QueryContextLineageSubgraphRequest context */ /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeArtifactsMetadata. - * @implements IPurgeArtifactsMetadata + * @classdesc Represents a QueryContextLineageSubgraphRequest. + * @implements IQueryContextLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set */ - function PurgeArtifactsMetadata(properties) { + function QueryContextLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231732,75 +234202,75 @@ } /** - * PurgeArtifactsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * QueryContextLineageSubgraphRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @instance */ - PurgeArtifactsMetadata.prototype.genericMetadata = null; + QueryContextLineageSubgraphRequest.prototype.context = ""; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance */ - PurgeArtifactsMetadata.create = function create(properties) { - return new PurgeArtifactsMetadata(properties); + QueryContextLineageSubgraphRequest.create = function create(properties) { + return new QueryContextLineageSubgraphRequest(properties); }; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encode = function encode(message, writer) { + QueryContextLineageSubgraphRequest.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.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); return writer; }; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decode = function decode(reader, length) { + QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); 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.context = reader.string(); break; default: reader.skipType(tag & 7); @@ -231811,114 +234281,109 @@ }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a QueryContextLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsMetadata.verify = function verify(message) { + QueryContextLineageSubgraphRequest.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.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; return null; }; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest */ - PurgeArtifactsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); + if (object.context != null) + message.context = String(object.context); return message; }; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata + * @param {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsMetadata.toObject = function toObject(message, options) { + QueryContextLineageSubgraphRequest.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.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; return object; }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { + QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeArtifactsMetadata; + return QueryContextLineageSubgraphRequest; })(); - v1beta1.CreateContextRequest = (function() { + v1beta1.CreateExecutionRequest = (function() { /** - * Properties of a CreateContextRequest. + * Properties of a CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateContextRequest - * @property {string|null} [parent] CreateContextRequest parent - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] CreateContextRequest context - * @property {string|null} [contextId] CreateContextRequest contextId + * @interface ICreateExecutionRequest + * @property {string|null} [parent] CreateExecutionRequest parent + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] CreateExecutionRequest execution + * @property {string|null} [executionId] CreateExecutionRequest executionId */ /** - * Constructs a new CreateContextRequest. + * Constructs a new CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateContextRequest. - * @implements ICreateContextRequest + * @classdesc Represents a CreateExecutionRequest. + * @implements ICreateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set */ - function CreateContextRequest(properties) { + function CreateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -231926,90 +234391,90 @@ } /** - * CreateContextRequest parent. + * CreateExecutionRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance */ - CreateContextRequest.prototype.parent = ""; + CreateExecutionRequest.prototype.parent = ""; /** - * CreateContextRequest context. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * CreateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance */ - CreateContextRequest.prototype.context = null; + CreateExecutionRequest.prototype.execution = null; /** - * CreateContextRequest contextId. - * @member {string} contextId - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * CreateExecutionRequest executionId. + * @member {string} executionId + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance */ - CreateContextRequest.prototype.contextId = ""; + CreateExecutionRequest.prototype.executionId = ""; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new CreateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest instance */ - CreateContextRequest.create = function create(properties) { - return new CreateContextRequest(properties); + CreateExecutionRequest.create = function create(properties) { + return new CreateExecutionRequest(properties); }; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encode = function encode(message, writer) { + CreateExecutionRequest.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.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); return writer; }; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decode = function decode(reader, length) { + CreateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -232017,10 +234482,10 @@ message.parent = reader.string(); break; case 2: - message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); break; case 3: - message.contextId = reader.string(); + message.executionId = reader.string(); break; default: reader.skipType(tag & 7); @@ -232031,129 +234496,129 @@ }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateContextRequest message. + * Verifies a CreateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateContextRequest.verify = function verify(message) { + CreateExecutionRequest.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.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); if (error) - return "context." + error; + return "execution." + error; } - if (message.contextId != null && message.hasOwnProperty("contextId")) - if (!$util.isString(message.contextId)) - return "contextId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; return null; }; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest */ - CreateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateContextRequest) + CreateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateContextRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); } - if (object.contextId != null) - message.contextId = String(object.contextId); + if (object.executionId != null) + message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateContextRequest} message CreateContextRequest + * @param {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} message CreateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateContextRequest.toObject = function toObject(message, options) { + CreateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.context = null; - object.contextId = ""; + object.execution = null; + object.executionId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); - if (message.contextId != null && message.hasOwnProperty("contextId")) - object.contextId = message.contextId; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; return object; }; /** - * Converts this CreateContextRequest to JSON. + * Converts this CreateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest * @instance * @returns {Object.} JSON object */ - CreateContextRequest.prototype.toJSON = function toJSON() { + CreateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateContextRequest; + return CreateExecutionRequest; })(); - v1beta1.GetContextRequest = (function() { + v1beta1.GetExecutionRequest = (function() { /** - * Properties of a GetContextRequest. + * Properties of a GetExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetContextRequest - * @property {string|null} [name] GetContextRequest name + * @interface IGetExecutionRequest + * @property {string|null} [name] GetExecutionRequest name */ /** - * Constructs a new GetContextRequest. + * Constructs a new GetExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetContextRequest. - * @implements IGetContextRequest + * @classdesc Represents a GetExecutionRequest. + * @implements IGetExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set */ - function GetContextRequest(properties) { + function GetExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232161,35 +234626,35 @@ } /** - * GetContextRequest name. + * GetExecutionRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @instance */ - GetContextRequest.prototype.name = ""; + GetExecutionRequest.prototype.name = ""; /** - * Creates a new GetContextRequest instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest instance */ - GetContextRequest.create = function create(properties) { - return new GetContextRequest(properties); + GetExecutionRequest.create = function create(properties) { + return new GetExecutionRequest(properties); }; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encode = function encode(message, writer) { + GetExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -232198,33 +234663,33 @@ }; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decode = function decode(reader, length) { + GetExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -232240,30 +234705,30 @@ }; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetContextRequest message. + * Verifies a GetExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetContextRequest.verify = function verify(message) { + GetExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -232273,32 +234738,32 @@ }; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest */ - GetContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetContextRequest) + GetExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetContextRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetContextRequest} message GetContextRequest + * @param {google.cloud.aiplatform.v1beta1.GetExecutionRequest} message GetExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetContextRequest.toObject = function toObject(message, options) { + GetExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -232310,40 +234775,40 @@ }; /** - * Converts this GetContextRequest to JSON. + * Converts this GetExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetContextRequest + * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest * @instance * @returns {Object.} JSON object */ - GetContextRequest.prototype.toJSON = function toJSON() { + GetExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetContextRequest; + return GetExecutionRequest; })(); - v1beta1.ListContextsRequest = (function() { + v1beta1.ListExecutionsRequest = (function() { /** - * Properties of a ListContextsRequest. + * Properties of a ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListContextsRequest - * @property {string|null} [parent] ListContextsRequest parent - * @property {number|null} [pageSize] ListContextsRequest pageSize - * @property {string|null} [pageToken] ListContextsRequest pageToken - * @property {string|null} [filter] ListContextsRequest filter + * @interface IListExecutionsRequest + * @property {string|null} [parent] ListExecutionsRequest parent + * @property {number|null} [pageSize] ListExecutionsRequest pageSize + * @property {string|null} [pageToken] ListExecutionsRequest pageToken + * @property {string|null} [filter] ListExecutionsRequest filter */ /** - * Constructs a new ListContextsRequest. + * Constructs a new ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListContextsRequest. - * @implements IListContextsRequest + * @classdesc Represents a ListExecutionsRequest. + * @implements IListExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set */ - function ListContextsRequest(properties) { + function ListExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232351,59 +234816,59 @@ } /** - * ListContextsRequest parent. + * ListExecutionsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - ListContextsRequest.prototype.parent = ""; + ListExecutionsRequest.prototype.parent = ""; /** - * ListContextsRequest pageSize. + * ListExecutionsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - ListContextsRequest.prototype.pageSize = 0; + ListExecutionsRequest.prototype.pageSize = 0; /** - * ListContextsRequest pageToken. + * ListExecutionsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - ListContextsRequest.prototype.pageToken = ""; + ListExecutionsRequest.prototype.pageToken = ""; /** - * ListContextsRequest filter. + * ListExecutionsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance */ - ListContextsRequest.prototype.filter = ""; + ListExecutionsRequest.prototype.filter = ""; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new ListExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest instance */ - ListContextsRequest.create = function create(properties) { - return new ListContextsRequest(properties); + ListExecutionsRequest.create = function create(properties) { + return new ListExecutionsRequest(properties); }; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encode = function encode(message, writer) { + ListExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -232418,33 +234883,33 @@ }; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decode = function decode(reader, length) { + ListExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -232469,30 +234934,30 @@ }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsRequest message. + * Verifies a ListExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsRequest.verify = function verify(message) { + ListExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -232511,17 +234976,17 @@ }; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest */ - ListContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsRequest) + ListExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -232534,15 +234999,15 @@ }; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListContextsRequest} message ListContextsRequest + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} message ListExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsRequest.toObject = function toObject(message, options) { + ListExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -232564,39 +235029,39 @@ }; /** - * Converts this ListContextsRequest to JSON. + * Converts this ListExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListContextsRequest.prototype.toJSON = function toJSON() { + ListExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContextsRequest; + return ListExecutionsRequest; })(); - v1beta1.ListContextsResponse = (function() { + v1beta1.ListExecutionsResponse = (function() { /** - * Properties of a ListContextsResponse. + * Properties of a ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListContextsResponse - * @property {Array.|null} [contexts] ListContextsResponse contexts - * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken + * @interface IListExecutionsResponse + * @property {Array.|null} [executions] ListExecutionsResponse executions + * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken */ /** - * Constructs a new ListContextsResponse. + * Constructs a new ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListContextsResponse. - * @implements IListContextsResponse + * @classdesc Represents a ListExecutionsResponse. + * @implements IListExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set */ - function ListContextsResponse(properties) { - this.contexts = []; + function ListExecutionsResponse(properties) { + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232604,88 +235069,88 @@ } /** - * ListContextsResponse contexts. - * @member {Array.} contexts - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * ListExecutionsResponse executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @instance */ - ListContextsResponse.prototype.contexts = $util.emptyArray; + ListExecutionsResponse.prototype.executions = $util.emptyArray; /** - * ListContextsResponse nextPageToken. + * ListExecutionsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @instance */ - ListContextsResponse.prototype.nextPageToken = ""; + ListExecutionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse instance */ - ListContextsResponse.create = function create(properties) { - return new ListContextsResponse(properties); + ListExecutionsResponse.create = function create(properties) { + return new ListExecutionsResponse(properties); }; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encode = function encode(message, writer) { + ListExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contexts != null && message.contexts.length) - for (var i = 0; i < message.contexts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[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 ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decode = function decode(reader, length) { + ListExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.contexts && message.contexts.length)) - message.contexts = []; - message.contexts.push($root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32())); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -232699,39 +235164,39 @@ }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsResponse message. + * Verifies a ListExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsResponse.verify = function verify(message) { + ListExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contexts != null && message.hasOwnProperty("contexts")) { - if (!Array.isArray(message.contexts)) - return "contexts: array expected"; - for (var i = 0; i < message.contexts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.contexts[i]); + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); if (error) - return "contexts." + error; + return "executions." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -232741,25 +235206,25 @@ }; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse */ - ListContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListContextsResponse) + ListExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListContextsResponse(); - if (object.contexts) { - if (!Array.isArray(object.contexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: array expected"); - message.contexts = []; - for (var i = 0; i < object.contexts.length; ++i) { - if (typeof object.contexts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListContextsResponse.contexts: object expected"); - message.contexts[i] = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.contexts[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); } } if (object.nextPageToken != null) @@ -232768,26 +235233,26 @@ }; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListContextsResponse} message ListContextsResponse + * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} message ListExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsResponse.toObject = function toObject(message, options) { + ListExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contexts = []; + object.executions = []; if (options.defaults) object.nextPageToken = ""; - if (message.contexts && message.contexts.length) { - object.contexts = []; - for (var j = 0; j < message.contexts.length; ++j) - object.contexts[j] = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.contexts[j], options); + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -232795,39 +235260,39 @@ }; /** - * Converts this ListContextsResponse to JSON. + * Converts this ListExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse * @instance * @returns {Object.} JSON object */ - ListContextsResponse.prototype.toJSON = function toJSON() { + ListExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContextsResponse; + return ListExecutionsResponse; })(); - v1beta1.UpdateContextRequest = (function() { + v1beta1.UpdateExecutionRequest = (function() { /** - * Properties of an UpdateContextRequest. + * Properties of an UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateContextRequest - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [context] UpdateContextRequest context - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask - * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing + * @interface IUpdateExecutionRequest + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] UpdateExecutionRequest execution + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask + * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing */ /** - * Constructs a new UpdateContextRequest. + * Constructs a new UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateContextRequest. - * @implements IUpdateContextRequest + * @classdesc Represents an UpdateExecutionRequest. + * @implements IUpdateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set */ - function UpdateContextRequest(properties) { + function UpdateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -232835,55 +235300,55 @@ } /** - * UpdateContextRequest context. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * UpdateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - UpdateContextRequest.prototype.context = null; + UpdateExecutionRequest.prototype.execution = null; /** - * UpdateContextRequest updateMask. + * UpdateExecutionRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - UpdateContextRequest.prototype.updateMask = null; + UpdateExecutionRequest.prototype.updateMask = null; /** - * UpdateContextRequest allowMissing. + * UpdateExecutionRequest allowMissing. * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance */ - UpdateContextRequest.prototype.allowMissing = false; + UpdateExecutionRequest.prototype.allowMissing = false; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest instance */ - UpdateContextRequest.create = function create(properties) { - return new UpdateContextRequest(properties); + UpdateExecutionRequest.create = function create(properties) { + return new UpdateExecutionRequest(properties); }; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encode = function encode(message, writer) { + UpdateExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, 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.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) @@ -232892,38 +235357,38 @@ }; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decode = function decode(reader, length) { + UpdateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.context = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -232940,36 +235405,36 @@ }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateContextRequest message. + * Verifies an UpdateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateContextRequest.verify = function verify(message) { + UpdateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.context); + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); if (error) - return "context." + error; + return "execution." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -232983,25 +235448,25 @@ }; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest */ - UpdateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest) + UpdateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateContextRequest(); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.context); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateContextRequest.updateMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.allowMissing != null) @@ -233010,25 +235475,25 @@ }; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateContextRequest} message UpdateContextRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} message UpdateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateContextRequest.toObject = function toObject(message, options) { + UpdateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.context = null; + object.execution = null; object.updateMask = null; object.allowMissing = false; } - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.context, options); + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) @@ -233037,39 +235502,38 @@ }; /** - * Converts this UpdateContextRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest * @instance * @returns {Object.} JSON object */ - UpdateContextRequest.prototype.toJSON = function toJSON() { + UpdateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateContextRequest; + return UpdateExecutionRequest; })(); - v1beta1.DeleteContextRequest = (function() { + v1beta1.DeleteExecutionRequest = (function() { /** - * Properties of a DeleteContextRequest. + * Properties of a DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteContextRequest - * @property {string|null} [name] DeleteContextRequest name - * @property {boolean|null} [force] DeleteContextRequest force - * @property {string|null} [etag] DeleteContextRequest etag + * @interface IDeleteExecutionRequest + * @property {string|null} [name] DeleteExecutionRequest name + * @property {string|null} [etag] DeleteExecutionRequest etag */ /** - * Constructs a new DeleteContextRequest. + * Constructs a new DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteContextRequest. - * @implements IDeleteContextRequest + * @classdesc Represents a DeleteExecutionRequest. + * @implements IDeleteExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set */ - function DeleteContextRequest(properties) { + function DeleteExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -233077,90 +235541,80 @@ } /** - * DeleteContextRequest name. + * DeleteExecutionRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest - * @instance - */ - DeleteContextRequest.prototype.name = ""; - - /** - * DeleteContextRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @instance */ - DeleteContextRequest.prototype.force = false; + DeleteExecutionRequest.prototype.name = ""; /** - * DeleteContextRequest etag. + * DeleteExecutionRequest etag. * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @instance */ - DeleteContextRequest.prototype.etag = ""; + DeleteExecutionRequest.prototype.etag = ""; /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new DeleteExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest instance */ - DeleteContextRequest.create = function create(properties) { - return new DeleteContextRequest(properties); + DeleteExecutionRequest.create = function create(properties) { + return new DeleteExecutionRequest(properties); }; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encode = function encode(message, writer) { + DeleteExecutionRequest.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.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decode = function decode(reader, length) { + DeleteExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -233168,9 +235622,6 @@ message.name = reader.string(); break; case 2: - message.force = reader.bool(); - break; - case 3: message.etag = reader.string(); break; default: @@ -233182,38 +235633,35 @@ }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteContextRequest message. + * Verifies a DeleteExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteContextRequest.verify = function verify(message) { + DeleteExecutionRequest.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.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; @@ -233221,87 +235669,82 @@ }; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest */ - DeleteContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest) + DeleteExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteContextRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); if (object.etag != null) message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteContextRequest} message DeleteContextRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} message DeleteExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteContextRequest.toObject = function toObject(message, options) { + DeleteExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.force = false; object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; return object; }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this DeleteExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest * @instance * @returns {Object.} JSON object */ - DeleteContextRequest.prototype.toJSON = function toJSON() { + DeleteExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteContextRequest; + return DeleteExecutionRequest; })(); - v1beta1.PurgeContextsRequest = (function() { + v1beta1.PurgeExecutionsRequest = (function() { /** - * Properties of a PurgeContextsRequest. + * Properties of a PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsRequest - * @property {string|null} [parent] PurgeContextsRequest parent - * @property {string|null} [filter] PurgeContextsRequest filter - * @property {boolean|null} [force] PurgeContextsRequest force + * @interface IPurgeExecutionsRequest + * @property {string|null} [parent] PurgeExecutionsRequest parent + * @property {string|null} [filter] PurgeExecutionsRequest filter + * @property {boolean|null} [force] PurgeExecutionsRequest force */ /** - * Constructs a new PurgeContextsRequest. + * Constructs a new PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsRequest. - * @implements IPurgeContextsRequest + * @classdesc Represents a PurgeExecutionsRequest. + * @implements IPurgeExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set */ - function PurgeContextsRequest(properties) { + function PurgeExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -233309,51 +235752,51 @@ } /** - * PurgeContextsRequest parent. + * PurgeExecutionsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - PurgeContextsRequest.prototype.parent = ""; + PurgeExecutionsRequest.prototype.parent = ""; /** - * PurgeContextsRequest filter. + * PurgeExecutionsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - PurgeContextsRequest.prototype.filter = ""; + PurgeExecutionsRequest.prototype.filter = ""; /** - * PurgeContextsRequest force. + * PurgeExecutionsRequest force. * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance */ - PurgeContextsRequest.prototype.force = false; + PurgeExecutionsRequest.prototype.force = false; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest instance */ - PurgeContextsRequest.create = function create(properties) { - return new PurgeContextsRequest(properties); + PurgeExecutionsRequest.create = function create(properties) { + return new PurgeExecutionsRequest(properties); }; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encode = function encode(message, writer) { + PurgeExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -233366,33 +235809,33 @@ }; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decode = function decode(reader, length) { + PurgeExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -233414,30 +235857,30 @@ }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsRequest message. + * Verifies a PurgeExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsRequest.verify = function verify(message) { + PurgeExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -233453,17 +235896,17 @@ }; /** - * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest */ - PurgeContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + PurgeExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -233474,15 +235917,15 @@ }; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsRequest} message PurgeContextsRequest + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} message PurgeExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsRequest.toObject = function toObject(message, options) { + PurgeExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -233501,38 +235944,38 @@ }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest * @instance * @returns {Object.} JSON object */ - PurgeContextsRequest.prototype.toJSON = function toJSON() { + PurgeExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeContextsRequest; + return PurgeExecutionsRequest; })(); - v1beta1.PurgeContextsResponse = (function() { + v1beta1.PurgeExecutionsResponse = (function() { /** - * Properties of a PurgeContextsResponse. + * Properties of a PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsResponse - * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample + * @interface IPurgeExecutionsResponse + * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample */ /** - * Constructs a new PurgeContextsResponse. + * Constructs a new PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsResponse. - * @implements IPurgeContextsResponse + * @classdesc Represents a PurgeExecutionsResponse. + * @implements IPurgeExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set */ - function PurgeContextsResponse(properties) { + function PurgeExecutionsResponse(properties) { this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -233541,43 +235984,43 @@ } /** - * PurgeContextsResponse purgeCount. + * PurgeExecutionsResponse purgeCount. * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance */ - PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PurgeContextsResponse purgeSample. + * PurgeExecutionsResponse purgeSample. * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance */ - PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; + PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse instance */ - PurgeContextsResponse.create = function create(properties) { - return new PurgeContextsResponse(properties); + PurgeExecutionsResponse.create = function create(properties) { + return new PurgeExecutionsResponse(properties); }; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encode = function encode(message, writer) { + PurgeExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) @@ -233589,33 +236032,33 @@ }; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decode = function decode(reader, length) { + PurgeExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -233636,30 +236079,30 @@ }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsResponse message. + * Verifies a PurgeExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsResponse.verify = function verify(message) { + PurgeExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) @@ -233676,17 +236119,17 @@ }; /** - * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse */ - PurgeContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + PurgeExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); if (object.purgeCount != null) if ($util.Long) (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; @@ -233698,7 +236141,7 @@ message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); if (object.purgeSample) { if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsResponse.purgeSample: array expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.purgeSample: array expected"); message.purgeSample = []; for (var i = 0; i < object.purgeSample.length; ++i) message.purgeSample[i] = String(object.purgeSample[i]); @@ -233707,15 +236150,15 @@ }; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsResponse} message PurgeContextsResponse + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} message PurgeExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsResponse.toObject = function toObject(message, options) { + PurgeExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -233741,37 +236184,37 @@ }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse * @instance * @returns {Object.} JSON object */ - PurgeContextsResponse.prototype.toJSON = function toJSON() { + PurgeExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeContextsResponse; + return PurgeExecutionsResponse; })(); - v1beta1.PurgeContextsMetadata = (function() { + v1beta1.PurgeExecutionsMetadata = (function() { /** - * Properties of a PurgeContextsMetadata. + * Properties of a PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeContextsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata + * @interface IPurgeExecutionsMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata */ /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeContextsMetadata. - * @implements IPurgeContextsMetadata + * @classdesc Represents a PurgeExecutionsMetadata. + * @implements IPurgeExecutionsMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set */ - function PurgeContextsMetadata(properties) { + function PurgeExecutionsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -233779,35 +236222,35 @@ } /** - * PurgeContextsMetadata genericMetadata. + * PurgeExecutionsMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @instance */ - PurgeContextsMetadata.prototype.genericMetadata = null; + PurgeExecutionsMetadata.prototype.genericMetadata = null; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance */ - PurgeContextsMetadata.create = function create(properties) { - return new PurgeContextsMetadata(properties); + PurgeExecutionsMetadata.create = function create(properties) { + return new PurgeExecutionsMetadata(properties); }; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encode = function encode(message, writer) { + PurgeExecutionsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -233816,33 +236259,33 @@ }; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decode = function decode(reader, length) { + PurgeExecutionsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -233858,30 +236301,30 @@ }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a PurgeExecutionsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsMetadata.verify = function verify(message) { + PurgeExecutionsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -233893,35 +236336,35 @@ }; /** - * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata */ - PurgeContextsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + PurgeExecutionsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} message PurgeContextsMetadata + * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsMetadata.toObject = function toObject(message, options) { + PurgeExecutionsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -233933,41 +236376,39 @@ }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata * @instance * @returns {Object.} JSON object */ - PurgeContextsMetadata.prototype.toJSON = function toJSON() { + PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PurgeContextsMetadata; + return PurgeExecutionsMetadata; })(); - v1beta1.AddContextArtifactsAndExecutionsRequest = (function() { + v1beta1.AddExecutionEventsRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsRequest. + * Properties of an AddExecutionEventsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextArtifactsAndExecutionsRequest - * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context - * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts - * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions + * @interface IAddExecutionEventsRequest + * @property {string|null} [execution] AddExecutionEventsRequest execution + * @property {Array.|null} [events] AddExecutionEventsRequest events */ /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new AddExecutionEventsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. - * @implements IAddContextArtifactsAndExecutionsRequest + * @classdesc Represents an AddExecutionEventsRequest. + * @implements IAddExecutionEventsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsRequest(properties) { - this.artifacts = []; - this.executions = []; + function AddExecutionEventsRequest(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -233975,107 +236416,91 @@ } /** - * AddContextArtifactsAndExecutionsRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest - * @instance - */ - AddContextArtifactsAndExecutionsRequest.prototype.context = ""; - - /** - * AddContextArtifactsAndExecutionsRequest artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * AddExecutionEventsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; + AddExecutionEventsRequest.prototype.execution = ""; /** - * AddContextArtifactsAndExecutionsRequest executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * AddExecutionEventsRequest events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; + AddExecutionEventsRequest.prototype.events = $util.emptyArray; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest instance */ - AddContextArtifactsAndExecutionsRequest.create = function create(properties) { - return new AddContextArtifactsAndExecutionsRequest(properties); + AddExecutionEventsRequest.create = function create(properties) { + return new AddExecutionEventsRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { + AddExecutionEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { + AddExecutionEventsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.context = reader.string(); + message.execution = reader.string(); break; case 2: - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push(reader.string()); - break; - case 3: - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push(reader.string()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -234086,148 +236511,132 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies an AddExecutionEventsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { + AddExecutionEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) - if (!$util.isString(message.artifacts[i])) - return "artifacts: string[] expected"; - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) - if (!$util.isString(message.executions[i])) - return "executions: string[] expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest */ - AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) + AddExecutionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) - message.artifacts[i] = String(object.artifacts[i]); - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) - message.executions[i] = String(object.executions[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); + if (object.execution != null) + message.execution = String(object.execution); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); + } } return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} message AddExecutionEventsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { + AddExecutionEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - } + if (options.arrays || options.defaults) + object.events = []; if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = message.artifacts[j]; - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = message.executions[j]; + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { + AddExecutionEventsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddContextArtifactsAndExecutionsRequest; + return AddExecutionEventsRequest; })(); - v1beta1.AddContextArtifactsAndExecutionsResponse = (function() { + v1beta1.AddExecutionEventsResponse = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsResponse. + * Properties of an AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextArtifactsAndExecutionsResponse + * @interface IAddExecutionEventsResponse */ /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. - * @implements IAddContextArtifactsAndExecutionsResponse + * @classdesc Represents an AddExecutionEventsResponse. + * @implements IAddExecutionEventsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsResponse(properties) { + function AddExecutionEventsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -234235,60 +236644,60 @@ } /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse instance */ - AddContextArtifactsAndExecutionsResponse.create = function create(properties) { - return new AddContextArtifactsAndExecutionsResponse(properties); + AddExecutionEventsResponse.create = function create(properties) { + return new AddExecutionEventsResponse(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { + AddExecutionEventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { + AddExecutionEventsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -234301,96 +236710,94 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies an AddExecutionEventsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { + AddExecutionEventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse */ - AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse) + AddExecutionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) return object; - return new $root.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse(); + return new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse + * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} message AddExecutionEventsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { + AddExecutionEventsResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { + AddExecutionEventsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddContextArtifactsAndExecutionsResponse; + return AddExecutionEventsResponse; })(); - v1beta1.AddContextChildrenRequest = (function() { + v1beta1.QueryExecutionInputsAndOutputsRequest = (function() { /** - * Properties of an AddContextChildrenRequest. + * Properties of a QueryExecutionInputsAndOutputsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextChildrenRequest - * @property {string|null} [context] AddContextChildrenRequest context - * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts + * @interface IQueryExecutionInputsAndOutputsRequest + * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution */ /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextChildrenRequest. - * @implements IAddContextChildrenRequest + * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. + * @implements IQueryExecutionInputsAndOutputsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set */ - function AddContextChildrenRequest(properties) { - this.childContexts = []; + function QueryExecutionInputsAndOutputsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -234398,91 +236805,75 @@ } /** - * AddContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest - * @instance - */ - AddContextChildrenRequest.prototype.context = ""; - - /** - * AddContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * QueryExecutionInputsAndOutputsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @instance */ - AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; + QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance */ - AddContextChildrenRequest.create = function create(properties) { - return new AddContextChildrenRequest(properties); + QueryExecutionInputsAndOutputsRequest.create = function create(properties) { + return new QueryExecutionInputsAndOutputsRequest(properties); }; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encode = function encode(message, writer) { + QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); return writer; }; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decode = function decode(reader, length) { + QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.context = reader.string(); - break; - case 2: - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.execution = reader.string(); break; default: reader.skipType(tag & 7); @@ -234493,127 +236884,109 @@ }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenRequest.verify = function verify(message) { + QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; - } + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; return null; }; /** - * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest */ - AddContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest) + QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); + if (object.execution != null) + message.execution = String(object.execution); return message; }; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenRequest} message AddContextChildrenRequest + * @param {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenRequest.toObject = function toObject(message, options) { + QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; - } + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; return object; }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest * @instance * @returns {Object.} JSON object */ - AddContextChildrenRequest.prototype.toJSON = function toJSON() { + QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddContextChildrenRequest; + return QueryExecutionInputsAndOutputsRequest; })(); - v1beta1.AddContextChildrenResponse = (function() { + v1beta1.CreateMetadataSchemaRequest = (function() { /** - * Properties of an AddContextChildrenResponse. + * Properties of a CreateMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddContextChildrenResponse + * @interface ICreateMetadataSchemaRequest + * @property {string|null} [parent] CreateMetadataSchemaRequest parent + * @property {google.cloud.aiplatform.v1beta1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema + * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId */ /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new CreateMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddContextChildrenResponse. - * @implements IAddContextChildrenResponse + * @classdesc Represents a CreateMetadataSchemaRequest. + * @implements ICreateMetadataSchemaRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set */ - function AddContextChildrenResponse(properties) { + function CreateMetadataSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -234621,63 +236994,102 @@ } /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * CreateMetadataSchemaRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.parent = ""; + + /** + * CreateMetadataSchemaRequest metadataSchema. + * @member {google.cloud.aiplatform.v1beta1.IMetadataSchema|null|undefined} metadataSchema + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchema = null; + + /** + * CreateMetadataSchemaRequest metadataSchemaId. + * @member {string} metadataSchemaId + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + + /** + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance */ - AddContextChildrenResponse.create = function create(properties) { - return new AddContextChildrenResponse(properties); + CreateMetadataSchemaRequest.create = function create(properties) { + return new CreateMetadataSchemaRequest(properties); }; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encode = function encode(message, writer) { + CreateMetadataSchemaRequest.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.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) + $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); return writer; }; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decode = function decode(reader, length) { + CreateMetadataSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32()); + break; + case 3: + message.metadataSchemaId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -234687,94 +237099,129 @@ }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a CreateMetadataSchemaRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenResponse.verify = function verify(message) { + CreateMetadataSchemaRequest.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.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchema); + if (error) + return "metadataSchema." + error; + } + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + if (!$util.isString(message.metadataSchemaId)) + return "metadataSchemaId: string expected"; return null; }; /** - * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest */ - AddContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse) + CreateMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.AddContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.metadataSchema != null) { + if (typeof object.metadataSchema !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.metadataSchema: object expected"); + message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchema); + } + if (object.metadataSchemaId != null) + message.metadataSchemaId = String(object.metadataSchemaId); + return message; }; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddContextChildrenResponse} message AddContextChildrenResponse + * @param {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenResponse.toObject = function toObject() { - return {}; + CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.metadataSchema = null; + object.metadataSchemaId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) + object.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchema, options); + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + object.metadataSchemaId = message.metadataSchemaId; + return object; }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this CreateMetadataSchemaRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest * @instance * @returns {Object.} JSON object */ - AddContextChildrenResponse.prototype.toJSON = function toJSON() { + CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddContextChildrenResponse; + return CreateMetadataSchemaRequest; })(); - v1beta1.QueryContextLineageSubgraphRequest = (function() { + v1beta1.GetMetadataSchemaRequest = (function() { /** - * Properties of a QueryContextLineageSubgraphRequest. + * Properties of a GetMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryContextLineageSubgraphRequest - * @property {string|null} [context] QueryContextLineageSubgraphRequest context + * @interface IGetMetadataSchemaRequest + * @property {string|null} [name] GetMetadataSchemaRequest name */ /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new GetMetadataSchemaRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryContextLineageSubgraphRequest. - * @implements IQueryContextLineageSubgraphRequest + * @classdesc Represents a GetMetadataSchemaRequest. + * @implements IGetMetadataSchemaRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set */ - function QueryContextLineageSubgraphRequest(properties) { + function GetMetadataSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -234782,75 +237229,75 @@ } /** - * QueryContextLineageSubgraphRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * GetMetadataSchemaRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @instance */ - QueryContextLineageSubgraphRequest.prototype.context = ""; + GetMetadataSchemaRequest.prototype.name = ""; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * Creates a new GetMetadataSchemaRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance */ - QueryContextLineageSubgraphRequest.create = function create(properties) { - return new QueryContextLineageSubgraphRequest(properties); + GetMetadataSchemaRequest.create = function create(properties) { + return new GetMetadataSchemaRequest(properties); }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { + GetMetadataSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { + GetMetadataSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.context = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -234861,109 +237308,110 @@ }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a GetMetadataSchemaRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryContextLineageSubgraphRequest.verify = function verify(message) { + GetMetadataSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest */ - QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest) + GetMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(); - if (object.context != null) - message.context = String(object.context); + var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @static - * @param {google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { + GetMetadataSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this GetMetadataSchemaRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest * @instance * @returns {Object.} JSON object */ - QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { + GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryContextLineageSubgraphRequest; + return GetMetadataSchemaRequest; })(); - v1beta1.CreateExecutionRequest = (function() { + v1beta1.ListMetadataSchemasRequest = (function() { /** - * Properties of a CreateExecutionRequest. + * Properties of a ListMetadataSchemasRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateExecutionRequest - * @property {string|null} [parent] CreateExecutionRequest parent - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] CreateExecutionRequest execution - * @property {string|null} [executionId] CreateExecutionRequest executionId + * @interface IListMetadataSchemasRequest + * @property {string|null} [parent] ListMetadataSchemasRequest parent + * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize + * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken + * @property {string|null} [filter] ListMetadataSchemasRequest filter */ /** - * Constructs a new CreateExecutionRequest. + * Constructs a new ListMetadataSchemasRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateExecutionRequest. - * @implements ICreateExecutionRequest + * @classdesc Represents a ListMetadataSchemasRequest. + * @implements IListMetadataSchemasRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set */ - function CreateExecutionRequest(properties) { + function ListMetadataSchemasRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -234971,90 +237419,100 @@ } /** - * CreateExecutionRequest parent. + * ListMetadataSchemasRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @instance */ - CreateExecutionRequest.prototype.parent = ""; + ListMetadataSchemasRequest.prototype.parent = ""; /** - * CreateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * ListMetadataSchemasRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @instance */ - CreateExecutionRequest.prototype.execution = null; + ListMetadataSchemasRequest.prototype.pageSize = 0; /** - * CreateExecutionRequest executionId. - * @member {string} executionId - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * ListMetadataSchemasRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @instance */ - CreateExecutionRequest.prototype.executionId = ""; + ListMetadataSchemasRequest.prototype.pageToken = ""; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * ListMetadataSchemasRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.filter = ""; + + /** + * Creates a new ListMetadataSchemasRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance */ - CreateExecutionRequest.create = function create(properties) { - return new CreateExecutionRequest(properties); + ListMetadataSchemasRequest.create = function create(properties) { + return new ListMetadataSchemasRequest(properties); }; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encode = function encode(message, writer) { + ListMetadataSchemasRequest.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.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); + 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); return writer; }; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decode = function decode(reader, length) { + ListMetadataSchemasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -235062,10 +237520,13 @@ message.parent = reader.string(); break; case 2: - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 3: - message.executionId = reader.string(); + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -235076,129 +237537,134 @@ }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExecutionRequest message. + * Verifies a ListMetadataSchemasRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExecutionRequest.verify = function verify(message) { + ListMetadataSchemasRequest.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.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: 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"; return null; }; /** - * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest */ - CreateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest) + ListMetadataSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); - } - if (object.executionId != null) - message.executionId = String(object.executionId); + 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); return message; }; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateExecutionRequest} message CreateExecutionRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExecutionRequest.toObject = function toObject(message, options) { + ListMetadataSchemasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.execution = null; - object.executionId = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; + 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; return object; }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest * @instance * @returns {Object.} JSON object */ - CreateExecutionRequest.prototype.toJSON = function toJSON() { + ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateExecutionRequest; + return ListMetadataSchemasRequest; })(); - v1beta1.GetExecutionRequest = (function() { + v1beta1.ListMetadataSchemasResponse = (function() { /** - * Properties of a GetExecutionRequest. + * Properties of a ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetExecutionRequest - * @property {string|null} [name] GetExecutionRequest name + * @interface IListMetadataSchemasResponse + * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas + * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken */ /** - * Constructs a new GetExecutionRequest. + * Constructs a new ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetExecutionRequest. - * @implements IGetExecutionRequest + * @classdesc Represents a ListMetadataSchemasResponse. + * @implements IListMetadataSchemasResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set */ - function GetExecutionRequest(properties) { + function ListMetadataSchemasResponse(properties) { + this.metadataSchemas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -235206,75 +237672,91 @@ } /** - * GetExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * ListMetadataSchemasResponse metadataSchemas. + * @member {Array.} metadataSchemas + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @instance */ - GetExecutionRequest.prototype.name = ""; + ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * ListMetadataSchemasResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse + * @instance + */ + ListMetadataSchemasResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance */ - GetExecutionRequest.create = function create(properties) { - return new GetExecutionRequest(properties); + ListMetadataSchemasResponse.create = function create(properties) { + return new ListMetadataSchemasResponse(properties); }; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encode = function encode(message, writer) { + ListMetadataSchemasResponse.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.metadataSchemas != null && message.metadataSchemas.length) + for (var i = 0; i < message.metadataSchemas.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchemas[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 GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decode = function decode(reader, length) { + ListMetadataSchemasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.metadataSchemas && message.metadataSchemas.length)) + message.metadataSchemas = []; + message.metadataSchemas.push($root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -235285,110 +237767,135 @@ }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetExecutionRequest message. + * Verifies a ListMetadataSchemasResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetExecutionRequest.verify = function verify(message) { + ListMetadataSchemasResponse.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.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { + if (!Array.isArray(message.metadataSchemas)) + return "metadataSchemas: array expected"; + for (var i = 0; i < message.metadataSchemas.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchemas[i]); + if (error) + return "metadataSchemas." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse */ - GetExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest) + ListMetadataSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetExecutionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); + if (object.metadataSchemas) { + if (!Array.isArray(object.metadataSchemas)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: array expected"); + message.metadataSchemas = []; + for (var i = 0; i < object.metadataSchemas.length; ++i) { + if (typeof object.metadataSchemas[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: object expected"); + message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchemas[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetExecutionRequest} message GetExecutionRequest + * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetExecutionRequest.toObject = function toObject(message, options) { + ListMetadataSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.metadataSchemas = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.metadataSchemas && message.metadataSchemas.length) { + object.metadataSchemas = []; + for (var j = 0; j < message.metadataSchemas.length; ++j) + object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchemas[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse * @instance * @returns {Object.} JSON object */ - GetExecutionRequest.prototype.toJSON = function toJSON() { + ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetExecutionRequest; + return ListMetadataSchemasResponse; })(); - v1beta1.ListExecutionsRequest = (function() { + v1beta1.QueryArtifactLineageSubgraphRequest = (function() { /** - * Properties of a ListExecutionsRequest. + * Properties of a QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListExecutionsRequest - * @property {string|null} [parent] ListExecutionsRequest parent - * @property {number|null} [pageSize] ListExecutionsRequest pageSize - * @property {string|null} [pageToken] ListExecutionsRequest pageToken - * @property {string|null} [filter] ListExecutionsRequest filter + * @interface IQueryArtifactLineageSubgraphRequest + * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact + * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops + * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter */ /** - * Constructs a new ListExecutionsRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListExecutionsRequest. - * @implements IListExecutionsRequest + * @classdesc Represents a QueryArtifactLineageSubgraphRequest. + * @implements IQueryArtifactLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set */ - function ListExecutionsRequest(properties) { + function QueryArtifactLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -235396,113 +237903,100 @@ } /** - * ListExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.parent = ""; - - /** - * ListExecutionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * QueryArtifactLineageSubgraphRequest artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @instance */ - ListExecutionsRequest.prototype.pageSize = 0; + QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; /** - * ListExecutionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * QueryArtifactLineageSubgraphRequest maxHops. + * @member {number} maxHops + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @instance */ - ListExecutionsRequest.prototype.pageToken = ""; + QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; /** - * ListExecutionsRequest filter. + * QueryArtifactLineageSubgraphRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @instance */ - ListExecutionsRequest.prototype.filter = ""; + QueryArtifactLineageSubgraphRequest.prototype.filter = ""; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance */ - ListExecutionsRequest.create = function create(properties) { - return new ListExecutionsRequest(properties); + QueryArtifactLineageSubgraphRequest.create = function create(properties) { + return new QueryArtifactLineageSubgraphRequest(properties); }; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encode = function encode(message, writer) { + QueryArtifactLineageSubgraphRequest.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.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.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); return writer; }; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decode = function decode(reader, length) { + QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.artifact = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.maxHops = reader.int32(); break; case 3: - message.pageToken = reader.string(); - break; - case 4: message.filter = reader.string(); break; default: @@ -235514,41 +238008,38 @@ }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsRequest.verify = function verify(message) { + QueryArtifactLineageSubgraphRequest.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.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.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + if (!$util.isInteger(message.maxHops)) + return "maxHops: integer expected"; if (message.filter != null && message.hasOwnProperty("filter")) if (!$util.isString(message.filter)) return "filter: string expected"; @@ -235556,92 +238047,90 @@ }; /** - * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest */ - ListExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest) + QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - 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.QueryArtifactLineageSubgraphRequest(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.maxHops != null) + message.maxHops = object.maxHops | 0; if (object.filter != null) message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsRequest} message ListExecutionsRequest + * @param {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsRequest.toObject = function toObject(message, options) { + QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.artifact = ""; + object.maxHops = 0; object.filter = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + object.maxHops = message.maxHops; if (message.filter != null && message.hasOwnProperty("filter")) object.filter = message.filter; return object; }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - ListExecutionsRequest.prototype.toJSON = function toJSON() { + QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExecutionsRequest; + return QueryArtifactLineageSubgraphRequest; })(); - v1beta1.ListExecutionsResponse = (function() { + v1beta1.MetadataStore = (function() { /** - * Properties of a ListExecutionsResponse. + * Properties of a MetadataStore. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListExecutionsResponse - * @property {Array.|null} [executions] ListExecutionsResponse executions - * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken + * @interface IMetadataStore + * @property {string|null} [name] MetadataStore name + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec + * @property {string|null} [description] MetadataStore description + * @property {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state */ /** - * Constructs a new ListExecutionsResponse. + * Constructs a new MetadataStore. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListExecutionsResponse. - * @implements IListExecutionsResponse + * @classdesc Represents a MetadataStore. + * @implements IMetadataStore * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set */ - function ListExecutionsResponse(properties) { - this.executions = []; + function MetadataStore(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -235649,91 +238138,140 @@ } /** - * ListExecutionsResponse executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * MetadataStore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @instance */ - ListExecutionsResponse.prototype.executions = $util.emptyArray; + MetadataStore.prototype.name = ""; /** - * ListExecutionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * MetadataStore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @instance */ - ListExecutionsResponse.prototype.nextPageToken = ""; + MetadataStore.prototype.createTime = null; /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * MetadataStore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.updateTime = null; + + /** + * MetadataStore encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.encryptionSpec = null; + + /** + * MetadataStore description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.description = ""; + + /** + * MetadataStore state. + * @member {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null|undefined} state + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + */ + MetadataStore.prototype.state = null; + + /** + * Creates a new MetadataStore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore instance */ - ListExecutionsResponse.create = function create(properties) { - return new ListExecutionsResponse(properties); + MetadataStore.create = function create(properties) { + return new MetadataStore(properties); }; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encode = function encode(message, writer) { + MetadataStore.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.executions[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.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.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1beta1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decode = function decode(reader, length) { + MetadataStore.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32())); + message.name = reader.string(); break; - case 2: - message.nextPageToken = reader.string(); + 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.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + case 6: + message.description = reader.string(); + break; + case 7: + message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -235744,135 +238282,374 @@ }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + MetadataStore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsResponse message. + * Verifies a MetadataStore message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsResponse.verify = function verify(message) { + MetadataStore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.executions[i]); - if (error) - return "executions." + 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.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) { + var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify(message.state); + if (error) + return "state." + error; + } + return null; + }; + + /** + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore + */ + MetadataStore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.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.MetadataStore.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.MetadataStore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.description != null) + message.description = String(object.description); + if (object.state != null) { + if (typeof object.state !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.state: object expected"); + message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.fromObject(object.state); + } + return message; + }; + + /** + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore} message MetadataStore + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetadataStore.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.description = ""; + object.state = 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.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; + if (message.state != null && message.hasOwnProperty("state")) + object.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.toObject(message.state, options); + return object; + }; + + /** + * Converts this MetadataStore to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @instance + * @returns {Object.} JSON object + */ + MetadataStore.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MetadataStore.MetadataStoreState = (function() { + + /** + * Properties of a MetadataStoreState. + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @interface IMetadataStoreState + * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes + */ + + /** + * Constructs a new MetadataStoreState. + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @classdesc Represents a MetadataStoreState. + * @implements IMetadataStoreState + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + */ + function MetadataStoreState(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]]; + } + + /** + * MetadataStoreState diskUtilizationBytes. + * @member {number|Long} diskUtilizationBytes + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @instance + */ + MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState instance + */ + MetadataStoreState.create = function create(properties) { + return new MetadataStoreState(properties); + }; + + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataStoreState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); + return writer; + }; + + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataStoreState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.diskUtilizationBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return message; + }; - /** - * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} ListExecutionsResponse - */ - ListExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse) + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetadataStoreState message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetadataStoreState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) + return "diskUtilizationBytes: integer|Long expected"; + return null; + }; + + /** + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState + */ + MetadataStoreState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); + if (object.diskUtilizationBytes != null) + if ($util.Long) + (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; + else if (typeof object.diskUtilizationBytes === "string") + message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); + else if (typeof object.diskUtilizationBytes === "number") + message.diskUtilizationBytes = object.diskUtilizationBytes; + else if (typeof object.diskUtilizationBytes === "object") + message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @static + * @param {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} message MetadataStoreState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetadataStoreState.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.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.diskUtilizationBytes = options.longs === String ? "0" : 0; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (typeof message.diskUtilizationBytes === "number") + object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; + else + object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(); - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListExecutionsResponse.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.executions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + }; - /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListExecutionsResponse} message ListExecutionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.executions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.executions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Converts this MetadataStoreState to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + * @instance + * @returns {Object.} JSON object + */ + MetadataStoreState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListExecutionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListExecutionsResponse - * @instance - * @returns {Object.} JSON object - */ - ListExecutionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return MetadataStoreState; + })(); - return ListExecutionsResponse; + return MetadataStore; })(); - v1beta1.UpdateExecutionRequest = (function() { + v1beta1.MigratableResource = (function() { /** - * Properties of an UpdateExecutionRequest. + * Properties of a MigratableResource. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateExecutionRequest - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] UpdateExecutionRequest execution - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask - * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing + * @interface IMigratableResource + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset + * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset + * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime */ /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new MigratableResource. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateExecutionRequest. - * @implements IUpdateExecutionRequest + * @classdesc Represents a MigratableResource. + * @implements IMigratableResource * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set */ - function UpdateExecutionRequest(properties) { + function MigratableResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -235880,101 +238657,154 @@ } /** - * UpdateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * MigratableResource mlEngineModelVersion. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @instance */ - UpdateExecutionRequest.prototype.execution = null; + MigratableResource.prototype.mlEngineModelVersion = null; /** - * UpdateExecutionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * MigratableResource automlModel. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null|undefined} automlModel + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @instance */ - UpdateExecutionRequest.prototype.updateMask = null; + MigratableResource.prototype.automlModel = null; /** - * UpdateExecutionRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * MigratableResource automlDataset. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null|undefined} automlDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @instance */ - UpdateExecutionRequest.prototype.allowMissing = false; + MigratableResource.prototype.automlDataset = null; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * MigratableResource dataLabelingDataset. + * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.dataLabelingDataset = null; + + /** + * MigratableResource lastMigrateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastMigrateTime = null; + + /** + * MigratableResource lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastUpdateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigratableResource resource. + * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @instance + */ + Object.defineProperty(MigratableResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigratableResource instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource instance */ - UpdateExecutionRequest.create = function create(properties) { - return new UpdateExecutionRequest(properties); + MigratableResource.create = function create(properties) { + return new MigratableResource(properties); }; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encode = function encode(message, writer) { + MigratableResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, 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.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) + $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decode = function decode(reader, length) { + MigratableResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); break; case 3: - message.allowMissing = reader.bool(); + message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); + break; + case 4: + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); + break; + case 5: + message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -235985,1010 +238815,1403 @@ }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + MigratableResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a MigratableResource message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExecutionRequest.verify = function verify(message) { + MigratableResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); + var properties = {}; + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); + if (error) + return "mlEngineModelVersion." + error; + } + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify(message.automlModel); + if (error) + return "automlModel." + error; + } + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify(message.automlDataset); + if (error) + return "automlDataset." + error; + } + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); + if (error) + return "dataLabelingDataset." + error; + } + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); if (error) - return "execution." + error; + return "lastMigrateTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); if (error) - return "updateMask." + error; + return "lastUpdateTime." + error; } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource */ - UpdateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest) + MigratableResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); + if (object.mlEngineModelVersion != null) { + if (typeof object.mlEngineModelVersion !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.mlEngineModelVersion: object expected"); + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateExecutionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.automlModel != null) { + if (typeof object.automlModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlModel: object expected"); + message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.fromObject(object.automlModel); + } + if (object.automlDataset != null) { + if (typeof object.automlDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlDataset: object expected"); + message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); + } + if (object.dataLabelingDataset != null) { + if (typeof object.dataLabelingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.dataLabelingDataset: object expected"); + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); + } + if (object.lastMigrateTime != null) { + if (typeof object.lastMigrateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastMigrateTime: object expected"); + message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateExecutionRequest} message UpdateExecutionRequest + * @param {google.cloud.aiplatform.v1beta1.MigratableResource} message MigratableResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExecutionRequest.toObject = function toObject(message, options) { + MigratableResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.execution = null; - object.updateMask = null; - object.allowMissing = false; + object.lastMigrateTime = null; + object.lastUpdateTime = null; } - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); + if (options.oneofs) + object.resource = "mlEngineModelVersion"; + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + object.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.toObject(message.automlModel, options); + if (options.oneofs) + object.resource = "automlModel"; + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + object.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); + if (options.oneofs) + object.resource = "automlDataset"; + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + object.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); + if (options.oneofs) + object.resource = "dataLabelingDataset"; + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) + object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); return object; }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this MigratableResource to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource * @instance * @returns {Object.} JSON object */ - UpdateExecutionRequest.prototype.toJSON = function toJSON() { + MigratableResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateExecutionRequest; - })(); + MigratableResource.MlEngineModelVersion = (function() { - v1beta1.DeleteExecutionRequest = (function() { + /** + * Properties of a MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IMlEngineModelVersion + * @property {string|null} [endpoint] MlEngineModelVersion endpoint + * @property {string|null} [version] MlEngineModelVersion version + */ - /** - * Properties of a DeleteExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteExecutionRequest - * @property {string|null} [name] DeleteExecutionRequest name - * @property {string|null} [etag] DeleteExecutionRequest etag - */ + /** + * Constructs a new MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents a MlEngineModelVersion. + * @implements IMlEngineModelVersion + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + */ + function MlEngineModelVersion(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]]; + } - /** - * Constructs a new DeleteExecutionRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteExecutionRequest. - * @implements IDeleteExecutionRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set - */ - function DeleteExecutionRequest(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]]; - } + /** + * MlEngineModelVersion endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.endpoint = ""; - /** - * DeleteExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.name = ""; + /** + * MlEngineModelVersion version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.version = ""; - /** - * DeleteExecutionRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.etag = ""; + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance + */ + MlEngineModelVersion.create = function create(properties) { + return new MlEngineModelVersion(properties); + }; - /** - * Creates a new DeleteExecutionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest instance - */ - DeleteExecutionRequest.create = function create(properties) { - return new DeleteExecutionRequest(properties); - }; + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.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.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + return writer; + }; - /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExecutionRequest.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.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); - return writer; - }; + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.endpoint = reader.string(); + break; + case 2: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MlEngineModelVersion message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MlEngineModelVersion.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.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + */ + MlEngineModelVersion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MlEngineModelVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.version = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MlEngineModelVersion to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * @instance + * @returns {Object.} JSON object + */ + MlEngineModelVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MlEngineModelVersion; + })(); + + MigratableResource.AutomlModel = (function() { + + /** + * Properties of an AutomlModel. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IAutomlModel + * @property {string|null} [model] AutomlModel model + * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName + */ + + /** + * Constructs a new AutomlModel. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents an AutomlModel. + * @implements IAutomlModel + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set + */ + function AutomlModel(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]]; + } + + /** + * AutomlModel model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.model = ""; + + /** + * AutomlModel modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.modelDisplayName = ""; + + /** + * Creates a new AutomlModel instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel instance + */ + AutomlModel.create = function create(properties) { + return new AutomlModel(properties); + }; + + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; + + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.model = reader.string(); + break; + case 3: + message.modelDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutomlModel message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlModel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; + + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + */ + AutomlModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} message AutomlModel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlModel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; + + /** + * Converts this AutomlModel to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @instance + * @returns {Object.} JSON object + */ + AutomlModel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutomlModel; + })(); + + MigratableResource.AutomlDataset = (function() { + + /** + * Properties of an AutomlDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IAutomlDataset + * @property {string|null} [dataset] AutomlDataset dataset + * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName + */ + + /** + * Constructs a new AutomlDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents an AutomlDataset. + * @implements IAutomlDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set + */ + function AutomlDataset(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]]; + } + + /** + * AutomlDataset dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + */ + AutomlDataset.prototype.dataset = ""; + + /** + * AutomlDataset datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + */ + AutomlDataset.prototype.datasetDisplayName = ""; + + /** + * Creates a new AutomlDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset instance + */ + AutomlDataset.create = function create(properties) { + return new AutomlDataset(properties); + }; - /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + return writer; + }; - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExecutionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.etag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataset = reader.string(); + break; + case 4: + message.datasetDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeleteExecutionRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteExecutionRequest.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.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - return null; - }; + /** + * Verifies an AutomlDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + return null; + }; - /** - * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} DeleteExecutionRequest - */ - DeleteExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); - return message; - }; + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + */ + AutomlDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + return message; + }; - /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} message DeleteExecutionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteExecutionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; - }; + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} message AutomlDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; - /** - * Converts this DeleteExecutionRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteExecutionRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteExecutionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this AutomlDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @instance + * @returns {Object.} JSON object + */ + AutomlDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DeleteExecutionRequest; - })(); + return AutomlDataset; + })(); - v1beta1.PurgeExecutionsRequest = (function() { + MigratableResource.DataLabelingDataset = (function() { - /** - * Properties of a PurgeExecutionsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsRequest - * @property {string|null} [parent] PurgeExecutionsRequest parent - * @property {string|null} [filter] PurgeExecutionsRequest filter - * @property {boolean|null} [force] PurgeExecutionsRequest force - */ + /** + * Properties of a DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @interface IDataLabelingDataset + * @property {string|null} [dataset] DataLabelingDataset dataset + * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName + * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets + */ - /** - * Constructs a new PurgeExecutionsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsRequest. - * @implements IPurgeExecutionsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set - */ - function PurgeExecutionsRequest(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]]; - } + /** + * Constructs a new DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @classdesc Represents a DataLabelingDataset. + * @implements IDataLabelingDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + */ + function DataLabelingDataset(properties) { + this.dataLabelingAnnotatedDatasets = []; + 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]]; + } - /** - * PurgeExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.parent = ""; + /** + * DataLabelingDataset dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.dataset = ""; - /** - * PurgeExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.filter = ""; + /** + * DataLabelingDataset datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.datasetDisplayName = ""; - /** - * PurgeExecutionsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.force = false; + /** + * DataLabelingDataset dataLabelingAnnotatedDatasets. + * @member {Array.} dataLabelingAnnotatedDatasets + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + */ + DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; - /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest instance - */ - PurgeExecutionsRequest.create = function create(properties) { - return new PurgeExecutionsRequest(properties); - }; + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance + */ + DataLabelingDataset.create = function create(properties) { + return new DataLabelingDataset(properties); + }; - /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - return writer; - }; + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + return writer; + }; - /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); - 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.force = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataset = reader.string(); + break; + case 4: + message.datasetDisplayName = reader.string(); + break; + case 3: + if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) + message.dataLabelingAnnotatedDatasets = []; + message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PurgeExecutionsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PurgeExecutionsRequest.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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + /** + * Verifies a DataLabelingDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLabelingDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { + if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) + return "dataLabelingAnnotatedDatasets: array expected"; + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); + if (error) + return "dataLabelingAnnotatedDatasets." + error; + } + } + return null; + }; - /** - * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} PurgeExecutionsRequest - */ - PurgeExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; + /** + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + */ + DataLabelingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.dataLabelingAnnotatedDatasets) { + if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); + message.dataLabelingAnnotatedDatasets = []; + for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { + if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); + message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); + } + } + return message; + }; - /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} message PurgeExecutionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PurgeExecutionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} message DataLabelingDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataLabelingDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataLabelingAnnotatedDatasets = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { + object.dataLabelingAnnotatedDatasets = []; + for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) + object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); + } + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; - /** - * Converts this PurgeExecutionsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest - * @instance - * @returns {Object.} JSON object - */ - PurgeExecutionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this DataLabelingDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @instance + * @returns {Object.} JSON object + */ + DataLabelingDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PurgeExecutionsRequest; - })(); + DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { - v1beta1.PurgeExecutionsResponse = (function() { + /** + * Properties of a DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @interface IDataLabelingAnnotatedDataset + * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset + * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName + */ - /** - * Properties of a PurgeExecutionsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsResponse - * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample - */ + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @classdesc Represents a DataLabelingAnnotatedDataset. + * @implements IDataLabelingAnnotatedDataset + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + */ + function DataLabelingAnnotatedDataset(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]]; + } - /** - * Constructs a new PurgeExecutionsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsResponse. - * @implements IPurgeExecutionsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set - */ - function PurgeExecutionsResponse(properties) { - this.purgeSample = []; - 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]]; - } + /** + * DataLabelingAnnotatedDataset annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; - /** - * PurgeExecutionsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. + * @member {string} annotatedDatasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; - /** - * PurgeExecutionsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance + */ + DataLabelingAnnotatedDataset.create = function create(properties) { + return new DataLabelingAnnotatedDataset(properties); + }; - /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse instance - */ - PurgeExecutionsResponse.create = function create(properties) { - return new PurgeExecutionsResponse(properties); - }; + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingAnnotatedDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); + return writer; + }; - /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); - return writer; - }; + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingAnnotatedDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotatedDataset = reader.string(); + break; + case 3: + message.annotatedDatasetDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.purgeCount = reader.int64(); - break; - case 2: - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a DataLabelingAnnotatedDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLabelingAnnotatedDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + if (!$util.isString(message.annotatedDatasetDisplayName)) + return "annotatedDatasetDisplayName: string expected"; + return null; + }; - /** - * Verifies a PurgeExecutionsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PurgeExecutionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } - return null; - }; + /** + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset + */ + DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + if (object.annotatedDatasetDisplayName != null) + message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); + return message; + }; - /** - * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} PurgeExecutionsResponse - */ - PurgeExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } - return message; - }; + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @static + * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.annotatedDataset = ""; + object.annotatedDatasetDisplayName = ""; + } + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; + return object; + }; - /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} message PurgeExecutionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PurgeExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } - return object; - }; + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + * @returns {Object.} JSON object + */ + DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PurgeExecutionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse - * @instance - * @returns {Object.} JSON object - */ - PurgeExecutionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return DataLabelingAnnotatedDataset; + })(); - return PurgeExecutionsResponse; - })(); + return DataLabelingDataset; + })(); - v1beta1.PurgeExecutionsMetadata = (function() { + return MigratableResource; + })(); - /** - * Properties of a PurgeExecutionsMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPurgeExecutionsMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata - */ + v1beta1.MigrationService = (function() { /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new MigrationService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PurgeExecutionsMetadata. - * @implements IPurgeExecutionsMetadata + * @classdesc Represents a MigrationService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [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 PurgeExecutionsMetadata(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 MigrationService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * PurgeExecutionsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @instance - */ - PurgeExecutionsMetadata.prototype.genericMetadata = null; + (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates new MigrationService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance - */ - PurgeExecutionsMetadata.create = function create(properties) { - return new PurgeExecutionsMetadata(properties); - }; - - /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PurgeExecutionsMetadata.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 PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1beta1.MigrationService * @static - * @param {google.cloud.aiplatform.v1beta1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * @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 {MigrationService} RPC service. Useful where requests and/or responses are streamed. */ - PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); + MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata - * @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.MigrationService#searchMigratableResources}. + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @typedef SearchMigratableResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse */ - PurgeExecutionsMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); - 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 PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @returns {undefined} + * @variation 1 */ - PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { + return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, request, callback); + }, "name", { value: "SearchMigratableResources" }); /** - * Verifies a PurgeExecutionsMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PurgeExecutionsMetadata.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 PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#batchMigrateResources}. + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @typedef BatchMigrateResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - PurgeExecutionsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - PurgeExecutionsMetadata.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; - }; + Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { + return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchMigrateResources" }); /** - * Converts this PurgeExecutionsMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1beta1.MigrationService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return PurgeExecutionsMetadata; + return MigrationService; })(); - v1beta1.AddExecutionEventsRequest = (function() { + v1beta1.SearchMigratableResourcesRequest = (function() { /** - * Properties of an AddExecutionEventsRequest. + * Properties of a SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddExecutionEventsRequest - * @property {string|null} [execution] AddExecutionEventsRequest execution - * @property {Array.|null} [events] AddExecutionEventsRequest events + * @interface ISearchMigratableResourcesRequest + * @property {string|null} [parent] SearchMigratableResourcesRequest parent + * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize + * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken + * @property {string|null} [filter] SearchMigratableResourcesRequest filter */ /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddExecutionEventsRequest. - * @implements IAddExecutionEventsRequest + * @classdesc Represents a SearchMigratableResourcesRequest. + * @implements ISearchMigratableResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set */ - function AddExecutionEventsRequest(properties) { - this.events = []; + function SearchMigratableResourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -236996,91 +240219,114 @@ } /** - * AddExecutionEventsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * SearchMigratableResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - AddExecutionEventsRequest.prototype.execution = ""; + SearchMigratableResourcesRequest.prototype.parent = ""; /** - * AddExecutionEventsRequest events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * SearchMigratableResourcesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance */ - AddExecutionEventsRequest.prototype.events = $util.emptyArray; + SearchMigratableResourcesRequest.prototype.pageSize = 0; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * SearchMigratableResourcesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.pageToken = ""; + + /** + * SearchMigratableResourcesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.filter = ""; + + /** + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance */ - AddExecutionEventsRequest.create = function create(properties) { - return new AddExecutionEventsRequest(properties); + SearchMigratableResourcesRequest.create = function create(properties) { + return new SearchMigratableResourcesRequest(properties); }; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encode = function encode(message, writer) { + SearchMigratableResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Event.encode(message.events[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.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); return writer; }; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decode = function decode(reader, length) { + SearchMigratableResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.execution = reader.string(); + message.parent = reader.string(); break; case 2: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1beta1.Event.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -237091,132 +240337,134 @@ }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a SearchMigratableResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsRequest.verify = function verify(message) { + SearchMigratableResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: 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"; return null; }; /** - * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest */ - AddExecutionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) + SearchMigratableResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(); - if (object.execution != null) - message.execution = String(object.execution); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1beta1.Event.fromObject(object.events[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + 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); return message; }; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest} message AddExecutionEventsRequest + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsRequest.toObject = function toObject(message, options) { + SearchMigratableResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1beta1.Event.toObject(message.events[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + 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; return object; }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest * @instance * @returns {Object.} JSON object */ - AddExecutionEventsRequest.prototype.toJSON = function toJSON() { + SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddExecutionEventsRequest; + return SearchMigratableResourcesRequest; })(); - v1beta1.AddExecutionEventsResponse = (function() { + v1beta1.SearchMigratableResourcesResponse = (function() { /** - * Properties of an AddExecutionEventsResponse. + * Properties of a SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IAddExecutionEventsResponse + * @interface ISearchMigratableResourcesResponse + * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources + * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken */ /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an AddExecutionEventsResponse. - * @implements IAddExecutionEventsResponse + * @classdesc Represents a SearchMigratableResourcesResponse. + * @implements ISearchMigratableResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set */ - function AddExecutionEventsResponse(properties) { + function SearchMigratableResourcesResponse(properties) { + this.migratableResources = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -237224,236 +240472,91 @@ } /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse instance - */ - AddExecutionEventsResponse.create = function create(properties) { - return new AddExecutionEventsResponse(properties); - }; - - /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddExecutionEventsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddExecutionEventsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddExecutionEventsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AddExecutionEventsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} AddExecutionEventsResponse - */ - AddExecutionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse) - return object; - return new $root.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse(); - }; - - /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse} message AddExecutionEventsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AddExecutionEventsResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this AddExecutionEventsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse + * SearchMigratableResourcesResponse migratableResources. + * @member {Array.} migratableResources + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance - * @returns {Object.} JSON object - */ - AddExecutionEventsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AddExecutionEventsResponse; - })(); - - v1beta1.QueryExecutionInputsAndOutputsRequest = (function() { - - /** - * Properties of a QueryExecutionInputsAndOutputsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryExecutionInputsAndOutputsRequest - * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution - */ - - /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. - * @implements IQueryExecutionInputsAndOutputsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set */ - function QueryExecutionInputsAndOutputsRequest(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]]; - } + SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; /** - * QueryExecutionInputsAndOutputsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * SearchMigratableResourcesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance */ - QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; + SearchMigratableResourcesResponse.prototype.nextPageToken = ""; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance */ - QueryExecutionInputsAndOutputsRequest.create = function create(properties) { - return new QueryExecutionInputsAndOutputsRequest(properties); + SearchMigratableResourcesResponse.create = function create(properties) { + return new SearchMigratableResourcesResponse(properties); }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { + SearchMigratableResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.migratableResources != null && message.migratableResources.length) + for (var i = 0; i < message.migratableResources.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResources[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 QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { + SearchMigratableResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.execution = reader.string(); + if (!(message.migratableResources && message.migratableResources.length)) + message.migratableResources = []; + message.migratableResources.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -237464,109 +240567,135 @@ }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a SearchMigratableResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { + SearchMigratableResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; + if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { + if (!Array.isArray(message.migratableResources)) + return "migratableResources: array expected"; + for (var i = 0; i < message.migratableResources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResources[i]); + if (error) + return "migratableResources." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse */ - QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest) + SearchMigratableResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(); - if (object.execution != null) - message.execution = String(object.execution); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); + if (object.migratableResources) { + if (!Array.isArray(object.migratableResources)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: array expected"); + message.migratableResources = []; + for (var i = 0; i < object.migratableResources.length; ++i) { + if (typeof object.migratableResources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: object expected"); + message.migratableResources[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResources[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest + * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { + SearchMigratableResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.migratableResources = []; if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; + object.nextPageToken = ""; + if (message.migratableResources && message.migratableResources.length) { + object.migratableResources = []; + for (var j = 0; j < message.migratableResources.length; ++j) + object.migratableResources[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResources[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse * @instance * @returns {Object.} JSON object */ - QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { + SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryExecutionInputsAndOutputsRequest; + return SearchMigratableResourcesResponse; })(); - v1beta1.CreateMetadataSchemaRequest = (function() { + v1beta1.BatchMigrateResourcesRequest = (function() { /** - * Properties of a CreateMetadataSchemaRequest. + * Properties of a BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateMetadataSchemaRequest - * @property {string|null} [parent] CreateMetadataSchemaRequest parent - * @property {google.cloud.aiplatform.v1beta1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema - * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + * @interface IBatchMigrateResourcesRequest + * @property {string|null} [parent] BatchMigrateResourcesRequest parent + * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests */ /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateMetadataSchemaRequest. - * @implements ICreateMetadataSchemaRequest + * @classdesc Represents a BatchMigrateResourcesRequest. + * @implements IBatchMigrateResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set */ - function CreateMetadataSchemaRequest(properties) { + function BatchMigrateResourcesRequest(properties) { + this.migrateResourceRequests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -237574,90 +240703,81 @@ } /** - * CreateMetadataSchemaRequest parent. + * BatchMigrateResourcesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest - * @instance - */ - CreateMetadataSchemaRequest.prototype.parent = ""; - - /** - * CreateMetadataSchemaRequest metadataSchema. - * @member {google.cloud.aiplatform.v1beta1.IMetadataSchema|null|undefined} metadataSchema - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchema = null; + BatchMigrateResourcesRequest.prototype.parent = ""; /** - * CreateMetadataSchemaRequest metadataSchemaId. - * @member {string} metadataSchemaId - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * BatchMigrateResourcesRequest migrateResourceRequests. + * @member {Array.} migrateResourceRequests + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance */ - CreateMetadataSchemaRequest.create = function create(properties) { - return new CreateMetadataSchemaRequest(properties); + BatchMigrateResourcesRequest.create = function create(properties) { + return new BatchMigrateResourcesRequest(properties); }; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encode = function encode(message, writer) { + BatchMigrateResourcesRequest.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.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) - $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) + for (var i = 0; i < message.migrateResourceRequests.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decode = function decode(reader, length) { + BatchMigrateResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -237665,10 +240785,9 @@ message.parent = reader.string(); break; case 2: - message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32()); - break; - case 3: - message.metadataSchemaId = reader.string(); + if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) + message.migrateResourceRequests = []; + message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -237679,129 +240798,136 @@ }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a BatchMigrateResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataSchemaRequest.verify = function verify(message) { + BatchMigrateResourcesRequest.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.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchema); - if (error) - return "metadataSchema." + error; + if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { + if (!Array.isArray(message.migrateResourceRequests)) + return "migrateResourceRequests: array expected"; + for (var i = 0; i < message.migrateResourceRequests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); + if (error) + return "migrateResourceRequests." + error; + } } - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - if (!$util.isString(message.metadataSchemaId)) - return "metadataSchemaId: string expected"; return null; }; /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest */ - CreateMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest) + BatchMigrateResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.metadataSchema != null) { - if (typeof object.metadataSchema !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest.metadataSchema: object expected"); - message.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchema); + if (object.migrateResourceRequests) { + if (!Array.isArray(object.migrateResourceRequests)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); + message.migrateResourceRequests = []; + for (var i = 0; i < object.migrateResourceRequests.length; ++i) { + if (typeof object.migrateResourceRequests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); + message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); + } } - if (object.metadataSchemaId != null) - message.metadataSchemaId = String(object.metadataSchemaId); return message; }; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.migrateResourceRequests = []; + if (options.defaults) object.parent = ""; - object.metadataSchema = null; - object.metadataSchemaId = ""; - } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) - object.metadataSchema = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchema, options); - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - object.metadataSchemaId = message.metadataSchemaId; + if (message.migrateResourceRequests && message.migrateResourceRequests.length) { + object.migrateResourceRequests = []; + for (var j = 0; j < message.migrateResourceRequests.length; ++j) + object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); + } return object; }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest * @instance * @returns {Object.} JSON object */ - CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateMetadataSchemaRequest; + return BatchMigrateResourcesRequest; })(); - v1beta1.GetMetadataSchemaRequest = (function() { + v1beta1.MigrateResourceRequest = (function() { /** - * Properties of a GetMetadataSchemaRequest. + * Properties of a MigrateResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetMetadataSchemaRequest - * @property {string|null} [name] GetMetadataSchemaRequest name + * @interface IMigrateResourceRequest + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig + * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig */ /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new MigrateResourceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetMetadataSchemaRequest. - * @implements IGetMetadataSchemaRequest + * @classdesc Represents a MigrateResourceRequest. + * @implements IMigrateResourceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set */ - function GetMetadataSchemaRequest(properties) { + function MigrateResourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -237809,75 +240935,128 @@ } /** - * GetMetadataSchemaRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * MigrateResourceRequest migrateMlEngineModelVersionConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance */ - GetMetadataSchemaRequest.prototype.name = ""; + MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * MigrateResourceRequest migrateAutomlModelConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; + + /** + * MigrateResourceRequest migrateAutomlDatasetConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; + + /** + * MigrateResourceRequest migrateDataLabelingDatasetConfig. + * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigrateResourceRequest request. + * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @instance + */ + Object.defineProperty(MigrateResourceRequest.prototype, "request", { + get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigrateResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest instance */ - GetMetadataSchemaRequest.create = function create(properties) { - return new GetMetadataSchemaRequest(properties); + MigrateResourceRequest.create = function create(properties) { + return new MigrateResourceRequest(properties); }; /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encode = function encode(message, writer) { + MigrateResourceRequest.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.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decode = function decode(reader, length) { + MigrateResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); + break; + case 2: + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); + break; + case 3: + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); + break; + case 4: + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -237888,594 +241067,1271 @@ }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataSchemaRequest message. + * Verifies a MigrateResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataSchemaRequest.verify = function verify(message) { + MigrateResourceRequest.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.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); + if (error) + return "migrateMlEngineModelVersionConfig." + error; + } + } + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); + if (error) + return "migrateAutomlModelConfig." + error; + } + } + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); + if (error) + return "migrateAutomlDatasetConfig." + error; + } + } + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); + if (error) + return "migrateDataLabelingDatasetConfig." + error; + } + } return null; }; /** - * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest */ - GetMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest) + MigrateResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); + if (object.migrateMlEngineModelVersionConfig != null) { + if (typeof object.migrateMlEngineModelVersionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); + } + if (object.migrateAutomlModelConfig != null) { + if (typeof object.migrateAutomlModelConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); + } + if (object.migrateAutomlDatasetConfig != null) { + if (typeof object.migrateAutomlDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); + } + if (object.migrateDataLabelingDatasetConfig != null) { + if (typeof object.migrateDataLabelingDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); + } return message; }; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} message MigrateResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataSchemaRequest.toObject = function toObject(message, options) { + MigrateResourceRequest.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 (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); + if (options.oneofs) + object.request = "migrateMlEngineModelVersionConfig"; + } + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); + if (options.oneofs) + object.request = "migrateAutomlModelConfig"; + } + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); + if (options.oneofs) + object.request = "migrateAutomlDatasetConfig"; + } + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); + if (options.oneofs) + object.request = "migrateDataLabelingDatasetConfig"; + } return object; }; /** - * Converts this GetMetadataSchemaRequest to JSON. + * Converts this MigrateResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest * @instance * @returns {Object.} JSON object */ - GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { + MigrateResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetMetadataSchemaRequest; - })(); + MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { - v1beta1.ListMetadataSchemasRequest = (function() { + /** + * Properties of a MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateMlEngineModelVersionConfig + * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint + * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion + * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName + */ - /** - * Properties of a ListMetadataSchemasRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataSchemasRequest - * @property {string|null} [parent] ListMetadataSchemasRequest parent - * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize - * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken - * @property {string|null} [filter] ListMetadataSchemasRequest filter - */ + /** + * Constructs a new MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateMlEngineModelVersionConfig. + * @implements IMigrateMlEngineModelVersionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + */ + function MigrateMlEngineModelVersionConfig(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]]; + } - /** - * Constructs a new ListMetadataSchemasRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataSchemasRequest. - * @implements IListMetadataSchemasRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set - */ - function ListMetadataSchemasRequest(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]]; - } + /** + * MigrateMlEngineModelVersionConfig endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; - /** - * ListMetadataSchemasRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.parent = ""; + /** + * MigrateMlEngineModelVersionConfig modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; - /** - * ListMetadataSchemasRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.pageSize = 0; + /** + * MigrateMlEngineModelVersionConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance + */ + MigrateMlEngineModelVersionConfig.create = function create(properties) { + return new MigrateMlEngineModelVersionConfig(properties); + }; + + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateMlEngineModelVersionConfig.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.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; + + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.endpoint = reader.string(); + break; + case 2: + message.modelVersion = reader.string(); + break; + case 3: + message.modelDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigrateMlEngineModelVersionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateMlEngineModelVersionConfig.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.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; + + /** + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + */ + MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.modelVersion = ""; + object.modelDisplayName = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; + + /** + * Converts this MigrateMlEngineModelVersionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MigrateMlEngineModelVersionConfig; + })(); + + MigrateResourceRequest.MigrateAutomlModelConfig = (function() { + + /** + * Properties of a MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateAutomlModelConfig + * @property {string|null} [model] MigrateAutomlModelConfig model + * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName + */ + + /** + * Constructs a new MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlModelConfig. + * @implements IMigrateAutomlModelConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + */ + function MigrateAutomlModelConfig(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]]; + } + + /** + * MigrateAutomlModelConfig model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.model = ""; + + /** + * MigrateAutomlModelConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.modelDisplayName = ""; + + /** + * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance + */ + MigrateAutomlModelConfig.create = function create(properties) { + return new MigrateAutomlModelConfig(properties); + }; + + /** + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); + return writer; + }; + + /** + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.model = reader.string(); + break; + case 2: + message.modelDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigrateAutomlModelConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlModelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; + + /** + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + */ + MigrateAutomlModelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlModelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; + + /** + * Converts this MigrateAutomlModelConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MigrateAutomlModelConfig; + })(); + + MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { + + /** + * Properties of a MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateAutomlDatasetConfig + * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName + */ + + /** + * Constructs a new MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlDatasetConfig. + * @implements IMigrateAutomlDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + */ + function MigrateAutomlDatasetConfig(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]]; + } + + /** + * MigrateAutomlDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + */ + MigrateAutomlDatasetConfig.prototype.dataset = ""; + + /** + * MigrateAutomlDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + */ + MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; + + /** + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance + */ + MigrateAutomlDatasetConfig.create = function create(properties) { + return new MigrateAutomlDatasetConfig(properties); + }; + + /** + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + return writer; + }; + + /** + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataset = reader.string(); + break; + case 2: + message.datasetDisplayName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigrateAutomlDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + return null; + }; + + /** + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + */ + MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + return object; + }; + + /** + * Converts this MigrateAutomlDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MigrateAutomlDatasetConfig; + })(); + + MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + + /** + * Properties of a MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @interface IMigrateDataLabelingDatasetConfig + * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName + * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + */ + + /** + * Constructs a new MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @classdesc Represents a MigrateDataLabelingDatasetConfig. + * @implements IMigrateDataLabelingDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingDatasetConfig(properties) { + this.migrateDataLabelingAnnotatedDatasetConfigs = []; + 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]]; + } - /** - * ListMetadataSchemasRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.pageToken = ""; + /** + * MigrateDataLabelingDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.dataset = ""; - /** - * ListMetadataSchemasRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.filter = ""; + /** + * MigrateDataLabelingDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; - /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance - */ - ListMetadataSchemasRequest.create = function create(properties) { - return new ListMetadataSchemasRequest(properties); - }; + /** + * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. + * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; - /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasRequest.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.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); - return writer; - }; + /** + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + */ + MigrateDataLabelingDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingDatasetConfig(properties); + }; - /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dataset = reader.string(); + break; + case 2: + message.datasetDisplayName = reader.string(); + break; + case 3: + if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListMetadataSchemasRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMetadataSchemasRequest.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.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"; - return null; - }; + /** + * Verifies a MigrateDataLabelingDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { + if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) + return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (error) + return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + } + } + return null; + }; - /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} ListMetadataSchemasRequest - */ - ListMetadataSchemasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(); - if (object.parent != null) - message.parent = String(object.parent); - 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); - return message; - }; + /** + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + */ + MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.migrateDataLabelingAnnotatedDatasetConfigs) { + if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + } + } + return message; + }; - /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListMetadataSchemasRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - 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; - return object; - }; + /** + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) + object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + } + return object; + }; - /** - * Converts this ListMetadataSchemasRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest - * @instance - * @returns {Object.} JSON object - */ - ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this MigrateDataLabelingDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListMetadataSchemasRequest; - })(); + MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { - v1beta1.ListMetadataSchemasResponse = (function() { + /** + * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @interface IMigrateDataLabelingAnnotatedDatasetConfig + * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + */ - /** - * Properties of a ListMetadataSchemasResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListMetadataSchemasResponse - * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas - * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken - */ + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. + * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingAnnotatedDatasetConfig(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]]; + } - /** - * Constructs a new ListMetadataSchemasResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListMetadataSchemasResponse. - * @implements IListMetadataSchemasResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set - */ - function ListMetadataSchemasResponse(properties) { - this.metadataSchemas = []; - 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]]; - } + /** + * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; - /** - * ListMetadataSchemasResponse metadataSchemas. - * @member {Array.} metadataSchemas - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - */ - ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + }; - /** - * ListMetadataSchemasResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - */ - ListMetadataSchemasResponse.prototype.nextPageToken = ""; + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + return writer; + }; - /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance - */ - ListMetadataSchemasResponse.create = function create(properties) { - return new ListMetadataSchemasResponse(properties); - }; + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadataSchemas != null && message.metadataSchemas.length) - for (var i = 0; i < message.metadataSchemas.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MetadataSchema.encode(message.metadataSchemas[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; - }; + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotatedDataset = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.metadataSchemas && message.metadataSchemas.length)) - message.metadataSchemas = []; - message.metadataSchemas.push($root.google.cloud.aiplatform.v1beta1.MetadataSchema.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + return null; + }; - /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + */ + MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + return message; + }; - /** - * Verifies a ListMetadataSchemasResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMetadataSchemasResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { - if (!Array.isArray(message.metadataSchemas)) - return "metadataSchemas: array expected"; - for (var i = 0; i < message.metadataSchemas.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.verify(message.metadataSchemas[i]); - if (error) - return "metadataSchemas." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.annotatedDataset = ""; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + return object; + }; - /** - * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} ListMetadataSchemasResponse - */ - ListMetadataSchemasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(); - if (object.metadataSchemas) { - if (!Array.isArray(object.metadataSchemas)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: array expected"); - message.metadataSchemas = []; - for (var i = 0; i < object.metadataSchemas.length; ++i) { - if (typeof object.metadataSchemas[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse.metadataSchemas: object expected"); - message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.fromObject(object.metadataSchemas[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListMetadataSchemasResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metadataSchemas = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataSchemas && message.metadataSchemas.length) { - object.metadataSchemas = []; - for (var j = 0; j < message.metadataSchemas.length; ++j) - object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1beta1.MetadataSchema.toObject(message.metadataSchemas[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + return MigrateDataLabelingAnnotatedDatasetConfig; + })(); - /** - * Converts this ListMetadataSchemasResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse - * @instance - * @returns {Object.} JSON object - */ - ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return MigrateDataLabelingDatasetConfig; + })(); - return ListMetadataSchemasResponse; + return MigrateResourceRequest; })(); - v1beta1.QueryArtifactLineageSubgraphRequest = (function() { + v1beta1.BatchMigrateResourcesResponse = (function() { /** - * Properties of a QueryArtifactLineageSubgraphRequest. + * Properties of a BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQueryArtifactLineageSubgraphRequest - * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact - * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops - * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter + * @interface IBatchMigrateResourcesResponse + * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses */ /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QueryArtifactLineageSubgraphRequest. - * @implements IQueryArtifactLineageSubgraphRequest + * @classdesc Represents a BatchMigrateResourcesResponse. + * @implements IBatchMigrateResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set */ - function QueryArtifactLineageSubgraphRequest(properties) { + function BatchMigrateResourcesResponse(properties) { + this.migrateResourceResponses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -238483,101 +242339,78 @@ } /** - * QueryArtifactLineageSubgraphRequest artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest - * @instance - */ - QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; - - /** - * QueryArtifactLineageSubgraphRequest maxHops. - * @member {number} maxHops - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest - * @instance - */ - QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; - - /** - * QueryArtifactLineageSubgraphRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * BatchMigrateResourcesResponse migrateResourceResponses. + * @member {Array.} migrateResourceResponses + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.filter = ""; + BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance */ - QueryArtifactLineageSubgraphRequest.create = function create(properties) { - return new QueryArtifactLineageSubgraphRequest(properties); + BatchMigrateResourcesResponse.create = function create(properties) { + return new BatchMigrateResourcesResponse(properties); }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { + BatchMigrateResourcesResponse.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.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); + if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) + for (var i = 0; i < message.migrateResourceResponses.length; ++i) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { + BatchMigrateResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.artifact = reader.string(); - break; - case 2: - message.maxHops = reader.int32(); - break; - case 3: - message.filter = reader.string(); + if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) + message.migrateResourceResponses = []; + message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -238588,129 +242421,126 @@ }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies a BatchMigrateResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryArtifactLineageSubgraphRequest.verify = function verify(message) { + BatchMigrateResourcesResponse.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.maxHops != null && message.hasOwnProperty("maxHops")) - if (!$util.isInteger(message.maxHops)) - return "maxHops: integer expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { + if (!Array.isArray(message.migrateResourceResponses)) + return "migrateResourceResponses: array expected"; + for (var i = 0; i < message.migrateResourceResponses.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); + if (error) + return "migrateResourceResponses." + error; + } + } return null; }; /** - * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse */ - QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest) + BatchMigrateResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.maxHops != null) - message.maxHops = object.maxHops | 0; - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); + if (object.migrateResourceResponses) { + if (!Array.isArray(object.migrateResourceResponses)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); + message.migrateResourceResponses = []; + for (var i = 0; i < object.migrateResourceResponses.length; ++i) { + if (typeof object.migrateResourceResponses[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); + message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); + } + } return message; }; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = ""; - object.maxHops = 0; - object.filter = ""; + if (options.arrays || options.defaults) + object.migrateResourceResponses = []; + if (message.migrateResourceResponses && message.migrateResourceResponses.length) { + object.migrateResourceResponses = []; + for (var j = 0; j < message.migrateResourceResponses.length; ++j) + object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - object.maxHops = message.maxHops; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; return object; }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse * @instance * @returns {Object.} JSON object */ - QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryArtifactLineageSubgraphRequest; + return BatchMigrateResourcesResponse; })(); - v1beta1.MetadataStore = (function() { + v1beta1.MigrateResourceResponse = (function() { /** - * Properties of a MetadataStore. + * Properties of a MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMetadataStore - * @property {string|null} [name] MetadataStore name - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec - * @property {string|null} [description] MetadataStore description - * @property {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state + * @interface IMigrateResourceResponse + * @property {string|null} [dataset] MigrateResourceResponse dataset + * @property {string|null} [model] MigrateResourceResponse model + * @property {google.cloud.aiplatform.v1beta1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource */ /** - * Constructs a new MetadataStore. + * Constructs a new MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MetadataStore. - * @implements IMetadataStore + * @classdesc Represents a MigrateResourceResponse. + * @implements IMigrateResourceResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set */ - function MetadataStore(properties) { + function MigrateResourceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -238718,140 +242548,115 @@ } /** - * MetadataStore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.name = ""; - - /** - * MetadataStore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * MigrateResourceResponse dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance */ - MetadataStore.prototype.createTime = null; + MigrateResourceResponse.prototype.dataset = null; /** - * MetadataStore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * MigrateResourceResponse model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance */ - MetadataStore.prototype.updateTime = null; + MigrateResourceResponse.prototype.model = null; /** - * MetadataStore encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * MigrateResourceResponse migratableResource. + * @member {google.cloud.aiplatform.v1beta1.IMigratableResource|null|undefined} migratableResource + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance */ - MetadataStore.prototype.encryptionSpec = null; + MigrateResourceResponse.prototype.migratableResource = null; - /** - * MetadataStore description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @instance - */ - MetadataStore.prototype.description = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * MetadataStore state. - * @member {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState|null|undefined} state - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * MigrateResourceResponse migratedResource. + * @member {"dataset"|"model"|undefined} migratedResource + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance */ - MetadataStore.prototype.state = null; + Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new MigrateResourceResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore instance + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse instance */ - MetadataStore.create = function create(properties) { - return new MetadataStore(properties); + MigrateResourceResponse.create = function create(properties) { + return new MigrateResourceResponse(properties); }; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encode = function encode(message, writer) { + MigrateResourceResponse.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.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); + if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) + $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decode = function decode(reader, length) { + MigrateResourceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - 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.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.dataset = reader.string(); break; - case 6: - message.description = reader.string(); + case 2: + message.model = reader.string(); break; - case 7: - message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); + case 3: + message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -238862,374 +242667,141 @@ }; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataStore message. + * Verifies a MigrateResourceResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataStore.verify = function verify(message) { + MigrateResourceResponse.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 (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; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.migratedResource = 1; + if (!$util.isString(message.dataset)) + return "dataset: 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.model != null && message.hasOwnProperty("model")) { + if (properties.migratedResource === 1) + return "migratedResource: multiple values"; + properties.migratedResource = 1; + if (!$util.isString(message.model)) + return "model: string expected"; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) { - var error = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify(message.state); + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { + var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResource); if (error) - return "state." + error; + return "migratableResource." + error; } return null; }; /** - * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse */ - MetadataStore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore) + MigrateResourceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.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.MetadataStore.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.MetadataStore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.description != null) - message.description = String(object.description); - if (object.state != null) { - if (typeof object.state !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MetadataStore.state: object expected"); - message.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.fromObject(object.state); + var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.model != null) + message.model = String(object.model); + if (object.migratableResource != null) { + if (typeof object.migratableResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceResponse.migratableResource: object expected"); + message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResource); } return message; }; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore} message MetadataStore + * @param {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} message MigrateResourceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataStore.toObject = function toObject(message, options) { + MigrateResourceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.description = ""; - object.state = null; + if (options.defaults) + object.migratableResource = null; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.migratedResource = "dataset"; } - 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.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; - if (message.state != null && message.hasOwnProperty("state")) - object.state = $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.toObject(message.state, options); + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.migratedResource = "model"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) + object.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResource, options); return object; }; /** - * Converts this MetadataStore to JSON. + * Converts this MigrateResourceResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore + * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse * @instance * @returns {Object.} JSON object */ - MetadataStore.prototype.toJSON = function toJSON() { + MigrateResourceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MetadataStore.MetadataStoreState = (function() { - - /** - * Properties of a MetadataStoreState. - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @interface IMetadataStoreState - * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes - */ - - /** - * Constructs a new MetadataStoreState. - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore - * @classdesc Represents a MetadataStoreState. - * @implements IMetadataStoreState - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - */ - function MetadataStoreState(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]]; - } - - /** - * MetadataStoreState diskUtilizationBytes. - * @member {number|Long} diskUtilizationBytes - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @instance - */ - MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState instance - */ - MetadataStoreState.create = function create(properties) { - return new MetadataStoreState(properties); - }; - - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); - return writer; - }; - - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.diskUtilizationBytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetadataStoreState message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataStoreState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) - return "diskUtilizationBytes: integer|Long expected"; - return null; - }; - - /** - * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} MetadataStoreState - */ - MetadataStoreState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(); - if (object.diskUtilizationBytes != null) - if ($util.Long) - (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; - else if (typeof object.diskUtilizationBytes === "string") - message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); - else if (typeof object.diskUtilizationBytes === "number") - message.diskUtilizationBytes = object.diskUtilizationBytes; - else if (typeof object.diskUtilizationBytes === "object") - message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState} message MetadataStoreState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataStoreState.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.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.diskUtilizationBytes = options.longs === String ? "0" : 0; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (typeof message.diskUtilizationBytes === "number") - object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; - else - object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; - return object; - }; - - /** - * Converts this MetadataStoreState to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState - * @instance - * @returns {Object.} JSON object - */ - MetadataStoreState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MetadataStoreState; - })(); - - return MetadataStore; + return MigrateResourceResponse; })(); - v1beta1.MigratableResource = (function() { + v1beta1.BatchMigrateResourcesOperationMetadata = (function() { /** - * Properties of a MigratableResource. + * Properties of a BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigratableResource - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset - * @property {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset - * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime + * @interface IBatchMigrateResourcesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata + * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults */ /** - * Constructs a new MigratableResource. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigratableResource. - * @implements IMigratableResource + * @classdesc Represents a BatchMigrateResourcesOperationMetadata. + * @implements IBatchMigrateResourcesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set */ - function MigratableResource(properties) { + function BatchMigrateResourcesOperationMetadata(properties) { + this.partialResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -239237,154 +242809,91 @@ } /** - * MigratableResource mlEngineModelVersion. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.mlEngineModelVersion = null; - - /** - * MigratableResource automlModel. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel|null|undefined} automlModel - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.automlModel = null; - - /** - * MigratableResource automlDataset. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset|null|undefined} automlDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.automlDataset = null; - - /** - * MigratableResource dataLabelingDataset. - * @member {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.dataLabelingDataset = null; - - /** - * MigratableResource lastMigrateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @instance - */ - MigratableResource.prototype.lastMigrateTime = null; - - /** - * MigratableResource lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * BatchMigrateResourcesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance */ - MigratableResource.prototype.lastUpdateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; /** - * MigratableResource resource. - * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * BatchMigrateResourcesOperationMetadata partialResults. + * @member {Array.} partialResults + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance */ - Object.defineProperty(MigratableResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), - set: $util.oneOfSetter($oneOfFields) - }); + BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource instance + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance */ - MigratableResource.create = function create(properties) { - return new MigratableResource(properties); + BatchMigrateResourcesOperationMetadata.create = function create(properties) { + return new BatchMigrateResourcesOperationMetadata(properties); }; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encode = function encode(message, writer) { + BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) - $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).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(); + if (message.partialResults != null && message.partialResults.length) + for (var i = 0; i < message.partialResults.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decode = function decode(reader, length) { + BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; case 2: - message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); - break; - case 3: - message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); - break; - case 4: - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); - break; - case 5: - message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.partialResults && message.partialResults.length)) + message.partialResults = []; + message.partialResults.push($root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -239395,203 +242904,138 @@ }; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigratableResource message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigratableResource.verify = function verify(message) { + BatchMigrateResourcesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); - if (error) - return "mlEngineModelVersion." + error; - } - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify(message.automlModel); - if (error) - return "automlModel." + error; - } - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify(message.automlDataset); - if (error) - return "automlDataset." + 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.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); + if (message.partialResults != null && message.hasOwnProperty("partialResults")) { + if (!Array.isArray(message.partialResults)) + return "partialResults: array expected"; + for (var i = 0; i < message.partialResults.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); if (error) - return "dataLabelingDataset." + error; + return "partialResults." + error; } } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); - if (error) - return "lastMigrateTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } return null; }; /** - * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata */ - MigratableResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource) + BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource(); - if (object.mlEngineModelVersion != null) { - if (typeof object.mlEngineModelVersion !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.mlEngineModelVersion: object expected"); - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); - } - if (object.automlModel != null) { - if (typeof object.automlModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlModel: object expected"); - message.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.fromObject(object.automlModel); - } - if (object.automlDataset != null) { - if (typeof object.automlDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.automlDataset: object expected"); - message.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); - } - if (object.dataLabelingDataset != null) { - if (typeof object.dataLabelingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.dataLabelingDataset: object expected"); - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); - } - if (object.lastMigrateTime != null) { - if (typeof object.lastMigrateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastMigrateTime: object expected"); - message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + if (object.partialResults) { + if (!Array.isArray(object.partialResults)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); + message.partialResults = []; + for (var i = 0; i < object.partialResults.length; ++i) { + if (typeof object.partialResults[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); + message.partialResults[i] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + } } return message; }; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource} message MigratableResource + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigratableResource.toObject = function toObject(message, options) { + BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.lastMigrateTime = null; - object.lastUpdateTime = null; - } - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); - if (options.oneofs) - object.resource = "mlEngineModelVersion"; - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - object.automlModel = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.toObject(message.automlModel, options); - if (options.oneofs) - object.resource = "automlModel"; - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - object.automlDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); - if (options.oneofs) - object.resource = "automlDataset"; - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - object.dataLabelingDataset = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); - if (options.oneofs) - object.resource = "dataLabelingDataset"; + if (options.arrays || options.defaults) + object.partialResults = []; + 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 (message.partialResults && message.partialResults.length) { + object.partialResults = []; + for (var j = 0; j < message.partialResults.length; ++j) + object.partialResults[j] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) - object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); return object; }; /** - * Converts this MigratableResource to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata * @instance * @returns {Object.} JSON object */ - MigratableResource.prototype.toJSON = function toJSON() { + BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MigratableResource.MlEngineModelVersion = (function() { + BatchMigrateResourcesOperationMetadata.PartialResult = (function() { /** - * Properties of a MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IMlEngineModelVersion - * @property {string|null} [endpoint] MlEngineModelVersion endpoint - * @property {string|null} [version] MlEngineModelVersion version + * Properties of a PartialResult. + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @interface IPartialResult + * @property {google.rpc.IStatus|null} [error] PartialResult error + * @property {string|null} [model] PartialResult model + * @property {string|null} [dataset] PartialResult dataset + * @property {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null} [request] PartialResult request */ /** - * Constructs a new MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents a MlEngineModelVersion. - * @implements IMlEngineModelVersion + * Constructs a new PartialResult. + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @classdesc Represents a PartialResult. + * @implements IPartialResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set */ - function MlEngineModelVersion(properties) { + function PartialResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -239599,298 +243043,128 @@ } /** - * MlEngineModelVersion endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.endpoint = ""; - - /** - * MlEngineModelVersion version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * PartialResult error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @instance */ - MlEngineModelVersion.prototype.version = ""; - - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance - */ - MlEngineModelVersion.create = function create(properties) { - return new MlEngineModelVersion(properties); - }; - - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.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.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - return writer; - }; - - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.endpoint = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MlEngineModelVersion message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MlEngineModelVersion.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.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; - - /** - * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - */ - MlEngineModelVersion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.version != null) - message.version = String(object.version); - return message; - }; - - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MlEngineModelVersion.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.version = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + PartialResult.prototype.error = null; /** - * Converts this MlEngineModelVersion to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion + * PartialResult model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @instance - * @returns {Object.} JSON object - */ - MlEngineModelVersion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MlEngineModelVersion; - })(); - - MigratableResource.AutomlModel = (function() { - - /** - * Properties of an AutomlModel. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IAutomlModel - * @property {string|null} [model] AutomlModel model - * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName */ + PartialResult.prototype.model = null; /** - * Constructs a new AutomlModel. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents an AutomlModel. - * @implements IAutomlModel - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set + * PartialResult dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance */ - function AutomlModel(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]]; - } + PartialResult.prototype.dataset = null; /** - * AutomlModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * PartialResult request. + * @member {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null|undefined} request + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @instance */ - AutomlModel.prototype.model = ""; + PartialResult.prototype.request = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * AutomlModel modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * PartialResult result. + * @member {"error"|"model"|"dataset"|undefined} result + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @instance */ - AutomlModel.prototype.modelDisplayName = ""; + Object.defineProperty(PartialResult.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new AutomlModel instance using the specified properties. + * Creates a new PartialResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel instance + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance */ - AutomlModel.create = function create(properties) { - return new AutomlModel(properties); + PartialResult.create = function create(properties) { + return new PartialResult(properties); }; /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomlModel.encode = function encode(message, writer) { + PartialResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); return writer; }; /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel.verify|verify} messages. + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { + PartialResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutomlModel message from the specified reader or buffer. + * Decodes a PartialResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomlModel.decode = function decode(reader, length) { + PartialResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.model = reader.string(); + case 2: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; case 3: - message.modelDisplayName = reader.string(); + message.model = reader.string(); + break; + case 4: + message.dataset = reader.string(); + break; + case 1: + message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -239901,117 +243175,534 @@ }; /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * Decodes a PartialResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomlModel.decodeDelimited = function decodeDelimited(reader) { + PartialResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutomlModel message. + * Verifies a PartialResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomlModel.verify = function verify(message) { + PartialResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; if (!$util.isString(message.model)) return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.request != null && message.hasOwnProperty("request")) { + var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.request); + if (error) + return "request." + error; + } return null; }; /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} AutomlModel + * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult */ - AutomlModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel) + PartialResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } if (object.model != null) message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); + message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.request); + } return message; }; /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel} message AutomlModel + * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomlModel.toObject = function toObject(message, options) { + PartialResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; + if (options.defaults) + object.request = null; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.request, options); + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; } - if (message.model != null && message.hasOwnProperty("model")) + if (message.model != null && message.hasOwnProperty("model")) { object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; + if (options.oneofs) + object.result = "model"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.result = "dataset"; + } return object; }; /** - * Converts this AutomlModel to JSON. + * Converts this PartialResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel + * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult * @instance * @returns {Object.} JSON object */ - AutomlModel.prototype.toJSON = function toJSON() { + PartialResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutomlModel; + return PartialResult; })(); - MigratableResource.AutomlDataset = (function() { + return BatchMigrateResourcesOperationMetadata; + })(); + + v1beta1.ModelEvaluation = (function() { + + /** + * Properties of a ModelEvaluation. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelEvaluation + * @property {string|null} [name] ModelEvaluation name + * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime + * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions + * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation + * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs + */ + + /** + * Constructs a new ModelEvaluation. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelEvaluation. + * @implements IModelEvaluation + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set + */ + function ModelEvaluation(properties) { + this.sliceDimensions = []; + this.explanationSpecs = []; + 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]]; + } + + /** + * ModelEvaluation name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.name = ""; + + /** + * ModelEvaluation metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.metricsSchemaUri = ""; + + /** + * ModelEvaluation metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.metrics = null; + + /** + * ModelEvaluation createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.createTime = null; + + /** + * ModelEvaluation sliceDimensions. + * @member {Array.} sliceDimensions + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; + + /** + * ModelEvaluation modelExplanation. + * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.modelExplanation = null; + + /** + * ModelEvaluation explanationSpecs. + * @member {Array.} explanationSpecs + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + + /** + * Creates a new ModelEvaluation instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation instance + */ + ModelEvaluation.create = function create(properties) { + return new ModelEvaluation(properties); + }; + + /** + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluation.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.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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.sliceDimensions != null && message.sliceDimensions.length) + for (var i = 0; i < message.sliceDimensions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.explanationSpecs != null && message.explanationSpecs.length) + for (var i = 0; i < message.explanationSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelEvaluation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.metricsSchemaUri = reader.string(); + break; + case 3: + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.sliceDimensions && message.sliceDimensions.length)) + message.sliceDimensions = []; + message.sliceDimensions.push(reader.string()); + break; + case 8: + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.explanationSpecs && message.explanationSpecs.length)) + message.explanationSpecs = []; + message.explanationSpecs.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelEvaluation message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelEvaluation.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.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { + if (!Array.isArray(message.sliceDimensions)) + return "sliceDimensions: array expected"; + for (var i = 0; i < message.sliceDimensions.length; ++i) + if (!$util.isString(message.sliceDimensions[i])) + return "sliceDimensions: string[] expected"; + } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } + if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { + if (!Array.isArray(message.explanationSpecs)) + return "explanationSpecs: array expected"; + for (var i = 0; i < message.explanationSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (error) + return "explanationSpecs." + error; + } + } + return null; + }; + + /** + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + */ + ModelEvaluation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + if (object.name != null) + message.name = String(object.name); + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.sliceDimensions) { + if (!Array.isArray(object.sliceDimensions)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.sliceDimensions: array expected"); + message.sliceDimensions = []; + for (var i = 0; i < object.sliceDimensions.length; ++i) + message.sliceDimensions[i] = String(object.sliceDimensions[i]); + } + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); + } + if (object.explanationSpecs) { + if (!Array.isArray(object.explanationSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: array expected"); + message.explanationSpecs = []; + for (var i = 0; i < object.explanationSpecs.length; ++i) { + if (typeof object.explanationSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: object expected"); + message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} message ModelEvaluation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelEvaluation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.sliceDimensions = []; + object.explanationSpecs = []; + } + if (options.defaults) { + object.name = ""; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + object.modelExplanation = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.sliceDimensions && message.sliceDimensions.length) { + object.sliceDimensions = []; + for (var j = 0; j < message.sliceDimensions.length; ++j) + object.sliceDimensions[j] = message.sliceDimensions[j]; + } + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); + if (message.explanationSpecs && message.explanationSpecs.length) { + object.explanationSpecs = []; + for (var j = 0; j < message.explanationSpecs.length; ++j) + object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + } + return object; + }; + + /** + * Converts this ModelEvaluation to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @instance + * @returns {Object.} JSON object + */ + ModelEvaluation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ModelEvaluation.ModelEvaluationExplanationSpec = (function() { /** - * Properties of an AutomlDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IAutomlDataset - * @property {string|null} [dataset] AutomlDataset dataset - * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName + * Properties of a ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @interface IModelEvaluationExplanationSpec + * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType + * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec */ /** - * Constructs a new AutomlDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents an AutomlDataset. - * @implements IAutomlDataset + * Constructs a new ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @classdesc Represents a ModelEvaluationExplanationSpec. + * @implements IModelEvaluationExplanationSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set */ - function AutomlDataset(properties) { + function ModelEvaluationExplanationSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -240019,88 +243710,88 @@ } /** - * AutomlDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * ModelEvaluationExplanationSpec explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @instance */ - AutomlDataset.prototype.dataset = ""; + ModelEvaluationExplanationSpec.prototype.explanationType = ""; /** - * AutomlDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * ModelEvaluationExplanationSpec explanationSpec. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @instance */ - AutomlDataset.prototype.datasetDisplayName = ""; + ModelEvaluationExplanationSpec.prototype.explanationSpec = null; /** - * Creates a new AutomlDataset instance using the specified properties. + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset instance + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance */ - AutomlDataset.create = function create(properties) { - return new AutomlDataset(properties); + ModelEvaluationExplanationSpec.create = function create(properties) { + return new ModelEvaluationExplanationSpec(properties); }; /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomlDataset.encode = function encode(message, writer) { + ModelEvaluationExplanationSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); + if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset.verify|verify} messages. + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutomlDataset message from the specified reader or buffer. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomlDataset.decode = function decode(reader, length) { + ModelEvaluationExplanationSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataset = reader.string(); + message.explanationType = reader.string(); break; - case 4: - message.datasetDisplayName = reader.string(); + case 2: + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -240111,119 +243802,413 @@ }; /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomlDataset.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutomlDataset message. + * Verifies a ModelEvaluationExplanationSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomlDataset.verify = function verify(message) { + ModelEvaluationExplanationSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + if (!$util.isString(message.explanationType)) + return "explanationType: string expected"; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); + if (error) + return "explanationSpec." + error; + } return null; }; /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} AutomlDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec */ - AutomlDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset) + ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); + } return message; }; /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset} message AutomlDataset + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomlDataset.toObject = function toObject(message, options) { + ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; + object.explanationType = ""; + object.explanationSpec = null; } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); return object; }; /** - * Converts this AutomlDataset to JSON. + * Converts this ModelEvaluationExplanationSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec * @instance * @returns {Object.} JSON object */ - AutomlDataset.prototype.toJSON = function toJSON() { + ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutomlDataset; - })(); + return ModelEvaluationExplanationSpec; + })(); + + return ModelEvaluation; + })(); + + v1beta1.ModelEvaluationSlice = (function() { + + /** + * Properties of a ModelEvaluationSlice. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelEvaluationSlice + * @property {string|null} [name] ModelEvaluationSlice name + * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice + * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime + */ + + /** + * Constructs a new ModelEvaluationSlice. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelEvaluationSlice. + * @implements IModelEvaluationSlice + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set + */ + function ModelEvaluationSlice(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]]; + } + + /** + * ModelEvaluationSlice name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.name = ""; + + /** + * ModelEvaluationSlice slice. + * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null|undefined} slice + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.slice = null; + + /** + * ModelEvaluationSlice metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.metricsSchemaUri = ""; + + /** + * ModelEvaluationSlice metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.metrics = null; + + /** + * ModelEvaluationSlice createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + */ + ModelEvaluationSlice.prototype.createTime = null; + + /** + * Creates a new ModelEvaluationSlice instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice instance + */ + ModelEvaluationSlice.create = function create(properties) { + return new ModelEvaluationSlice(properties); + }; + + /** + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationSlice.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.slice != null && Object.hasOwnProperty.call(message, "slice")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + 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(); + return writer; + }; + + /** + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationSlice.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); + break; + case 3: + message.metricsSchemaUri = reader.string(); + break; + case 4: + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 5: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelEvaluationSlice message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelEvaluationSlice.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.slice != null && message.hasOwnProperty("slice")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify(message.slice); + if (error) + return "slice." + error; + } + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + return null; + }; + + /** + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + */ + ModelEvaluationSlice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + if (object.name != null) + message.name = String(object.name); + if (object.slice != null) { + if (typeof object.slice !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.slice: object expected"); + message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.fromObject(object.slice); + } + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + return message; + }; + + /** + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} message ModelEvaluationSlice + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelEvaluationSlice.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.slice = null; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.slice != null && message.hasOwnProperty("slice")) + object.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.toObject(message.slice, options); + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + return object; + }; + + /** + * Converts this ModelEvaluationSlice to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @instance + * @returns {Object.} JSON object + */ + ModelEvaluationSlice.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - MigratableResource.DataLabelingDataset = (function() { + ModelEvaluationSlice.Slice = (function() { /** - * Properties of a DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @interface IDataLabelingDataset - * @property {string|null} [dataset] DataLabelingDataset dataset - * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName - * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets + * Properties of a Slice. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @interface ISlice + * @property {string|null} [dimension] Slice dimension + * @property {string|null} [value] Slice value */ /** - * Constructs a new DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource - * @classdesc Represents a DataLabelingDataset. - * @implements IDataLabelingDataset + * Constructs a new Slice. + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @classdesc Represents a Slice. + * @implements ISlice * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set */ - function DataLabelingDataset(properties) { - this.dataLabelingAnnotatedDatasets = []; + function Slice(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -240231,104 +244216,88 @@ } /** - * DataLabelingDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataset = ""; - - /** - * DataLabelingDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * Slice dimension. + * @member {string} dimension + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @instance */ - DataLabelingDataset.prototype.datasetDisplayName = ""; + Slice.prototype.dimension = ""; /** - * DataLabelingDataset dataLabelingAnnotatedDatasets. - * @member {Array.} dataLabelingAnnotatedDatasets - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * Slice value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @instance */ - DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; + Slice.prototype.value = ""; /** - * Creates a new DataLabelingDataset instance using the specified properties. + * Creates a new Slice instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice instance */ - DataLabelingDataset.create = function create(properties) { - return new DataLabelingDataset(properties); + Slice.create = function create(properties) { + return new Slice(properties); }; /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataLabelingDataset.encode = function encode(message, writer) { + Slice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); + if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); return writer; }; /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { + Slice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. + * Decodes a Slice message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataLabelingDataset.decode = function decode(reader, length) { + Slice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataset = reader.string(); - break; - case 4: - message.datasetDisplayName = reader.string(); + message.dimension = reader.string(); break; - case 3: - if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) - message.dataLabelingAnnotatedDatasets = []; - message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); + case 2: + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -240339,712 +244308,619 @@ }; /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * Decodes a Slice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { + Slice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataLabelingDataset message. + * Verifies a Slice message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataLabelingDataset.verify = function verify(message) { + Slice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { - if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) - return "dataLabelingAnnotatedDatasets: array expected"; - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); - if (error) - return "dataLabelingAnnotatedDatasets." + error; - } - } + if (message.dimension != null && message.hasOwnProperty("dimension")) + if (!$util.isString(message.dimension)) + return "dimension: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a Slice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} DataLabelingDataset + * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice */ - DataLabelingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset) + Slice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.dataLabelingAnnotatedDatasets) { - if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); - message.dataLabelingAnnotatedDatasets = []; - for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { - if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); - message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); + if (object.dimension != null) + message.dimension = String(object.dimension); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * Creates a plain object from a Slice message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset} message DataLabelingDataset + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} message Slice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataLabelingDataset.toObject = function toObject(message, options) { + Slice.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingAnnotatedDatasets = []; if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { - object.dataLabelingAnnotatedDatasets = []; - for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) - object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); + object.dimension = ""; + object.value = ""; } - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; + if (message.dimension != null && message.hasOwnProperty("dimension")) + object.dimension = message.dimension; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this DataLabelingDataset to JSON. + * Converts this Slice to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice * @instance * @returns {Object.} JSON object */ - DataLabelingDataset.prototype.toJSON = function toJSON() { + Slice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { - - /** - * Properties of a DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @interface IDataLabelingAnnotatedDataset - * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset - * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName - */ - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset - * @classdesc Represents a DataLabelingAnnotatedDataset. - * @implements IDataLabelingAnnotatedDataset - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - */ - function DataLabelingAnnotatedDataset(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]]; - } - - /** - * DataLabelingAnnotatedDataset annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; - - /** - * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. - * @member {string} annotatedDatasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance - */ - DataLabelingAnnotatedDataset.create = function create(properties) { - return new DataLabelingAnnotatedDataset(properties); - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); - if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); - return writer; - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotatedDataset = reader.string(); - break; - case 3: - message.annotatedDatasetDisplayName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingAnnotatedDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingAnnotatedDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - if (!$util.isString(message.annotatedDatasetDisplayName)) - return "annotatedDatasetDisplayName: string expected"; - return null; - }; - - /** - * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - */ - DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); - if (object.annotatedDatasetDisplayName != null) - message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); - return message; - }; - - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.annotatedDataset = ""; - object.annotatedDatasetDisplayName = ""; - } - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DataLabelingAnnotatedDataset; - })(); - - return DataLabelingDataset; + return Slice; })(); - return MigratableResource; + return ModelEvaluationSlice; })(); - v1beta1.MigrationService = (function() { + v1beta1.ModelService = (function() { /** - * Constructs a new MigrationService service. + * Constructs a new ModelService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrationService + * @classdesc Represents a ModelService * @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 MigrationService(rpcImpl, requestDelimited, responseDelimited) { + function ModelService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; + (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; /** - * Creates new MigrationService service using the specified rpc implementation. + * Creates new ModelService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @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 {MigrationService} RPC service. Useful where requests and/or responses are streamed. + * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. */ - MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#searchMigratableResources}. - * @memberof google.cloud.aiplatform.v1beta1.MigrationService - * @typedef SearchMigratableResourcesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#uploadModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef UploadModelCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { - return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse, request, callback); - }, "name", { value: "SearchMigratableResources" }); + Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { + return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1beta1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UploadModel" }); /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.MigrationService#batchMigrateResources}. - * @memberof google.cloud.aiplatform.v1beta1.MigrationService - * @typedef BatchMigrateResourcesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + */ + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { + return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1beta1.GetModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "GetModel" }); + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModels}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} [response] ListModelsResponse + */ + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { + return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1beta1.ListModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelsResponse, request, callback); + }, "name", { value: "ListModels" }); + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelVersions}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} [response] ListModelVersionsResponse + */ + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.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.v1beta1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse, request, callback); + }, "name", { value: "ListModelVersions" }); + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#updateModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef UpdateModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model + */ + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { + return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "UpdateModel" }); + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#deleteModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef DeleteModelCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { - return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchMigrateResources" }); + Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { + return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModel" }); /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1beta1.MigrationService + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return MigrationService; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#deleteModelVersion}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef DeleteModelVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - v1beta1.SearchMigratableResourcesRequest = (function() { + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelVersion" }); /** - * Properties of a SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchMigratableResourcesRequest - * @property {string|null} [parent] SearchMigratableResourcesRequest parent - * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize - * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken - * @property {string|null} [filter] SearchMigratableResourcesRequest filter + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchMigratableResourcesRequest. - * @implements ISearchMigratableResourcesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#mergeVersionAliases}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef MergeVersionAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model */ - function SearchMigratableResourcesRequest(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]]; - } /** - * SearchMigratableResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 */ - SearchMigratableResourcesRequest.prototype.parent = ""; + Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { + return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); + }, "name", { value: "MergeVersionAliases" }); /** - * SearchMigratableResourcesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchMigratableResourcesRequest.prototype.pageSize = 0; /** - * SearchMigratableResourcesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#exportModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ExportModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchMigratableResourcesRequest.prototype.pageToken = ""; + Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { + return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1beta1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportModel" }); /** - * SearchMigratableResourcesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchMigratableResourcesRequest.prototype.filter = ""; /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#importModelEvaluation}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ImportModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation */ - SearchMigratableResourcesRequest.create = function create(properties) { - return new SearchMigratableResourcesRequest(properties); - }; /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 */ - SearchMigratableResourcesRequest.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.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); - return writer; - }; + Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { + return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); + }, "name", { value: "ImportModelEvaluation" }); /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest - * @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.ModelService#getModelEvaluation}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation */ - SearchMigratableResourcesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 */ - SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { + return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); + }, "name", { value: "GetModelEvaluation" }); /** - * Verifies a SearchMigratableResourcesRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchMigratableResourcesRequest.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.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"; - return null; - }; /** - * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluations}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelEvaluationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse */ - SearchMigratableResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - 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); - return message; - }; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * @returns {undefined} + * @variation 1 */ - SearchMigratableResourcesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - 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; - return object; - }; + Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { + return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, request, callback); + }, "name", { value: "ListModelEvaluations" }); /** - * Converts this SearchMigratableResourcesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluationSlice}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef GetModelEvaluationSliceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} [response] ModelEvaluationSlice + */ + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { + return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, request, callback); + }, "name", { value: "GetModelEvaluationSlice" }); + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef ListModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + */ + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { + return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "ListModelEvaluationSlices" }); + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return SearchMigratableResourcesRequest; + return ModelService; })(); - v1beta1.SearchMigratableResourcesResponse = (function() { + v1beta1.UploadModelRequest = (function() { /** - * Properties of a SearchMigratableResourcesResponse. + * Properties of an UploadModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchMigratableResourcesResponse - * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources - * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken + * @interface IUploadModelRequest + * @property {string|null} [parent] UploadModelRequest parent + * @property {string|null} [parentModel] UploadModelRequest parentModel + * @property {string|null} [modelId] UploadModelRequest modelId + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UploadModelRequest model */ /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new UploadModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchMigratableResourcesResponse. - * @implements ISearchMigratableResourcesResponse + * @classdesc Represents an UploadModelRequest. + * @implements IUploadModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set */ - function SearchMigratableResourcesResponse(properties) { - this.migratableResources = []; + function UploadModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241052,91 +244928,114 @@ } /** - * SearchMigratableResourcesResponse migratableResources. - * @member {Array.} migratableResources - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * UploadModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @instance */ - SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; + UploadModelRequest.prototype.parent = ""; /** - * SearchMigratableResourcesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * UploadModelRequest parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @instance */ - SearchMigratableResourcesResponse.prototype.nextPageToken = ""; + UploadModelRequest.prototype.parentModel = ""; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * UploadModelRequest modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.modelId = ""; + + /** + * UploadModelRequest model. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.model = null; + + /** + * Creates a new UploadModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest instance */ - SearchMigratableResourcesResponse.create = function create(properties) { - return new SearchMigratableResourcesResponse(properties); + UploadModelRequest.create = function create(properties) { + return new UploadModelRequest(properties); }; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encode = function encode(message, writer) { + UploadModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migratableResources != null && message.migratableResources.length) - for (var i = 0; i < message.migratableResources.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResources[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.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1beta1.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; }; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes an UploadModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decode = function decode(reader, length) { + UploadModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.migratableResources && message.migratableResources.length)) - message.migratableResources = []; - message.migratableResources.push($root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 4: + message.parentModel = reader.string(); + break; + case 5: + message.modelId = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -241147,135 +245046,137 @@ }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies an UploadModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesResponse.verify = function verify(message) { + UploadModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { - if (!Array.isArray(message.migratableResources)) - return "migratableResources: array expected"; - for (var i = 0; i < message.migratableResources.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResources[i]); - if (error) - return "migratableResources." + error; - } + 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.v1beta1.Model.verify(message.model); + if (error) + return "model." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest */ - SearchMigratableResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse) + UploadModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(); - if (object.migratableResources) { - if (!Array.isArray(object.migratableResources)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: array expected"); - message.migratableResources = []; - for (var i = 0; i < object.migratableResources.length; ++i) { - if (typeof object.migratableResources[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse.migratableResources: object expected"); - message.migratableResources[i] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResources[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.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.v1beta1.UploadModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.UploadModelRequest} message UploadModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesResponse.toObject = function toObject(message, options) { + UploadModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migratableResources = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.migratableResources && message.migratableResources.length) { - object.migratableResources = []; - for (var j = 0; j < message.migratableResources.length; ++j) - object.migratableResources[j] = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResources[j], options); + if (options.defaults) { + object.parent = ""; + object.model = null; + object.parentModel = ""; + object.modelId = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1beta1.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; }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this UploadModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { + UploadModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchMigratableResourcesResponse; + return UploadModelRequest; })(); - v1beta1.BatchMigrateResourcesRequest = (function() { + v1beta1.UploadModelOperationMetadata = (function() { /** - * Properties of a BatchMigrateResourcesRequest. + * Properties of an UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesRequest - * @property {string|null} [parent] BatchMigrateResourcesRequest parent - * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests + * @interface IUploadModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata */ /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesRequest. - * @implements IBatchMigrateResourcesRequest + * @classdesc Represents an UploadModelOperationMetadata. + * @implements IUploadModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set */ - function BatchMigrateResourcesRequest(properties) { - this.migrateResourceRequests = []; + function UploadModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241283,91 +245184,75 @@ } /** - * BatchMigrateResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest - * @instance - */ - BatchMigrateResourcesRequest.prototype.parent = ""; - - /** - * BatchMigrateResourcesRequest migrateResourceRequests. - * @member {Array.} migrateResourceRequests - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * UploadModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @instance */ - BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; + UploadModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new UploadModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata instance */ - BatchMigrateResourcesRequest.create = function create(properties) { - return new BatchMigrateResourcesRequest(properties); + UploadModelOperationMetadata.create = function create(properties) { + return new UploadModelOperationMetadata(properties); }; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encode = function encode(message, writer) { + UploadModelOperationMetadata.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.migrateResourceRequests != null && message.migrateResourceRequests.length) - for (var i = 0; i < message.migrateResourceRequests.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], 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 BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decode = function decode(reader, length) { + UploadModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) - message.migrateResourceRequests = []; - message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -241378,136 +245263,113 @@ }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies an UploadModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesRequest.verify = function verify(message) { + UploadModelOperationMetadata.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.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { - if (!Array.isArray(message.migrateResourceRequests)) - return "migrateResourceRequests: array expected"; - for (var i = 0; i < message.migrateResourceRequests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); - if (error) - return "migrateResourceRequests." + error; - } + 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 BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata */ - BatchMigrateResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest) + UploadModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.migrateResourceRequests) { - if (!Array.isArray(object.migrateResourceRequests)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); - message.migrateResourceRequests = []; - for (var i = 0; i < object.migrateResourceRequests.length; ++i) { - if (typeof object.migrateResourceRequests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); - message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest + * @param {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} message UploadModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesRequest.toObject = function toObject(message, options) { + UploadModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceRequests = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.migrateResourceRequests && message.migrateResourceRequests.length) { - object.migrateResourceRequests = []; - for (var j = 0; j < message.migrateResourceRequests.length; ++j) - object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); - } + 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 BatchMigrateResourcesRequest to JSON. + * Converts this UploadModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { + UploadModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchMigrateResourcesRequest; + return UploadModelOperationMetadata; })(); - v1beta1.MigrateResourceRequest = (function() { + v1beta1.UploadModelResponse = (function() { /** - * Properties of a MigrateResourceRequest. + * Properties of an UploadModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigrateResourceRequest - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig - * @property {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + * @interface IUploadModelResponse + * @property {string|null} [model] UploadModelResponse model + * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId */ /** - * Constructs a new MigrateResourceRequest. + * Constructs a new UploadModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrateResourceRequest. - * @implements IMigrateResourceRequest + * @classdesc Represents an UploadModelResponse. + * @implements IUploadModelResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set */ - function MigrateResourceRequest(properties) { + function UploadModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -241515,128 +245377,88 @@ } /** - * MigrateResourceRequest migrateMlEngineModelVersionConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @instance - */ - MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; - - /** - * MigrateResourceRequest migrateAutomlModelConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @instance - */ - MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; - - /** - * MigrateResourceRequest migrateAutomlDatasetConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @instance - */ - MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; - - /** - * MigrateResourceRequest migrateDataLabelingDatasetConfig. - * @member {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * UploadModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @instance */ - MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UploadModelResponse.prototype.model = ""; /** - * MigrateResourceRequest request. - * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * UploadModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @instance */ - Object.defineProperty(MigrateResourceRequest.prototype, "request", { - get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + UploadModelResponse.prototype.modelVersionId = ""; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new UploadModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse instance */ - MigrateResourceRequest.create = function create(properties) { - return new MigrateResourceRequest(properties); + UploadModelResponse.create = function create(properties) { + return new UploadModelResponse(properties); }; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encode = function encode(message, writer) { + UploadModelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + 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; }; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes an UploadModelResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decode = function decode(reader, length) { + UploadModelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); + message.model = reader.string(); break; case 2: - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); - break; - case 3: - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); - break; - case 4: - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); + message.modelVersionId = reader.string(); break; default: reader.skipType(tag & 7); @@ -241647,1271 +245469,1098 @@ }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceRequest message. + * Verifies an UploadModelResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceRequest.verify = function verify(message) { + UploadModelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); - if (error) - return "migrateMlEngineModelVersionConfig." + error; - } - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); - if (error) - return "migrateAutomlModelConfig." + error; - } - } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); - if (error) - return "migrateAutomlDatasetConfig." + error; - } - } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); - if (error) - return "migrateDataLabelingDatasetConfig." + error; - } - } + 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; }; /** - * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse */ - MigrateResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest) + UploadModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(); - if (object.migrateMlEngineModelVersionConfig != null) { - if (typeof object.migrateMlEngineModelVersionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); - } - if (object.migrateAutomlModelConfig != null) { - if (typeof object.migrateAutomlModelConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); - } - if (object.migrateAutomlDatasetConfig != null) { - if (typeof object.migrateAutomlDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); - } - if (object.migrateDataLabelingDatasetConfig != null) { - if (typeof object.migrateDataLabelingDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); return message; }; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest} message MigrateResourceRequest + * @param {google.cloud.aiplatform.v1beta1.UploadModelResponse} message UploadModelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceRequest.toObject = function toObject(message, options) { + UploadModelResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); - if (options.oneofs) - object.request = "migrateMlEngineModelVersionConfig"; - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); - if (options.oneofs) - object.request = "migrateAutomlModelConfig"; - } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); - if (options.oneofs) - object.request = "migrateAutomlDatasetConfig"; - } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); - if (options.oneofs) - object.request = "migrateDataLabelingDatasetConfig"; + 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; }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this UploadModelResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse * @instance * @returns {Object.} JSON object */ - MigrateResourceRequest.prototype.toJSON = function toJSON() { + UploadModelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { - - /** - * Properties of a MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateMlEngineModelVersionConfig - * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint - * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion - * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName - */ - - /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateMlEngineModelVersionConfig. - * @implements IMigrateMlEngineModelVersionConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set - */ - function MigrateMlEngineModelVersionConfig(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]]; - } - - /** - * MigrateMlEngineModelVersionConfig endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; - - /** - * MigrateMlEngineModelVersionConfig modelVersion. - * @member {string} modelVersion - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; - - /** - * MigrateMlEngineModelVersionConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; - - /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance - */ - MigrateMlEngineModelVersionConfig.create = function create(properties) { - return new MigrateMlEngineModelVersionConfig(properties); - }; - - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateMlEngineModelVersionConfig.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.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); - return writer; - }; - - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.endpoint = reader.string(); - break; - case 2: - message.modelVersion = reader.string(); - break; - case 3: - message.modelDisplayName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MigrateMlEngineModelVersionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateMlEngineModelVersionConfig.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.modelVersion != null && message.hasOwnProperty("modelVersion")) - if (!$util.isString(message.modelVersion)) - return "modelVersion: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; - - /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig - */ - MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.modelVersion != null) - message.modelVersion = String(object.modelVersion); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; - - /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.modelVersion = ""; - object.modelDisplayName = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - object.modelVersion = message.modelVersion; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; - - /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MigrateMlEngineModelVersionConfig; - })(); - - MigrateResourceRequest.MigrateAutomlModelConfig = (function() { - - /** - * Properties of a MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateAutomlModelConfig - * @property {string|null} [model] MigrateAutomlModelConfig model - * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName - */ - - /** - * Constructs a new MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlModelConfig. - * @implements IMigrateAutomlModelConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - */ - function MigrateAutomlModelConfig(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]]; - } - - /** - * MigrateAutomlModelConfig model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.model = ""; - - /** - * MigrateAutomlModelConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.modelDisplayName = ""; + return UploadModelResponse; + })(); - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance - */ - MigrateAutomlModelConfig.create = function create(properties) { - return new MigrateAutomlModelConfig(properties); - }; + v1beta1.GetModelRequest = (function() { - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); - return writer; - }; + /** + * Properties of a GetModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetModelRequest + * @property {string|null} [name] GetModelRequest name + */ - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new GetModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetModelRequest. + * @implements IGetModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set + */ + function GetModelRequest(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]]; + } - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.model = reader.string(); - break; - case 2: - message.modelDisplayName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * GetModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @instance + */ + GetModelRequest.prototype.name = ""; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new GetModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest instance + */ + GetModelRequest.create = function create(properties) { + return new GetModelRequest(properties); + }; - /** - * Verifies a MigrateAutomlModelConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateAutomlModelConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + /** + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelRequest.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 MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - */ - MigrateAutomlModelConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateAutomlModelConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; + /** + * Decodes a GetModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; + } + return message; + }; + + /** + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetModelRequest.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 GetModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + */ + GetModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetModelRequest} message GetModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetModelRequest.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 MigrateAutomlModelConfig; - })(); + /** + * Converts this GetModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @instance + * @returns {Object.} JSON object + */ + GetModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { + return GetModelRequest; + })(); - /** - * Properties of a MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateAutomlDatasetConfig - * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName - */ + v1beta1.ListModelsRequest = (function() { - /** - * Constructs a new MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlDatasetConfig. - * @implements IMigrateAutomlDatasetConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set - */ - function MigrateAutomlDatasetConfig(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 ListModelsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelsRequest + * @property {string|null} [parent] ListModelsRequest parent + * @property {string|null} [filter] ListModelsRequest filter + * @property {number|null} [pageSize] ListModelsRequest pageSize + * @property {string|null} [pageToken] ListModelsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + */ - /** - * MigrateAutomlDatasetConfig dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @instance - */ - MigrateAutomlDatasetConfig.prototype.dataset = ""; + /** + * Constructs a new ListModelsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelsRequest. + * @implements IListModelsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + */ + function ListModelsRequest(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]]; + } - /** - * MigrateAutomlDatasetConfig datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @instance - */ - MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; + /** + * ListModelsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.parent = ""; - /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance - */ - MigrateAutomlDatasetConfig.create = function create(properties) { - return new MigrateAutomlDatasetConfig(properties); - }; + /** + * ListModelsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.filter = ""; - /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlDatasetConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); - return writer; - }; + /** + * ListModelsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageSize = 0; - /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageToken = ""; - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlDatasetConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dataset = reader.string(); - break; - case 2: - message.datasetDisplayName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.readMask = null; - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListModelsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest instance + */ + ListModelsRequest.create = function create(properties) { + return new ListModelsRequest(properties); + }; - /** - * Verifies a MigrateAutomlDatasetConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateAutomlDatasetConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - return null; - }; + /** + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsRequest.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; + }; - /** - * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig - */ - MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - return message; - }; + /** + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; + /** + * Decodes a ListModelsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + 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; } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; - - /** - * Converts this MigrateAutomlDatasetConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + } + return message; + }; - return MigrateAutomlDatasetConfig; - })(); + /** + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + /** + * Verifies a ListModelsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelsRequest.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; + }; - /** - * Properties of a MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @interface IMigrateDataLabelingDatasetConfig - * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName - * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs - */ + /** + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + */ + ListModelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + 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.ListModelsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest - * @classdesc Represents a MigrateDataLabelingDatasetConfig. - * @implements IMigrateDataLabelingDatasetConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set - */ - function MigrateDataLabelingDatasetConfig(properties) { - this.migrateDataLabelingAnnotatedDatasetConfigs = []; - 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 ListModelsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListModelsRequest} message ListModelsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelsRequest.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; + }; - /** - * MigrateDataLabelingDatasetConfig dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @instance - */ - MigrateDataLabelingDatasetConfig.prototype.dataset = ""; + /** + * Converts this ListModelsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @instance + * @returns {Object.} JSON object + */ + ListModelsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MigrateDataLabelingDatasetConfig datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @instance - */ - MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; + return ListModelsRequest; + })(); - /** - * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. - * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @instance - */ - MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; + v1beta1.ListModelsResponse = (function() { - /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance - */ - MigrateDataLabelingDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingDatasetConfig(properties); - }; + /** + * Properties of a ListModelsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelsResponse + * @property {Array.|null} [models] ListModelsResponse models + * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken + */ - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new ListModelsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelsResponse. + * @implements IListModelsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set + */ + function ListModelsResponse(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]]; + } - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + */ + ListModelsResponse.prototype.models = $util.emptyArray; - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dataset = reader.string(); - break; - case 2: - message.datasetDisplayName = reader.string(); - break; - case 3: - if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + */ + ListModelsResponse.prototype.nextPageToken = ""; - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListModelsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse instance + */ + ListModelsResponse.create = function create(properties) { + return new ListModelsResponse(properties); + }; - /** - * Verifies a MigrateDataLabelingDatasetConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateDataLabelingDatasetConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { - if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) - return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); - if (error) - return "migrateDataLabelingAnnotatedDatasetConfigs." + error; - } - } - return null; - }; + /** + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsResponse.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.v1beta1.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; + }; - /** - * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig - */ - MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.migrateDataLabelingAnnotatedDatasetConfigs) { - if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); - } - } - return message; - }; + /** + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.migrateDataLabelingAnnotatedDatasetConfigs = []; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; + /** + * Decodes a ListModelsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); + 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.v1beta1.Model.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { - object.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) - object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + } + return message; + }; + + /** + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListModelsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelsResponse.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.v1beta1.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 ListModelsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse + */ + ListModelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsResponse) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.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.v1beta1.ListModelsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} message ListModelsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelsResponse.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.v1beta1.Model.toObject(message.models[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { + /** + * Converts this ListModelsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @instance + * @returns {Object.} JSON object + */ + ListModelsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @interface IMigrateDataLabelingAnnotatedDatasetConfig - * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset - */ + return ListModelsResponse; + })(); - /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. - * @implements IMigrateDataLabelingAnnotatedDatasetConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set - */ - function MigrateDataLabelingAnnotatedDatasetConfig(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]]; - } + v1beta1.ListModelVersionsRequest = (function() { - /** - * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @instance - */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; + /** + * Properties of a ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @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 + */ - /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance - */ - MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingAnnotatedDatasetConfig(properties); - }; + /** + * Constructs a new ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelVersionsRequest. + * @implements IListModelVersionsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.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]]; + } - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); - return writer; - }; + /** + * ListModelVersionsRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.name = ""; - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageSize = 0; - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotatedDataset = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageToken = ""; - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ListModelVersionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.filter = ""; - /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; - return null; - }; + /** + * ListModelVersionsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.readMask = null; - /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig - */ - MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); - return message; - }; + /** + * Creates a new ListModelVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest instance + */ + ListModelVersionsRequest.create = function create(properties) { + return new ListModelVersionsRequest(properties); + }; - /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.annotatedDataset = ""; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; - return object; - }; + /** + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.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; + }; - /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.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(); + }; - return MigrateDataLabelingAnnotatedDatasetConfig; - })(); + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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; + }; - return MigrateDataLabelingDatasetConfig; - })(); + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.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()); + }; - return MigrateResourceRequest; + /** + * Verifies a ListModelVersionsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.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.v1beta1.ListModelVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsRequest} ListModelVersionsRequest + */ + ListModelVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.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.v1beta1.ListModelVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListModelVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListModelVersionsRequest; })(); - v1beta1.BatchMigrateResourcesResponse = (function() { + v1beta1.ListModelVersionsResponse = (function() { /** - * Properties of a BatchMigrateResourcesResponse. + * Properties of a ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesResponse - * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses + * @interface IListModelVersionsResponse + * @property {Array.|null} [models] ListModelVersionsResponse models + * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken */ /** - * Constructs a new BatchMigrateResourcesResponse. + * Constructs a new ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesResponse. - * @implements IBatchMigrateResourcesResponse + * @classdesc Represents a ListModelVersionsResponse. + * @implements IListModelVersionsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set */ - function BatchMigrateResourcesResponse(properties) { - this.migrateResourceResponses = []; + function ListModelVersionsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242919,78 +246568,91 @@ } /** - * BatchMigrateResourcesResponse migrateResourceResponses. - * @member {Array.} migrateResourceResponses - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * ListModelVersionsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @instance */ - BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; + ListModelVersionsResponse.prototype.models = $util.emptyArray; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * ListModelVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse + * @instance + */ + ListModelVersionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListModelVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse instance */ - BatchMigrateResourcesResponse.create = function create(properties) { - return new BatchMigrateResourcesResponse(properties); + ListModelVersionsResponse.create = function create(properties) { + return new ListModelVersionsResponse(properties); }; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encode = function encode(message, writer) { + ListModelVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) - for (var i = 0; i < message.migrateResourceResponses.length; ++i) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1beta1.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 BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.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.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decode = function decode(reader, length) { + 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.v1beta1.BatchMigrateResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) - message.migrateResourceResponses = []; - message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.decode(reader, reader.uint32())); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -243001,126 +246663,134 @@ }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies a ListModelVersionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesResponse.verify = function verify(message) { + ListModelVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { - if (!Array.isArray(message.migrateResourceResponses)) - return "migrateResourceResponses: array expected"; - for (var i = 0; i < message.migrateResourceResponses.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); + 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.v1beta1.Model.verify(message.models[i]); if (error) - return "migrateResourceResponses." + error; + return "models." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} ListModelVersionsResponse */ - BatchMigrateResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse) + ListModelVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(); - if (object.migrateResourceResponses) { - if (!Array.isArray(object.migrateResourceResponses)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); - message.migrateResourceResponses = []; - for (var i = 0; i < object.migrateResourceResponses.length; ++i) { - if (typeof object.migrateResourceResponses[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); - message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1beta1.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.v1beta1.ListModelVersionsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelVersionsResponse} message ListModelVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesResponse.toObject = function toObject(message, options) { + ListModelVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migrateResourceResponses = []; - if (message.migrateResourceResponses && message.migrateResourceResponses.length) { - object.migrateResourceResponses = []; - for (var j = 0; j < message.migrateResourceResponses.length; ++j) - object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); + 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.v1beta1.Model.toObject(message.models[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this ListModelVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelVersionsResponse * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { + ListModelVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchMigrateResourcesResponse; + return ListModelVersionsResponse; })(); - v1beta1.MigrateResourceResponse = (function() { + v1beta1.UpdateModelRequest = (function() { /** - * Properties of a MigrateResourceResponse. + * Properties of an UpdateModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMigrateResourceResponse - * @property {string|null} [dataset] MigrateResourceResponse dataset - * @property {string|null} [model] MigrateResourceResponse model - * @property {google.cloud.aiplatform.v1beta1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource + * @interface IUpdateModelRequest + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UpdateModelRequest model + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask */ /** - * Constructs a new MigrateResourceResponse. + * Constructs a new UpdateModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MigrateResourceResponse. - * @implements IMigrateResourceResponse + * @classdesc Represents an UpdateModelRequest. + * @implements IUpdateModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set */ - function MigrateResourceResponse(properties) { + function UpdateModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243128,115 +246798,481 @@ } /** - * MigrateResourceResponse dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * UpdateModelRequest model. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance */ - MigrateResourceResponse.prototype.dataset = null; + UpdateModelRequest.prototype.model = null; /** - * MigrateResourceResponse model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * UpdateModelRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance */ - MigrateResourceResponse.prototype.model = null; + UpdateModelRequest.prototype.updateMask = null; /** - * MigrateResourceResponse migratableResource. - * @member {google.cloud.aiplatform.v1beta1.IMigratableResource|null|undefined} migratableResource - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * Creates a new UpdateModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest instance + */ + UpdateModelRequest.create = function create(properties) { + return new UpdateModelRequest(properties); + }; + + /** + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateModelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, 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 UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); + if (error) + return "model." + 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 UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + */ + UpdateModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); + if (object.model != null) { + if (typeof object.model !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateModelRequest} message UpdateModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = null; + object.updateMask = null; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest * @instance + * @returns {Object.} JSON object */ - MigrateResourceResponse.prototype.migratableResource = null; + UpdateModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return UpdateModelRequest; + })(); + + v1beta1.DeleteModelRequest = (function() { /** - * MigrateResourceResponse migratedResource. - * @member {"dataset"|"model"|undefined} migratedResource - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * Properties of a DeleteModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteModelRequest + * @property {string|null} [name] DeleteModelRequest name + */ + + /** + * Constructs a new DeleteModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteModelRequest. + * @implements IDeleteModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + */ + function DeleteModelRequest(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]]; + } + + /** + * DeleteModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest * @instance */ - Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteModelRequest.prototype.name = ""; /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest instance */ - MigrateResourceResponse.create = function create(properties) { - return new MigrateResourceResponse(properties); + DeleteModelRequest.create = function create(properties) { + return new DeleteModelRequest(properties); }; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelRequest.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 DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + 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 DeleteModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteModelRequest.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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + */ + DeleteModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteModelRequest} message DeleteModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteModelRequest.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 DeleteModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteModelRequest; + })(); + + v1beta1.DeleteModelVersionRequest = (function() { + + /** + * Properties of a DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteModelVersionRequest + * @property {string|null} [name] DeleteModelVersionRequest name + */ + + /** + * Constructs a new DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteModelVersionRequest. + * @implements IDeleteModelVersionRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteModelVersionRequest + * @instance + */ + DeleteModelVersionRequest.prototype.name = ""; + + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + */ + DeleteModelVersionRequest.create = function create(properties) { + return new DeleteModelVersionRequest(properties); + }; + + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encode = function encode(message, writer) { + DeleteModelVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); - if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) - $root.google.cloud.aiplatform.v1beta1.MigratableResource.encode(message.migratableResource, 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); return writer; }; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.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.v1beta1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decode = function decode(reader, length) { + 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.v1beta1.MigrateResourceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataset = reader.string(); - break; - case 2: - message.model = reader.string(); - break; - case 3: - message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -243247,141 +247283,109 @@ }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceResponse message. + * Verifies a DeleteModelVersionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceResponse.verify = function verify(message) { + DeleteModelVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.migratedResource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.migratedResource === 1) - return "migratedResource: multiple values"; - properties.migratedResource = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { - var error = $root.google.cloud.aiplatform.v1beta1.MigratableResource.verify(message.migratableResource); - if (error) - return "migratableResource." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} DeleteModelVersionRequest */ - MigrateResourceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse) + DeleteModelVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.model != null) - message.model = String(object.model); - if (object.migratableResource != null) { - if (typeof object.migratableResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MigrateResourceResponse.migratableResource: object expected"); - message.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.fromObject(object.migratableResource); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MigrateResourceResponse} message MigrateResourceResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest} message DeleteModelVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceResponse.toObject = function toObject(message, options) { + DeleteModelVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.migratableResource = null; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.migratedResource = "dataset"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.migratedResource = "model"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) - object.migratableResource = $root.google.cloud.aiplatform.v1beta1.MigratableResource.toObject(message.migratableResource, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this DeleteModelVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest * @instance * @returns {Object.} JSON object */ - MigrateResourceResponse.prototype.toJSON = function toJSON() { + DeleteModelVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MigrateResourceResponse; + return DeleteModelVersionRequest; })(); - v1beta1.BatchMigrateResourcesOperationMetadata = (function() { + v1beta1.MergeVersionAliasesRequest = (function() { /** - * Properties of a BatchMigrateResourcesOperationMetadata. + * Properties of a MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchMigrateResourcesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata - * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults + * @interface IMergeVersionAliasesRequest + * @property {string|null} [name] MergeVersionAliasesRequest name + * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases */ /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchMigrateResourcesOperationMetadata. - * @implements IBatchMigrateResourcesOperationMetadata + * @classdesc Represents a MergeVersionAliasesRequest. + * @implements IMergeVersionAliasesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set */ - function BatchMigrateResourcesOperationMetadata(properties) { - this.partialResults = []; + function MergeVersionAliasesRequest(properties) { + this.versionAliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243389,91 +247393,91 @@ } /** - * BatchMigrateResourcesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * MergeVersionAliasesRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; + MergeVersionAliasesRequest.prototype.name = ""; /** - * BatchMigrateResourcesOperationMetadata partialResults. - * @member {Array.} partialResults - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * MergeVersionAliasesRequest versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; + MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new MergeVersionAliasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance */ - BatchMigrateResourcesOperationMetadata.create = function create(properties) { - return new BatchMigrateResourcesOperationMetadata(properties); + MergeVersionAliasesRequest.create = function create(properties) { + return new MergeVersionAliasesRequest(properties); }; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { + MergeVersionAliasesRequest.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.partialResults != null && message.partialResults.length) - for (var i = 0; i < message.partialResults.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], 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.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 BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.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.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { + 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.v1beta1.BatchMigrateResourcesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); 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: - if (!(message.partialResults && message.partialResults.length)) - message.partialResults = []; - message.partialResults.push($root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -243484,441 +247488,129 @@ }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies a MergeVersionAliasesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesOperationMetadata.verify = function verify(message) { + MergeVersionAliasesRequest.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.partialResults != null && message.hasOwnProperty("partialResults")) { - if (!Array.isArray(message.partialResults)) - return "partialResults: array expected"; - for (var i = 0; i < message.partialResults.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); - if (error) - return "partialResults." + error; - } + 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 BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} MergeVersionAliasesRequest */ - BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata) + MergeVersionAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.partialResults) { - if (!Array.isArray(object.partialResults)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); - message.partialResults = []; - for (var i = 0; i < object.partialResults.length; ++i) { - if (typeof object.partialResults[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); - message.partialResults[i] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1beta1.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 BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { + MergeVersionAliasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.partialResults = []; + object.versionAliases = []; 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 (message.partialResults && message.partialResults.length) { - object.partialResults = []; - for (var j = 0; j < message.partialResults.length; ++j) - object.partialResults[j] = $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); + 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 BatchMigrateResourcesOperationMetadata to JSON. + * Converts this MergeVersionAliasesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { + MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - BatchMigrateResourcesOperationMetadata.PartialResult = (function() { - - /** - * Properties of a PartialResult. - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @interface IPartialResult - * @property {google.rpc.IStatus|null} [error] PartialResult error - * @property {string|null} [model] PartialResult model - * @property {string|null} [dataset] PartialResult dataset - * @property {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null} [request] PartialResult request - */ - - /** - * Constructs a new PartialResult. - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata - * @classdesc Represents a PartialResult. - * @implements IPartialResult - * @constructor - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - */ - function PartialResult(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]]; - } - - /** - * PartialResult error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.error = null; - - /** - * PartialResult model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.model = null; - - /** - * PartialResult dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.dataset = null; - - /** - * PartialResult request. - * @member {google.cloud.aiplatform.v1beta1.IMigrateResourceRequest|null|undefined} request - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.request = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PartialResult result. - * @member {"error"|"model"|"dataset"|undefined} result - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - Object.defineProperty(PartialResult.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PartialResult instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance - */ - PartialResult.create = function create(properties) { - return new PartialResult(properties); - }; - - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.request != null && Object.hasOwnProperty.call(message, "request")) - $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); - return writer; - }; - - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 3: - message.model = reader.string(); - break; - case 4: - message.dataset = reader.string(); - break; - case 1: - message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PartialResult message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PartialResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.error != null && message.hasOwnProperty("error")) { - properties.result = 1; - { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.request != null && message.hasOwnProperty("request")) { - var error = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.verify(message.request); - if (error) - return "request." + error; - } - return null; - }; - - /** - * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - */ - PartialResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.model != null) - message.model = String(object.model); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.request != null) { - if (typeof object.request !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); - message.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.fromObject(object.request); - } - return message; - }; - - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PartialResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.request = null; - if (message.request != null && message.hasOwnProperty("request")) - object.request = $root.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.toObject(message.request, options); - if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (options.oneofs) - object.result = "error"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.result = "model"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.result = "dataset"; - } - return object; - }; - - /** - * Converts this PartialResult to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - * @returns {Object.} JSON object - */ - PartialResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PartialResult; - })(); - - return BatchMigrateResourcesOperationMetadata; + return MergeVersionAliasesRequest; })(); - v1beta1.ModelEvaluation = (function() { + v1beta1.ExportModelRequest = (function() { /** - * Properties of a ModelEvaluation. + * Properties of an ExportModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelEvaluation - * @property {string|null} [name] ModelEvaluation name - * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime - * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions - * @property {google.cloud.aiplatform.v1beta1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation - * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs + * @interface IExportModelRequest + * @property {string|null} [name] ExportModelRequest name + * @property {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig */ /** - * Constructs a new ModelEvaluation. + * Constructs a new ExportModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelEvaluation. - * @implements IModelEvaluation + * @classdesc Represents an ExportModelRequest. + * @implements IExportModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set */ - function ModelEvaluation(properties) { - this.sliceDimensions = []; - this.explanationSpecs = []; + function ExportModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243926,132 +247618,80 @@ } /** - * ModelEvaluation name. + * ExportModelRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.name = ""; - - /** - * ModelEvaluation metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metricsSchemaUri = ""; - - /** - * ModelEvaluation metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metrics = null; - - /** - * ModelEvaluation createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.createTime = null; - - /** - * ModelEvaluation sliceDimensions. - * @member {Array.} sliceDimensions - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; - - /** - * ModelEvaluation modelExplanation. - * @member {google.cloud.aiplatform.v1beta1.IModelExplanation|null|undefined} modelExplanation - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @instance */ - ModelEvaluation.prototype.modelExplanation = null; + ExportModelRequest.prototype.name = ""; /** - * ModelEvaluation explanationSpecs. - * @member {Array.} explanationSpecs - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * ExportModelRequest outputConfig. + * @member {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @instance */ - ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + ExportModelRequest.prototype.outputConfig = null; /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new ExportModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest instance */ - ModelEvaluation.create = function create(properties) { - return new ModelEvaluation(properties); + ExportModelRequest.create = function create(properties) { + return new ExportModelRequest(properties); }; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encode = function encode(message, writer) { + ExportModelRequest.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.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - 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.sliceDimensions != null && message.sliceDimensions.length) - for (var i = 0; i < message.sliceDimensions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); - if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) - $root.google.cloud.aiplatform.v1beta1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.explanationSpecs != null && message.explanationSpecs.length) - for (var i = 0; i < message.explanationSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) + $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.verify|verify} messages. + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes an ExportModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decode = function decode(reader, length) { + ExportModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -244059,26 +247699,7 @@ message.name = reader.string(); break; case 2: - message.metricsSchemaUri = reader.string(); - break; - case 3: - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.sliceDimensions && message.sliceDimensions.length)) - message.sliceDimensions = []; - message.sliceDimensions.push(reader.string()); - break; - case 8: - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.explanationSpecs && message.explanationSpecs.length)) - message.explanationSpecs = []; - message.explanationSpecs.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -244089,200 +247710,120 @@ }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { + ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluation message. + * Verifies an ExportModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluation.verify = function verify(message) { + ExportModelRequest.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.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { - if (!Array.isArray(message.sliceDimensions)) - return "sliceDimensions: array expected"; - for (var i = 0; i < message.sliceDimensions.length; ++i) - if (!$util.isString(message.sliceDimensions[i])) - return "sliceDimensions: string[] expected"; - } - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.verify(message.modelExplanation); + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify(message.outputConfig); if (error) - return "modelExplanation." + error; - } - if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { - if (!Array.isArray(message.explanationSpecs)) - return "explanationSpecs: array expected"; - for (var i = 0; i < message.explanationSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); - if (error) - return "explanationSpecs." + error; - } + return "outputConfig." + error; } return null; }; /** - * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest */ - ModelEvaluation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation) + ExportModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation(); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); if (object.name != null) message.name = String(object.name); - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.sliceDimensions) { - if (!Array.isArray(object.sliceDimensions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.sliceDimensions: array expected"); - message.sliceDimensions = []; - for (var i = 0; i < object.sliceDimensions.length; ++i) - message.sliceDimensions[i] = String(object.sliceDimensions[i]); - } - if (object.modelExplanation != null) { - if (typeof object.modelExplanation !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.modelExplanation: object expected"); - message.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.fromObject(object.modelExplanation); - } - if (object.explanationSpecs) { - if (!Array.isArray(object.explanationSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: array expected"); - message.explanationSpecs = []; - for (var i = 0; i < object.explanationSpecs.length; ++i) { - if (typeof object.explanationSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.explanationSpecs: object expected"); - message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); - } + if (object.outputConfig != null) { + if (typeof object.outputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.outputConfig: object expected"); + message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); } return message; }; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} message ModelEvaluation + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest} message ExportModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluation.toObject = function toObject(message, options) { + ExportModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sliceDimensions = []; - object.explanationSpecs = []; - } if (options.defaults) { object.name = ""; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - object.modelExplanation = null; + object.outputConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.sliceDimensions && message.sliceDimensions.length) { - object.sliceDimensions = []; - for (var j = 0; j < message.sliceDimensions.length; ++j) - object.sliceDimensions[j] = message.sliceDimensions[j]; - } - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) - object.modelExplanation = $root.google.cloud.aiplatform.v1beta1.ModelExplanation.toObject(message.modelExplanation, options); - if (message.explanationSpecs && message.explanationSpecs.length) { - object.explanationSpecs = []; - for (var j = 0; j < message.explanationSpecs.length; ++j) - object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); - } + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) + object.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); return object; }; /** - * Converts this ModelEvaluation to JSON. + * Converts this ExportModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest * @instance * @returns {Object.} JSON object */ - ModelEvaluation.prototype.toJSON = function toJSON() { + ExportModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelEvaluation.ModelEvaluationExplanationSpec = (function() { + ExportModelRequest.OutputConfig = (function() { /** - * Properties of a ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @interface IModelEvaluationExplanationSpec - * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType - * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + * Properties of an OutputConfig. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @interface IOutputConfig + * @property {string|null} [exportFormatId] OutputConfig exportFormatId + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination + * @property {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination */ /** - * Constructs a new ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation - * @classdesc Represents a ModelEvaluationExplanationSpec. - * @implements IModelEvaluationExplanationSpec + * Constructs a new OutputConfig. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @classdesc Represents an OutputConfig. + * @implements IOutputConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set */ - function ModelEvaluationExplanationSpec(properties) { + function OutputConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244290,88 +247831,101 @@ } /** - * ModelEvaluationExplanationSpec explanationType. - * @member {string} explanationType - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * OutputConfig exportFormatId. + * @member {string} exportFormatId + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationType = ""; + OutputConfig.prototype.exportFormatId = ""; /** - * ModelEvaluationExplanationSpec explanationSpec. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * OutputConfig artifactDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} artifactDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationSpec = null; + OutputConfig.prototype.artifactDestination = null; /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * OutputConfig imageDestination. + * @member {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null|undefined} imageDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.imageDestination = null; + + /** + * Creates a new OutputConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig instance */ - ModelEvaluationExplanationSpec.create = function create(properties) { - return new ModelEvaluationExplanationSpec(properties); + OutputConfig.create = function create(properties) { + return new OutputConfig(properties); }; /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encode = function encode(message, writer) { + OutputConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); - if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); + if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) + $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * Decodes an OutputConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decode = function decode(reader, length) { + OutputConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.explanationType = reader.string(); + message.exportFormatId = reader.string(); break; - case 2: - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); + case 3: + message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 4: + message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -244382,128 +247936,138 @@ }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + OutputConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluationExplanationSpec message. + * Verifies an OutputConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluationExplanationSpec.verify = function verify(message) { + OutputConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - if (!$util.isString(message.explanationType)) - return "explanationType: string expected"; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + if (!$util.isString(message.exportFormatId)) + return "exportFormatId: string expected"; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.artifactDestination); if (error) - return "explanationSpec." + error; + return "artifactDestination." + error; + } + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify(message.imageDestination); + if (error) + return "imageDestination." + error; } return null; }; /** - * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig */ - ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec) + OutputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec(); - if (object.explanationType != null) - message.explanationType = String(object.explanationType); - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); + if (object.exportFormatId != null) + message.exportFormatId = String(object.exportFormatId); + if (object.artifactDestination != null) { + if (typeof object.artifactDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); + message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.artifactDestination); + } + if (object.imageDestination != null) { + if (typeof object.imageDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.imageDestination: object expected"); + message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.fromObject(object.imageDestination); } return message; }; /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} message OutputConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + OutputConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.explanationType = ""; - object.explanationSpec = null; + object.exportFormatId = ""; + object.artifactDestination = null; + object.imageDestination = null; } - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - object.explanationType = message.explanationType; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + object.exportFormatId = message.exportFormatId; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) + object.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.artifactDestination, options); + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) + object.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.toObject(message.imageDestination, options); return object; }; /** - * Converts this ModelEvaluationExplanationSpec to JSON. + * Converts this OutputConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig * @instance * @returns {Object.} JSON object */ - ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + OutputConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModelEvaluationExplanationSpec; + return OutputConfig; })(); - return ModelEvaluation; + return ExportModelRequest; })(); - v1beta1.ModelEvaluationSlice = (function() { + v1beta1.ExportModelOperationMetadata = (function() { /** - * Properties of a ModelEvaluationSlice. + * Properties of an ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelEvaluationSlice - * @property {string|null} [name] ModelEvaluationSlice name - * @property {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice - * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime + * @interface IExportModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo */ /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelEvaluationSlice. - * @implements IModelEvaluationSlice + * @classdesc Represents an ExportModelOperationMetadata. + * @implements IExportModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set */ - function ModelEvaluationSlice(properties) { + function ExportModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244511,127 +248075,88 @@ } /** - * ModelEvaluationSlice name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.name = ""; - - /** - * ModelEvaluationSlice slice. - * @member {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice|null|undefined} slice - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.slice = null; - - /** - * ModelEvaluationSlice metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metricsSchemaUri = ""; - - /** - * ModelEvaluationSlice metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * ExportModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @instance */ - ModelEvaluationSlice.prototype.metrics = null; + ExportModelOperationMetadata.prototype.genericMetadata = null; /** - * ModelEvaluationSlice createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * ExportModelOperationMetadata outputInfo. + * @member {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @instance */ - ModelEvaluationSlice.prototype.createTime = null; + ExportModelOperationMetadata.prototype.outputInfo = null; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice instance + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata instance */ - ModelEvaluationSlice.create = function create(properties) { - return new ModelEvaluationSlice(properties); + ExportModelOperationMetadata.create = function create(properties) { + return new ExportModelOperationMetadata(properties); }; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationSlice.encode = function encode(message, writer) { + ExportModelOperationMetadata.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.slice != null && Object.hasOwnProperty.call(message, "slice")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - 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.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.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) + $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationSlice.decode = function decode(reader, length) { + ExportModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); 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.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); - break; - case 3: - message.metricsSchemaUri = reader.string(); - break; - case 4: - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -244642,153 +248167,124 @@ }; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { + ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluationSlice message. + * Verifies an ExportModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluationSlice.verify = function verify(message) { + ExportModelOperationMetadata.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.slice != null && message.hasOwnProperty("slice")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify(message.slice); - if (error) - return "slice." + error; - } - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "metrics." + error; + return "genericMetadata." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); if (error) - return "createTime." + error; + return "outputInfo." + error; } return null; }; /** - * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} ModelEvaluationSlice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata */ - ModelEvaluationSlice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice) + ExportModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(); - if (object.name != null) - message.name = String(object.name); - if (object.slice != null) { - if (typeof object.slice !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.slice: object expected"); - message.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.fromObject(object.slice); - } - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + if (object.outputInfo != null) { + if (typeof object.outputInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.outputInfo: object expected"); + message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); } return message; }; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} message ModelEvaluationSlice + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} message ExportModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluationSlice.toObject = function toObject(message, options) { + ExportModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.slice = null; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; + object.genericMetadata = null; + object.outputInfo = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.slice != null && message.hasOwnProperty("slice")) - object.slice = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.toObject(message.slice, options); - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) + object.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); return object; }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata * @instance * @returns {Object.} JSON object */ - ModelEvaluationSlice.prototype.toJSON = function toJSON() { + ExportModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelEvaluationSlice.Slice = (function() { + ExportModelOperationMetadata.OutputInfo = (function() { /** - * Properties of a Slice. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @interface ISlice - * @property {string|null} [dimension] Slice dimension - * @property {string|null} [value] Slice value + * Properties of an OutputInfo. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @interface IOutputInfo + * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri + * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri */ /** - * Constructs a new Slice. - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice - * @classdesc Represents a Slice. - * @implements ISlice + * Constructs a new OutputInfo. + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @classdesc Represents an OutputInfo. + * @implements IOutputInfo * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set */ - function Slice(properties) { + function OutputInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244796,88 +248292,88 @@ } /** - * Slice dimension. - * @member {string} dimension - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * OutputInfo artifactOutputUri. + * @member {string} artifactOutputUri + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @instance */ - Slice.prototype.dimension = ""; + OutputInfo.prototype.artifactOutputUri = ""; /** - * Slice value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * OutputInfo imageOutputUri. + * @member {string} imageOutputUri + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @instance */ - Slice.prototype.value = ""; + OutputInfo.prototype.imageOutputUri = ""; /** - * Creates a new Slice instance using the specified properties. + * Creates a new OutputInfo instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice instance + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance */ - Slice.create = function create(properties) { - return new Slice(properties); + OutputInfo.create = function create(properties) { + return new OutputInfo(properties); }; /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encode = function encode(message, writer) { + OutputInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); + if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); return writer; }; /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encodeDelimited = function encodeDelimited(message, writer) { + OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Slice message from the specified reader or buffer. + * Decodes an OutputInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decode = function decode(reader, length) { + OutputInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.dimension = reader.string(); - break; case 2: - message.value = reader.string(); + message.artifactOutputUri = reader.string(); + break; + case 3: + message.imageOutputUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -244888,518 +248384,494 @@ }; /** - * Decodes a Slice message from the specified reader or buffer, length delimited. + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decodeDelimited = function decodeDelimited(reader) { + OutputInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Slice message. + * Verifies an OutputInfo message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Slice.verify = function verify(message) { + OutputInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dimension != null && message.hasOwnProperty("dimension")) - if (!$util.isString(message.dimension)) - return "dimension: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + if (!$util.isString(message.artifactOutputUri)) + return "artifactOutputUri: string expected"; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + if (!$util.isString(message.imageOutputUri)) + return "imageOutputUri: string expected"; return null; }; /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo */ - Slice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice) + OutputInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(); - if (object.dimension != null) - message.dimension = String(object.dimension); - if (object.value != null) - message.value = String(object.value); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); + if (object.artifactOutputUri != null) + message.artifactOutputUri = String(object.artifactOutputUri); + if (object.imageOutputUri != null) + message.imageOutputUri = String(object.imageOutputUri); return message; }; /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @static - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice} message Slice + * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} message OutputInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Slice.toObject = function toObject(message, options) { + OutputInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dimension = ""; - object.value = ""; + object.artifactOutputUri = ""; + object.imageOutputUri = ""; } - if (message.dimension != null && message.hasOwnProperty("dimension")) - object.dimension = message.dimension; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + object.artifactOutputUri = message.artifactOutputUri; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + object.imageOutputUri = message.imageOutputUri; return object; }; /** - * Converts this Slice to JSON. + * Converts this OutputInfo to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo * @instance * @returns {Object.} JSON object */ - Slice.prototype.toJSON = function toJSON() { + OutputInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Slice; + return OutputInfo; })(); - return ModelEvaluationSlice; + return ExportModelOperationMetadata; })(); - v1beta1.ModelService = (function() { + v1beta1.ExportModelResponse = (function() { /** - * Constructs a new ModelService service. + * Properties of an ExportModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelService - * @extends $protobuf.rpc.Service + * @interface IExportModelResponse + */ + + /** + * Constructs a new ExportModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ExportModelResponse. + * @implements IExportModelResponse * @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 + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set */ - function ModelService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function ExportModelResponse(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]]; } - (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; - /** - * Creates new ModelService service using the specified rpc implementation. + * Creates a new ExportModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse * @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 {ModelService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse instance */ - ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + ExportModelResponse.create = function create(properties) { + return new ExportModelResponse(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#uploadModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef UploadModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { - return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1beta1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UploadModel" }); - - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} request UploadModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model - */ - - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { - return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1beta1.GetModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); - }, "name", { value: "GetModel" }); - - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} request GetModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModels}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} [response] ListModelsResponse - */ - - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { - return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1beta1.ListModelsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelsResponse, request, callback); - }, "name", { value: "ListModels" }); - - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} request ListModelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#updateModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef UpdateModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Model} [response] Model - */ - - /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { - return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest, $root.google.cloud.aiplatform.v1beta1.Model, request, callback); - }, "name", { value: "UpdateModel" }); + ExportModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#deleteModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef DeleteModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ExportModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { - return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModel" }); + ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an ExportModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ExportModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#exportModel}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ExportModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse */ + ExportModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); + }; /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportModelResponse} message ExportModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { - return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1beta1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportModel" }); + ExportModelResponse.toObject = function toObject() { + return {}; + }; /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this ExportModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} request ExportModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ExportModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#importModelEvaluation}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ImportModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation - */ + return ExportModelResponse; + })(); - /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { - return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); - }, "name", { value: "ImportModelEvaluation" }); + v1beta1.ImportModelEvaluationRequest = (function() { /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IImportModelEvaluationRequest + * @property {string|null} [parent] ImportModelEvaluationRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluation}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluation} [response] ModelEvaluation + * Constructs a new ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ImportModelEvaluationRequest. + * @implements IImportModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set */ + function ImportModelEvaluationRequest(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 GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * ImportModelEvaluationRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { - return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluation, request, callback); - }, "name", { value: "GetModelEvaluation" }); + ImportModelEvaluationRequest.prototype.parent = ""; /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * ImportModelEvaluationRequest modelEvaluation. + * @member {google.cloud.aiplatform.v1beta1.IModelEvaluation|null|undefined} modelEvaluation + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ImportModelEvaluationRequest.prototype.modelEvaluation = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluations}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelEvaluationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse + * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance */ + ImportModelEvaluationRequest.create = function create(properties) { + return new ImportModelEvaluationRequest(properties); + }; /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { - return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse, request, callback); - }, "name", { value: "ListModelEvaluations" }); + ImportModelEvaluationRequest.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.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluationSlice}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef GetModelEvaluationSliceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelEvaluationSlice} [response] ModelEvaluationSlice + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ImportModelEvaluationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice - * @returns {undefined} - * @variation 1 + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { - return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice, request, callback); - }, "name", { value: "GetModelEvaluationSlice" }); + ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an ImportModelEvaluationRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ImportModelEvaluationRequest.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.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluation); + if (error) + return "modelEvaluation." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#listModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @typedef ListModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest */ + ImportModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluation != null) { + if (typeof object.modelEvaluation !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.modelEvaluation: object expected"); + message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluation); + } + return message; + }; /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { - return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "ListModelEvaluationSlices" }); + ImportModelEvaluationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.modelEvaluation = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) + object.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluation, options); + return object; + }; /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ModelService + * Converts this ImportModelEvaluationRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ModelService; + return ImportModelEvaluationRequest; })(); - v1beta1.UploadModelRequest = (function() { + v1beta1.GetModelEvaluationRequest = (function() { /** - * Properties of an UploadModelRequest. + * Properties of a GetModelEvaluationRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelRequest - * @property {string|null} [parent] UploadModelRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UploadModelRequest model + * @interface IGetModelEvaluationRequest + * @property {string|null} [name] GetModelEvaluationRequest name */ /** - * Constructs a new UploadModelRequest. + * Constructs a new GetModelEvaluationRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelRequest. - * @implements IUploadModelRequest + * @classdesc Represents a GetModelEvaluationRequest. + * @implements IGetModelEvaluationRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set */ - function UploadModelRequest(properties) { + function GetModelEvaluationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245407,88 +248879,75 @@ } /** - * UploadModelRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parent = ""; - - /** - * UploadModelRequest model. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * GetModelEvaluationRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @instance */ - UploadModelRequest.prototype.model = null; + GetModelEvaluationRequest.prototype.name = ""; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest instance */ - UploadModelRequest.create = function create(properties) { - return new UploadModelRequest(properties); + GetModelEvaluationRequest.create = function create(properties) { + return new GetModelEvaluationRequest(properties); }; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encode = function encode(message, writer) { + GetModelEvaluationRequest.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.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, 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); return writer; }; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decode = function decode(reader, length) { + GetModelEvaluationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -245499,121 +248958,111 @@ }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelRequest message. + * Verifies a GetModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelRequest.verify = function verify(message) { + GetModelEvaluationRequest.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.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); - if (error) - return "model." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest */ - UploadModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelRequest) + GetModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelRequest} message UploadModelRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} message GetModelEvaluationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelRequest.toObject = function toObject(message, options) { + GetModelEvaluationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.model = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UploadModelRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest * @instance * @returns {Object.} JSON object */ - UploadModelRequest.prototype.toJSON = function toJSON() { + GetModelEvaluationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UploadModelRequest; + return GetModelEvaluationRequest; })(); - v1beta1.UploadModelOperationMetadata = (function() { + v1beta1.ListModelEvaluationsRequest = (function() { /** - * Properties of an UploadModelOperationMetadata. + * Properties of a ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata + * @interface IListModelEvaluationsRequest + * @property {string|null} [parent] ListModelEvaluationsRequest parent + * @property {string|null} [filter] ListModelEvaluationsRequest filter + * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask */ /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelOperationMetadata. - * @implements IUploadModelOperationMetadata + * @classdesc Represents a ListModelEvaluationsRequest. + * @implements IListModelEvaluationsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set */ - function UploadModelOperationMetadata(properties) { + function ListModelEvaluationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245621,75 +249070,127 @@ } /** - * UploadModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * ListModelEvaluationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @instance */ - UploadModelOperationMetadata.prototype.genericMetadata = null; + ListModelEvaluationsRequest.prototype.parent = ""; /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * ListModelEvaluationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.filter = ""; + + /** + * ListModelEvaluationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageSize = 0; + + /** + * ListModelEvaluationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageToken = ""; + + /** + * ListModelEvaluationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance */ - UploadModelOperationMetadata.create = function create(properties) { - return new UploadModelOperationMetadata(properties); + ListModelEvaluationsRequest.create = function create(properties) { + return new ListModelEvaluationsRequest(properties); }; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encode = function encode(message, writer) { + ListModelEvaluationsRequest.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 UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decode = function decode(reader, length) { + ListModelEvaluationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); 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); @@ -245700,112 +249201,147 @@ }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a ListModelEvaluationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelOperationMetadata.verify = function verify(message) { + ListModelEvaluationsRequest.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 UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest */ - UploadModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata) + ListModelEvaluationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); + 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.ListModelEvaluationsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata} message UploadModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelOperationMetadata.toObject = function toObject(message, options) { + ListModelEvaluationsRequest.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 UploadModelOperationMetadata to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest * @instance * @returns {Object.} JSON object */ - UploadModelOperationMetadata.prototype.toJSON = function toJSON() { + ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UploadModelOperationMetadata; + return ListModelEvaluationsRequest; })(); - v1beta1.UploadModelResponse = (function() { + v1beta1.ListModelEvaluationsResponse = (function() { /** - * Properties of an UploadModelResponse. + * Properties of a ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUploadModelResponse - * @property {string|null} [model] UploadModelResponse model + * @interface IListModelEvaluationsResponse + * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations + * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken */ /** - * Constructs a new UploadModelResponse. + * Constructs a new ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UploadModelResponse. - * @implements IUploadModelResponse + * @classdesc Represents a ListModelEvaluationsResponse. + * @implements IListModelEvaluationsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set */ - function UploadModelResponse(properties) { + function ListModelEvaluationsResponse(properties) { + this.modelEvaluations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245813,75 +249349,91 @@ } /** - * UploadModelResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * ListModelEvaluationsResponse modelEvaluations. + * @member {Array.} modelEvaluations + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @instance */ - UploadModelResponse.prototype.model = ""; + ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; /** - * Creates a new UploadModelResponse instance using the specified properties. + * ListModelEvaluationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse + * @instance + */ + ListModelEvaluationsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance */ - UploadModelResponse.create = function create(properties) { - return new UploadModelResponse(properties); + ListModelEvaluationsResponse.create = function create(properties) { + return new ListModelEvaluationsResponse(properties); }; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encode = function encode(message, writer) { + ListModelEvaluationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelEvaluations != null && message.modelEvaluations.length) + for (var i = 0; i < message.modelEvaluations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluations[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 UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UploadModelResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decode = function decode(reader, length) { + ListModelEvaluationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.model = reader.string(); + if (!(message.modelEvaluations && message.modelEvaluations.length)) + message.modelEvaluations = []; + message.modelEvaluations.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -245892,107 +249444,133 @@ }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelResponse message. + * Verifies a ListModelEvaluationsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelResponse.verify = function verify(message) { + ListModelEvaluationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; + if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { + if (!Array.isArray(message.modelEvaluations)) + return "modelEvaluations: array expected"; + for (var i = 0; i < message.modelEvaluations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluations[i]); + if (error) + return "modelEvaluations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse */ - UploadModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UploadModelResponse) + ListModelEvaluationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UploadModelResponse(); - if (object.model != null) - message.model = String(object.model); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); + if (object.modelEvaluations) { + if (!Array.isArray(object.modelEvaluations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: array expected"); + message.modelEvaluations = []; + for (var i = 0; i < object.modelEvaluations.length; ++i) { + if (typeof object.modelEvaluations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: object expected"); + message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UploadModelResponse} message UploadModelResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelResponse.toObject = function toObject(message, options) { + ListModelEvaluationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluations = []; if (options.defaults) - object.model = ""; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; + object.nextPageToken = ""; + if (message.modelEvaluations && message.modelEvaluations.length) { + object.modelEvaluations = []; + for (var j = 0; j < message.modelEvaluations.length; ++j) + object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UploadModelResponse to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse * @instance * @returns {Object.} JSON object */ - UploadModelResponse.prototype.toJSON = function toJSON() { + ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UploadModelResponse; + return ListModelEvaluationsResponse; })(); - v1beta1.GetModelRequest = (function() { + v1beta1.GetModelEvaluationSliceRequest = (function() { /** - * Properties of a GetModelRequest. + * Properties of a GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelRequest - * @property {string|null} [name] GetModelRequest name + * @interface IGetModelEvaluationSliceRequest + * @property {string|null} [name] GetModelEvaluationSliceRequest name */ /** - * Constructs a new GetModelRequest. + * Constructs a new GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelRequest. - * @implements IGetModelRequest + * @classdesc Represents a GetModelEvaluationSliceRequest. + * @implements IGetModelEvaluationSliceRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set */ - function GetModelRequest(properties) { + function GetModelEvaluationSliceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246000,35 +249578,35 @@ } /** - * GetModelRequest name. + * GetModelEvaluationSliceRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @instance */ - GetModelRequest.prototype.name = ""; + GetModelEvaluationSliceRequest.prototype.name = ""; /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance */ - GetModelRequest.create = function create(properties) { - return new GetModelRequest(properties); + GetModelEvaluationSliceRequest.create = function create(properties) { + return new GetModelEvaluationSliceRequest(properties); }; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelRequest.encode = function encode(message, writer) { + GetModelEvaluationSliceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -246037,33 +249615,33 @@ }; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelRequest} message GetModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelRequest.decode = function decode(reader, length) { + GetModelEvaluationSliceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246079,30 +249657,30 @@ }; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelRequest message. + * Verifies a GetModelEvaluationSliceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelRequest.verify = function verify(message) { + GetModelEvaluationSliceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -246112,32 +249690,32 @@ }; /** - * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelRequest} GetModelRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest */ - GetModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelRequest) + GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelRequest} message GetModelRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelRequest.toObject = function toObject(message, options) { + GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246149,41 +249727,41 @@ }; /** - * Converts this GetModelRequest to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest * @instance * @returns {Object.} JSON object */ - GetModelRequest.prototype.toJSON = function toJSON() { + GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetModelRequest; + return GetModelEvaluationSliceRequest; })(); - v1beta1.ListModelsRequest = (function() { + v1beta1.ListModelEvaluationSlicesRequest = (function() { /** - * Properties of a ListModelsRequest. + * Properties of a ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelsRequest - * @property {string|null} [parent] ListModelsRequest parent - * @property {string|null} [filter] ListModelsRequest filter - * @property {number|null} [pageSize] ListModelsRequest pageSize - * @property {string|null} [pageToken] ListModelsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + * @interface IListModelEvaluationSlicesRequest + * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent + * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter + * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask */ /** - * Constructs a new ListModelsRequest. + * Constructs a new ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelsRequest. - * @implements IListModelsRequest + * @classdesc Represents a ListModelEvaluationSlicesRequest. + * @implements IListModelEvaluationSlicesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set */ - function ListModelsRequest(properties) { + function ListModelEvaluationSlicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246191,67 +249769,67 @@ } /** - * ListModelsRequest parent. + * ListModelEvaluationSlicesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.parent = ""; + ListModelEvaluationSlicesRequest.prototype.parent = ""; /** - * ListModelsRequest filter. + * ListModelEvaluationSlicesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.filter = ""; + ListModelEvaluationSlicesRequest.prototype.filter = ""; /** - * ListModelsRequest pageSize. + * ListModelEvaluationSlicesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.pageSize = 0; + ListModelEvaluationSlicesRequest.prototype.pageSize = 0; /** - * ListModelsRequest pageToken. + * ListModelEvaluationSlicesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.pageToken = ""; + ListModelEvaluationSlicesRequest.prototype.pageToken = ""; /** - * ListModelsRequest readMask. + * ListModelEvaluationSlicesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance */ - ListModelsRequest.prototype.readMask = null; + ListModelEvaluationSlicesRequest.prototype.readMask = null; /** - * Creates a new ListModelsRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance */ - ListModelsRequest.create = function create(properties) { - return new ListModelsRequest(properties); + ListModelEvaluationSlicesRequest.create = function create(properties) { + return new ListModelEvaluationSlicesRequest(properties); }; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encode = function encode(message, writer) { + ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -246268,33 +249846,33 @@ }; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decode = function decode(reader, length) { + ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -246322,30 +249900,30 @@ }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelsRequest message. + * Verifies a ListModelEvaluationSlicesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelsRequest.verify = function verify(message) { + ListModelEvaluationSlicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -246369,17 +249947,17 @@ }; /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest */ - ListModelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsRequest) + ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -246390,22 +249968,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelsRequest} message ListModelsRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelsRequest.toObject = function toObject(message, options) { + ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -246430,269 +250008,39 @@ }; /** - * Converts this ListModelsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelsRequest - * @instance - * @returns {Object.} JSON object - */ - ListModelsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListModelsRequest; - })(); - - v1beta1.ListModelsResponse = (function() { - - /** - * Properties of a ListModelsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelsResponse - * @property {Array.|null} [models] ListModelsResponse models - * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken - */ - - /** - * Constructs a new ListModelsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelsResponse. - * @implements IListModelsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set - */ - function ListModelsResponse(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]]; - } - - /** - * ListModelsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.models = $util.emptyArray; - - /** - * ListModelsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListModelsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse instance - */ - ListModelsResponse.create = function create(properties) { - return new ListModelsResponse(properties); - }; - - /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.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.v1beta1.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 ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListModelsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); - 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.v1beta1.Model.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListModelsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelsResponse.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.v1beta1.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 ListModelsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelsResponse} ListModelsResponse - */ - ListModelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelsResponse.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.v1beta1.ListModelsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.models[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelsResponse} message ListModelsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelsResponse.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.v1beta1.Model.toObject(message.models[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListModelsResponse to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest * @instance * @returns {Object.} JSON object */ - ListModelsResponse.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelsResponse; + return ListModelEvaluationSlicesRequest; })(); - v1beta1.UpdateModelRequest = (function() { + v1beta1.ListModelEvaluationSlicesResponse = (function() { /** - * Properties of an UpdateModelRequest. + * Properties of a ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelRequest - * @property {google.cloud.aiplatform.v1beta1.IModel|null} [model] UpdateModelRequest model - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask + * @interface IListModelEvaluationSlicesResponse + * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices + * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken */ /** - * Constructs a new UpdateModelRequest. + * Constructs a new ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelRequest. - * @implements IUpdateModelRequest + * @classdesc Represents a ListModelEvaluationSlicesResponse. + * @implements IListModelEvaluationSlicesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set */ - function UpdateModelRequest(properties) { + function ListModelEvaluationSlicesResponse(properties) { + this.modelEvaluationSlices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246700,88 +250048,91 @@ } /** - * UpdateModelRequest model. - * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * ListModelEvaluationSlicesResponse modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @instance */ - UpdateModelRequest.prototype.model = null; + ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; /** - * UpdateModelRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * ListModelEvaluationSlicesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @instance */ - UpdateModelRequest.prototype.updateMask = null; + ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance */ - UpdateModelRequest.create = function create(properties) { - return new UpdateModelRequest(properties); + ListModelEvaluationSlicesResponse.create = function create(properties) { + return new ListModelEvaluationSlicesResponse(properties); }; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encode = function encode(message, writer) { + ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1beta1.Model.encode(message.model, 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.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 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 UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decode = function decode(reader, length) { + ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.model = $root.google.cloud.aiplatform.v1beta1.Model.decode(reader, reader.uint32()); + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -246792,126 +250143,148 @@ }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelRequest message. + * Verifies a ListModelEvaluationSlicesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelRequest.verify = function verify(message) { + ListModelEvaluationSlicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.model); - if (error) - return "model." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + 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; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse */ - UpdateModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest) + ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelRequest(); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1beta1.Model.fromObject(object.model); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.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.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelRequest} message UpdateModelRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelRequest.toObject = function toObject(message, options) { + ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.nextPageToken = ""; + 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); } - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.model, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - UpdateModelRequest.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateModelRequest; + return ListModelEvaluationSlicesResponse; })(); - v1beta1.DeleteModelRequest = (function() { + v1beta1.PipelineJob = (function() { /** - * Properties of a DeleteModelRequest. + * Properties of a PipelineJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelRequest - * @property {string|null} [name] DeleteModelRequest name + * @interface IPipelineJob + * @property {string|null} [name] PipelineJob name + * @property {string|null} [displayName] PipelineJob displayName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime + * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec + * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network */ /** - * Constructs a new DeleteModelRequest. + * Constructs a new PipelineJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelRequest. - * @implements IDeleteModelRequest + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set */ - function DeleteModelRequest(properties) { + function PipelineJob(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246919,76 +250292,278 @@ } /** - * DeleteModelRequest name. + * PipelineJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @instance */ - DeleteModelRequest.prototype.name = ""; + PipelineJob.prototype.name = ""; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.displayName = ""; + + /** + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.createTime = null; + + /** + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.startTime = null; + + /** + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.endTime = null; + + /** + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.updateTime = null; + + /** + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineSpec = null; + + /** + * PipelineJob state. + * @member {google.cloud.aiplatform.v1beta1.PipelineState} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.state = 0; + + /** + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.jobDetail = null; + + /** + * PipelineJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.error = null; + + /** + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.labels = $util.emptyObject; + + /** + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.runtimeConfig = null; + + /** + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.encryptionSpec = null; + + /** + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.serviceAccount = ""; + + /** + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.network = ""; + + /** + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob instance */ - DeleteModelRequest.create = function create(properties) { - return new DeleteModelRequest(properties); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encode = function encode(message, writer) { + PipelineJob.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.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).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.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) + $root.google.protobuf.Struct.encode(message.pipelineSpec, 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.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.encode(message.jobDetail, 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.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); return writer; }; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decode = function decode(reader, length) { + PipelineJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(), 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.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 8: + message.state = reader.int32(); + break; + case 9: + message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.decode(reader, reader.uint32()); + break; + case 10: + 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 12: + message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + case 16: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + case 17: + message.serviceAccount = reader.string(); + break; + case 18: + message.network = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -246998,108 +250573,647 @@ }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelRequest message. + * Verifies a PipelineJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelRequest.verify = function verify(message) { + PipelineJob.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.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.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { + var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (error) + return "pipelineSpec." + 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: + break; + } + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify(message.jobDetail); + if (error) + return "jobDetail." + 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.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + 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.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"; return null; }; /** - * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob */ - DeleteModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest) + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.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.PipelineJob.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.PipelineJob.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.PipelineJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.pipelineSpec != null) { + if (typeof object.pipelineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineSpec: object expected"); + message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + } + switch (object.state) { + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.jobDetail != null) { + if (typeof object.jobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.fromObject(object.jobDetail); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.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.PipelineJob.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.runtimeConfig != null) { + if (typeof object.runtimeConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); return message; }; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelRequest} message DeleteModelRequest + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} message PipelineJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelRequest.toObject = function toObject(message, options) { + PipelineJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.pipelineSpec = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.jobDetail = null; + object.error = null; + object.runtimeConfig = null; + object.encryptionSpec = null; + object.serviceAccount = ""; + object.network = ""; + } 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.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.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) + object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.toObject(message.jobDetail, 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.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) + object.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; return object; }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this PipelineJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob * @instance * @returns {Object.} JSON object */ - DeleteModelRequest.prototype.toJSON = function toJSON() { + PipelineJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteModelRequest; + PipelineJob.RuntimeConfig = (function() { + + /** + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues + */ + + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + */ + function RuntimeConfig(properties) { + this.parameters = {}; + this.parameterValues = {}; + 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]]; + } + + /** + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameters = $util.emptyObject; + + /** + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.gcsOutputDirectory = ""; + + /** + * RuntimeConfig parameterValues. + * @member {Object.} parameterValues + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameterValues = $util.emptyObject; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig instance + */ + RuntimeConfig.create = function create(properties) { + return new RuntimeConfig(properties); + }; + + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), 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.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.parameters === $util.emptyObject) + message.parameters = {}; + 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.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + case 2: + message.gcsOutputDirectory = reader.string(); + break; + case 3: + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + 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.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RuntimeConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + return null; + }; + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig + */ + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.parameters[keys[i]]); + } + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} message RuntimeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RuntimeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.parameters = {}; + object.parameterValues = {}; + } + if (options.defaults) + object.gcsOutputDirectory = ""; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + return object; + }; + + /** + * Converts this RuntimeConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + * @instance + * @returns {Object.} JSON object + */ + RuntimeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RuntimeConfig; + })(); + + return PipelineJob; })(); - v1beta1.ExportModelRequest = (function() { + v1beta1.PipelineJobDetail = (function() { /** - * Properties of an ExportModelRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelRequest - * @property {string|null} [name] ExportModelRequest name - * @property {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig + * Properties of a PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails */ /** - * Constructs a new ExportModelRequest. + * Constructs a new PipelineJobDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelRequest. - * @implements IExportModelRequest + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set */ - function ExportModelRequest(properties) { + function PipelineJobDetail(properties) { + this.taskDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247107,88 +251221,104 @@ } /** - * ExportModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance */ - ExportModelRequest.prototype.name = ""; + PipelineJobDetail.prototype.pipelineContext = null; /** - * ExportModelRequest outputConfig. - * @member {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance */ - ExportModelRequest.prototype.outputConfig = null; + PipelineJobDetail.prototype.pipelineRunContext = null; /** - * Creates a new ExportModelRequest instance using the specified properties. + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @instance + */ + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + + /** + * Creates a new PipelineJobDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail instance */ - ExportModelRequest.create = function create(properties) { - return new ExportModelRequest(properties); + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); }; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encode = function encode(message, writer) { + PipelineJobDetail.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.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) - $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) + $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskDetails != null && message.taskDetails.length) + for (var i = 0; i < message.taskDetails.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decode = function decode(reader, length) { + PipelineJobDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); break; case 2: - message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -247199,453 +251329,446 @@ }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelRequest message. + * Verifies a PipelineJobDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelRequest.verify = function verify(message) { + PipelineJobDetail.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.outputConfig != null && message.hasOwnProperty("outputConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineContext); if (error) - return "outputConfig." + error; + return "pipelineContext." + error; + } + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineRunContext); + if (error) + return "pipelineRunContext." + error; + } + if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { + if (!Array.isArray(message.taskDetails)) + return "taskDetails: array expected"; + for (var i = 0; i < message.taskDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify(message.taskDetails[i]); + if (error) + return "taskDetails." + error; + } } return null; }; /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail */ - ExportModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest) + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.outputConfig != null) { - if (typeof object.outputConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.outputConfig: object expected"); - message.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineContext); + } + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineRunContext); + } + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: array expected"); + message.taskDetails = []; + for (var i = 0; i < object.taskDetails.length; ++i) { + if (typeof object.taskDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + } } return message; }; /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest} message ExportModelRequest + * @param {google.cloud.aiplatform.v1beta1.PipelineJobDetail} message PipelineJobDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelRequest.toObject = function toObject(message, options) { + PipelineJobDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.taskDetails = []; if (options.defaults) { - object.name = ""; - object.outputConfig = null; + object.pipelineContext = null; + object.pipelineRunContext = null; + } + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) + object.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineRunContext, options); + if (message.taskDetails && message.taskDetails.length) { + object.taskDetails = []; + for (var j = 0; j < message.taskDetails.length; ++j) + object.taskDetails[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.toObject(message.taskDetails[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) - object.outputConfig = $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); return object; }; /** - * Converts this ExportModelRequest to JSON. + * Converts this PipelineJobDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail * @instance * @returns {Object.} JSON object */ - ExportModelRequest.prototype.toJSON = function toJSON() { + PipelineJobDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ExportModelRequest.OutputConfig = (function() { - - /** - * Properties of an OutputConfig. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest - * @interface IOutputConfig - * @property {string|null} [exportFormatId] OutputConfig exportFormatId - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination - * @property {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination - */ - - /** - * Constructs a new OutputConfig. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest - * @classdesc Represents an OutputConfig. - * @implements IOutputConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - */ - function OutputConfig(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]]; - } - - /** - * OutputConfig exportFormatId. - * @member {string} exportFormatId - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.exportFormatId = ""; - - /** - * OutputConfig artifactDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} artifactDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.artifactDestination = null; - - /** - * OutputConfig imageDestination. - * @member {google.cloud.aiplatform.v1beta1.IContainerRegistryDestination|null|undefined} imageDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.imageDestination = null; + return PipelineJobDetail; + })(); - /** - * Creates a new OutputConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig instance - */ - OutputConfig.create = function create(properties) { - return new OutputConfig(properties); - }; + v1beta1.PipelineTaskDetail = (function() { - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); - if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) - $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Properties of a PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPipelineTaskDetail + * @property {number|Long|null} [taskId] PipelineTaskDetail taskId + * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId + * @property {string|null} [taskName] PipelineTaskDetail taskName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime + * @property {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs + */ - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set + */ + function PipelineTaskDetail(properties) { + this.pipelineTaskStatus = []; + this.inputs = {}; + this.outputs = {}; + 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 OutputConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exportFormatId = reader.string(); - break; - case 3: - message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - case 4: - message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Verifies an OutputConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - if (!$util.isString(message.exportFormatId)) - return "exportFormatId: string expected"; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.artifactDestination); - if (error) - return "artifactDestination." + error; - } - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { - var error = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify(message.imageDestination); - if (error) - return "imageDestination." + error; - } - return null; - }; + /** + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskName = ""; - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} OutputConfig - */ - OutputConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(); - if (object.exportFormatId != null) - message.exportFormatId = String(object.exportFormatId); - if (object.artifactDestination != null) { - if (typeof object.artifactDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); - message.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.artifactDestination); - } - if (object.imageDestination != null) { - if (typeof object.imageDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.imageDestination: object expected"); - message.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.fromObject(object.imageDestination); - } - return message; - }; + /** + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.createTime = null; - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig} message OutputConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exportFormatId = ""; - object.artifactDestination = null; - object.imageDestination = null; - } - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - object.exportFormatId = message.exportFormatId; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) - object.artifactDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.artifactDestination, options); - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) - object.imageDestination = $root.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.toObject(message.imageDestination, options); - return object; - }; + /** + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.startTime = null; - /** - * Converts this OutputConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig - * @instance - * @returns {Object.} JSON object - */ - OutputConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.endTime = null; - return OutputConfig; - })(); + /** + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.executorDetail = null; - return ExportModelRequest; - })(); + /** + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.state = 0; - v1beta1.ExportModelOperationMetadata = (function() { + /** + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.execution = null; /** - * Properties of an ExportModelOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ + PipelineTaskDetail.prototype.error = null; /** - * Constructs a new ExportModelOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelOperationMetadata. - * @implements IExportModelOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set + * PipelineTaskDetail pipelineTaskStatus. + * @member {Array.} pipelineTaskStatus + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @instance */ - function ExportModelOperationMetadata(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]]; - } + PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; /** - * ExportModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance */ - ExportModelOperationMetadata.prototype.genericMetadata = null; + PipelineTaskDetail.prototype.inputs = $util.emptyObject; /** - * ExportModelOperationMetadata outputInfo. - * @member {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance */ - ExportModelOperationMetadata.prototype.outputInfo = null; + PipelineTaskDetail.prototype.outputs = $util.emptyObject; /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail instance */ - ExportModelOperationMetadata.create = function create(properties) { - return new ExportModelOperationMetadata(properties); + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); }; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encode = function encode(message, writer) { + PipelineTaskDetail.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.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) - $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + 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.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) + for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); + if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decode = function decode(reader, length) { + PipelineTaskDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(), key, value; 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.taskId = reader.int64(); + break; + case 12: + message.parentTaskId = reader.int64(); break; case 2: - message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); + message.taskName = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + case 7: + message.state = reader.int32(); + break; + case 8: + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); + break; + case 9: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 13: + if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) + message.pipelineTaskStatus = []; + message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + break; + case 10: + if (message.inputs === $util.emptyObject) + message.inputs = {}; + 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputs[key] = value; + break; + case 11: + if (message.outputs === $util.emptyObject) + message.outputs = {}; + 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.outputs[key] = value; break; default: reader.skipType(tag & 7); @@ -247656,124 +251779,371 @@ }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies a PipelineTaskDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelOperationMetadata.verify = function verify(message) { + PipelineTaskDetail.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.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) + return "parentTaskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "genericMetadata." + error; + return "createTime." + error; } - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "outputInfo." + 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.executorDetail != null && message.hasOwnProperty("executorDetail")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (error) + return "executorDetail." + 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: + break; + } + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { + if (!Array.isArray(message.pipelineTaskStatus)) + return "pipelineTaskStatus: array expected"; + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); + if (error) + return "pipelineTaskStatus." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!$util.isObject(message.inputs)) + return "inputs: object expected"; + var key = Object.keys(message.inputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); + if (error) + return "inputs." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!$util.isObject(message.outputs)) + return "outputs: object expected"; + var key = Object.keys(message.outputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; + } } return null; }; /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail */ - ExportModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata) + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.parentTaskId != null) + if ($util.Long) + (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; + else if (typeof object.parentTaskId === "string") + message.parentTaskId = parseInt(object.parentTaskId, 10); + else if (typeof object.parentTaskId === "number") + message.parentTaskId = object.parentTaskId; + else if (typeof object.parentTaskId === "object") + message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.outputInfo != null) { - if (typeof object.outputInfo !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.outputInfo: object expected"); - message.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.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.PipelineTaskDetail.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.executorDetail != null) { + if (typeof object.executorDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.pipelineTaskStatus) { + if (!Array.isArray(object.pipelineTaskStatus)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: array expected"); + message.pipelineTaskStatus = []; + for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { + if (typeof object.pipelineTaskStatus[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: object expected"); + message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); + } + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); + message.inputs = {}; + for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { + if (typeof object.inputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); + } + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); + message.outputs = {}; + for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { + if (typeof object.outputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); + } } return message; }; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata} message ExportModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} message PipelineTaskDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelOperationMetadata.toObject = function toObject(message, options) { + PipelineTaskDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pipelineTaskStatus = []; + if (options.objects || options.defaults) { + object.inputs = {}; + object.outputs = {}; + } if (options.defaults) { - object.genericMetadata = null; - object.outputInfo = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.executorDetail = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.execution = null; + object.error = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parentTaskId = options.longs === String ? "0" : 0; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + 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.executorDetail != null && message.hasOwnProperty("executorDetail")) + object.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { + object.inputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); + } + if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { + object.outputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + } + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (typeof message.parentTaskId === "number") + object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; + else + object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; + if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { + object.pipelineTaskStatus = []; + for (var j = 0; j < message.pipelineTaskStatus.length; ++j) + object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) - object.outputInfo = $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); return object; }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this PipelineTaskDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail * @instance * @returns {Object.} JSON object */ - ExportModelOperationMetadata.prototype.toJSON = function toJSON() { + PipelineTaskDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ExportModelOperationMetadata.OutputInfo = (function() { + PipelineTaskDetail.PipelineTaskStatus = (function() { /** - * Properties of an OutputInfo. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata - * @interface IOutputInfo - * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri - * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri + * Properties of a PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @interface IPipelineTaskStatus + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state + * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error */ /** - * Constructs a new OutputInfo. - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata - * @classdesc Represents an OutputInfo. - * @implements IOutputInfo + * Constructs a new PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @classdesc Represents a PipelineTaskStatus. + * @implements IPipelineTaskStatus * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set */ - function OutputInfo(properties) { + function PipelineTaskStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247781,88 +252151,101 @@ } /** - * OutputInfo artifactOutputUri. - * @member {string} artifactOutputUri - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * PipelineTaskStatus updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @instance */ - OutputInfo.prototype.artifactOutputUri = ""; + PipelineTaskStatus.prototype.updateTime = null; /** - * OutputInfo imageOutputUri. - * @member {string} imageOutputUri - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * PipelineTaskStatus state. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @instance */ - OutputInfo.prototype.imageOutputUri = ""; + PipelineTaskStatus.prototype.state = 0; /** - * Creates a new OutputInfo instance using the specified properties. + * PipelineTaskStatus error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.error = null; + + /** + * Creates a new PipelineTaskStatus instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance */ - OutputInfo.create = function create(properties) { - return new OutputInfo(properties); + PipelineTaskStatus.create = function create(properties) { + return new PipelineTaskStatus(properties); }; /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputInfo.encode = function encode(message, writer) { + PipelineTaskStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); - if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputInfo message from the specified reader or buffer. + * Decodes a PipelineTaskStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputInfo.decode = function decode(reader, length) { + PipelineTaskStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; case 2: - message.artifactOutputUri = reader.string(); + message.state = reader.int32(); break; case 3: - message.imageOutputUri = reader.string(); + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -247873,685 +252256,429 @@ }; /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputInfo.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputInfo message. + * Verifies a PipelineTaskStatus message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OutputInfo.verify = function verify(message) { + PipelineTaskStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - if (!$util.isString(message.artifactOutputUri)) - return "artifactOutputUri: string expected"; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - if (!$util.isString(message.imageOutputUri)) - return "imageOutputUri: 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.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: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } return null; }; /** - * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus */ - OutputInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo) + PipelineTaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(); - if (object.artifactOutputUri != null) - message.artifactOutputUri = String(object.artifactOutputUri); - if (object.imageOutputUri != null) - message.imageOutputUri = String(object.imageOutputUri); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } return message; }; /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo} message OutputInfo + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputInfo.toObject = function toObject(message, options) { + PipelineTaskStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.artifactOutputUri = ""; - object.imageOutputUri = ""; + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; } - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - object.artifactOutputUri = message.artifactOutputUri; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - object.imageOutputUri = message.imageOutputUri; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); return object; }; /** - * Converts this OutputInfo to JSON. + * Converts this PipelineTaskStatus to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus * @instance * @returns {Object.} JSON object */ - OutputInfo.prototype.toJSON = function toJSON() { + PipelineTaskStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OutputInfo; + return PipelineTaskStatus; })(); - return ExportModelOperationMetadata; - })(); - - v1beta1.ExportModelResponse = (function() { - - /** - * Properties of an ExportModelResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportModelResponse - */ - - /** - * Constructs a new ExportModelResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportModelResponse. - * @implements IExportModelResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set - */ - function ExportModelResponse(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 ExportModelResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse instance - */ - ExportModelResponse.create = function create(properties) { - return new ExportModelResponse(properties); - }; - - /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportModelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + PipelineTaskDetail.ArtifactList = (function() { - /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportModelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IExportModelResponse} message ExportModelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ - /** - * Decodes an ExportModelResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportModelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + 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 an ExportModelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExportModelResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExportModelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportModelResponse} ExportModelResponse - */ - ExportModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportModelResponse) - return object; - return new $root.google.cloud.aiplatform.v1beta1.ExportModelResponse(); - }; - - /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportModelResponse} message ExportModelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExportModelResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ExportModelResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportModelResponse - * @instance - * @returns {Object.} JSON object - */ - ExportModelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExportModelResponse; - })(); - - v1beta1.ImportModelEvaluationRequest = (function() { - - /** - * Properties of an ImportModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportModelEvaluationRequest - * @property {string|null} [parent] ImportModelEvaluationRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation - */ - - /** - * Constructs a new ImportModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportModelEvaluationRequest. - * @implements IImportModelEvaluationRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set - */ - function ImportModelEvaluationRequest(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]]; - } - - /** - * ImportModelEvaluationRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @instance - */ - ImportModelEvaluationRequest.prototype.parent = ""; - /** - * ImportModelEvaluationRequest modelEvaluation. - * @member {google.cloud.aiplatform.v1beta1.IModelEvaluation|null|undefined} modelEvaluation - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @instance - */ - ImportModelEvaluationRequest.prototype.modelEvaluation = null; + /** + * ArtifactList artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; - /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance - */ - ImportModelEvaluationRequest.create = function create(properties) { - return new ImportModelEvaluationRequest(properties); - }; + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; - /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportModelEvaluationRequest.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.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportModelEvaluationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; - - /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImportModelEvaluationRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportModelEvaluationRequest.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.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluation); - if (error) - return "modelEvaluation." + error; - } - return null; - }; - - /** - * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} ImportModelEvaluationRequest - */ - ImportModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluation != null) { - if (typeof object.modelEvaluation !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest.modelEvaluation: object expected"); - message.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluation); - } - return message; - }; - - /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportModelEvaluationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelEvaluation = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) - object.modelEvaluation = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluation, options); - return object; - }; - - /** - * Converts this ImportModelEvaluationRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest - * @instance - * @returns {Object.} JSON object - */ - ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ImportModelEvaluationRequest; - })(); - - v1beta1.GetModelEvaluationRequest = (function() { - - /** - * Properties of a GetModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelEvaluationRequest - * @property {string|null} [name] GetModelEvaluationRequest name - */ - - /** - * Constructs a new GetModelEvaluationRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelEvaluationRequest. - * @implements IGetModelEvaluationRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set - */ - function GetModelEvaluationRequest(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]]; - } - - /** - * GetModelEvaluationRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @instance - */ - GetModelEvaluationRequest.prototype.name = ""; - - /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest instance - */ - GetModelEvaluationRequest.create = function create(properties) { - return new GetModelEvaluationRequest(properties); - }; - - /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.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; - }; + return message; + }; - /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } } - } - return message; - }; - - /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a GetModelEvaluationRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelEvaluationRequest.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 ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); + } + } + return message; + }; - /** - * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} GetModelEvaluationRequest - */ - GetModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest) + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest} message GetModelEvaluationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelEvaluationRequest.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 ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + * @instance + * @returns {Object.} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ArtifactList; + })(); /** - * Converts this GetModelEvaluationRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest - * @instance - * @returns {Object.} JSON object + * State enum. + * @name google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value + * @property {number} CANCELLING=5 CANCELLING value + * @property {number} CANCELLED=6 CANCELLED value + * @property {number} FAILED=7 FAILED value + * @property {number} SKIPPED=8 SKIPPED value + * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value */ - GetModelEvaluationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + PipelineTaskDetail.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "CANCEL_PENDING"] = 4; + values[valuesById[5] = "CANCELLING"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + values[valuesById[7] = "FAILED"] = 7; + values[valuesById[8] = "SKIPPED"] = 8; + values[valuesById[9] = "NOT_TRIGGERED"] = 9; + return values; + })(); - return GetModelEvaluationRequest; + return PipelineTaskDetail; })(); - v1beta1.ListModelEvaluationsRequest = (function() { + v1beta1.PipelineTaskExecutorDetail = (function() { /** - * Properties of a ListModelEvaluationsRequest. + * Properties of a PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationsRequest - * @property {string|null} [parent] ListModelEvaluationsRequest parent - * @property {string|null} [filter] ListModelEvaluationsRequest filter - * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail */ /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationsRequest. - * @implements IListModelEvaluationsRequest + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set */ - function ListModelEvaluationsRequest(properties) { + function PipelineTaskExecutorDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248559,127 +252686,102 @@ } /** - * ListModelEvaluationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.parent = ""; - - /** - * ListModelEvaluationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.filter = ""; + PipelineTaskExecutorDetail.prototype.containerDetail = null; /** - * ListModelEvaluationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.pageSize = 0; + PipelineTaskExecutorDetail.prototype.customJobDetail = null; - /** - * ListModelEvaluationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageToken = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListModelEvaluationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance */ - ListModelEvaluationsRequest.prototype.readMask = null; + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance */ - ListModelEvaluationsRequest.create = function create(properties) { - return new ListModelEvaluationsRequest(properties); + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); }; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encode = function encode(message, writer) { + PipelineTaskExecutorDetail.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.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decode = function decode(reader, length) { + PipelineTaskExecutorDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); 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.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -248690,567 +252792,564 @@ }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a PipelineTaskExecutorDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsRequest.verify = function verify(message) { + PipelineTaskExecutorDetail.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; + var properties = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); + if (error) + return "containerDetail." + error; + } + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + if (properties.details === 1) + return "details: multiple values"; + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; + } } return null; }; /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail */ - ListModelEvaluationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest) + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(); - 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.ListModelEvaluationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); } return message; }; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsRequest.toObject = function toObject(message, options) { + PipelineTaskExecutorDetail.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.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); + if (options.oneofs) + object.details = "containerDetail"; + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + object.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; } - 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 ListModelEvaluationsRequest to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelEvaluationsRequest; - })(); - - v1beta1.ListModelEvaluationsResponse = (function() { + PipelineTaskExecutorDetail.ContainerDetail = (function() { - /** - * Properties of a ListModelEvaluationsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationsResponse - * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations - * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken - */ + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + */ - /** - * Constructs a new ListModelEvaluationsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationsResponse. - * @implements IListModelEvaluationsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set - */ - function ListModelEvaluationsResponse(properties) { - this.modelEvaluations = []; - 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 ContainerDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + */ + function ContainerDetail(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]]; + } - /** - * ListModelEvaluationsResponse modelEvaluations. - * @member {Array.} modelEvaluations - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @instance - */ - ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; + /** + * ContainerDetail mainJob. + * @member {string} mainJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; - /** - * ListModelEvaluationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @instance - */ - ListModelEvaluationsResponse.prototype.nextPageToken = ""; + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; - /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance - */ - ListModelEvaluationsResponse.create = function create(properties) { - return new ListModelEvaluationsResponse(properties); - }; + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance + */ + ContainerDetail.create = function create(properties) { + return new ContainerDetail(properties); + }; - /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelEvaluations != null && message.modelEvaluations.length) - for (var i = 0; i < message.modelEvaluations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.encode(message.modelEvaluations[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 ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); + if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); + return writer; + }; - /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.modelEvaluations && message.modelEvaluations.length)) - message.modelEvaluations = []; - message.modelEvaluations.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluation.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mainJob = reader.string(); + break; + case 2: + message.preCachingCheckJob = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListModelEvaluationsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelEvaluationsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { - if (!Array.isArray(message.modelEvaluations)) - return "modelEvaluations: array expected"; - for (var i = 0; i < message.modelEvaluations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.verify(message.modelEvaluations[i]); - if (error) - return "modelEvaluations." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + /** + * Verifies a ContainerDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + if (!$util.isString(message.mainJob)) + return "mainJob: string expected"; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + if (!$util.isString(message.preCachingCheckJob)) + return "preCachingCheckJob: string expected"; + return null; + }; - /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - */ - ListModelEvaluationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(); - if (object.modelEvaluations) { - if (!Array.isArray(object.modelEvaluations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: array expected"); - message.modelEvaluations = []; - for (var i = 0; i < object.modelEvaluations.length; ++i) { - if (typeof object.modelEvaluations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.modelEvaluations: object expected"); - message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.fromObject(object.modelEvaluations[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); + if (object.mainJob != null) + message.mainJob = String(object.mainJob); + if (object.preCachingCheckJob != null) + message.preCachingCheckJob = String(object.preCachingCheckJob); + return message; + }; - /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelEvaluationsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluations && message.modelEvaluations.length) { - object.modelEvaluations = []; - for (var j = 0; j < message.modelEvaluations.length; ++j) - object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluation.toObject(message.modelEvaluations[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainerDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.mainJob = ""; + object.preCachingCheckJob = ""; + } + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + object.mainJob = message.mainJob; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + object.preCachingCheckJob = message.preCachingCheckJob; + return object; + }; - /** - * Converts this ListModelEvaluationsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse - * @instance - * @returns {Object.} JSON object - */ - ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ContainerDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + * @returns {Object.} JSON object + */ + ContainerDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListModelEvaluationsResponse; - })(); + return ContainerDetail; + })(); - v1beta1.GetModelEvaluationSliceRequest = (function() { + PipelineTaskExecutorDetail.CustomJobDetail = (function() { - /** - * Properties of a GetModelEvaluationSliceRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelEvaluationSliceRequest - * @property {string|null} [name] GetModelEvaluationSliceRequest name - */ + /** + * Properties of a CustomJobDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + */ - /** - * Constructs a new GetModelEvaluationSliceRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelEvaluationSliceRequest. - * @implements IGetModelEvaluationSliceRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - */ - function GetModelEvaluationSliceRequest(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]]; - } + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + */ + function CustomJobDetail(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]]; + } - /** - * GetModelEvaluationSliceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @instance - */ - GetModelEvaluationSliceRequest.prototype.name = ""; + /** + * CustomJobDetail job. + * @member {string} job + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; - /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance - */ - GetModelEvaluationSliceRequest.create = function create(properties) { - return new GetModelEvaluationSliceRequest(properties); - }; + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + */ + CustomJobDetail.create = function create(properties) { + return new CustomJobDetail(properties); + }; - /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationSliceRequest.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 CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + return writer; + }; - /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationSliceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.job = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetModelEvaluationSliceRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelEvaluationSliceRequest.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; - }; + /** + * Verifies a CustomJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomJobDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.job != null && message.hasOwnProperty("job")) + if (!$util.isString(message.job)) + return "job: string expected"; + return null; + }; - /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest - */ - GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); + if (object.job != null) + message.job = String(object.job); + return message; + }; - /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelEvaluationSliceRequest.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; - }; + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomJobDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.job = ""; + if (message.job != null && message.hasOwnProperty("job")) + object.job = message.job; + return object; + }; - /** - * Converts this GetModelEvaluationSliceRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest - * @instance - * @returns {Object.} JSON object - */ - GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this CustomJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GetModelEvaluationSliceRequest; + return CustomJobDetail; + })(); + + return PipelineTaskExecutorDetail; })(); - v1beta1.ListModelEvaluationSlicesRequest = (function() { + /** + * PipelineState enum. + * @name google.cloud.aiplatform.v1beta1.PipelineState + * @enum {number} + * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value + * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value + * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value + * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value + * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value + * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value + * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value + * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value + * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value + */ + v1beta1.PipelineState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; + values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; + values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; + values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; + values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; + values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; + values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; + values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; + return values; + })(); + + v1beta1.Value = (function() { /** - * Properties of a ListModelEvaluationSlicesRequest. + * Properties of a Value. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationSlicesRequest - * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent - * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter - * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + * @interface IValue + * @property {number|Long|null} [intValue] Value intValue + * @property {number|null} [doubleValue] Value doubleValue + * @property {string|null} [stringValue] Value stringValue */ /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new Value. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationSlicesRequest. - * @implements IListModelEvaluationSlicesRequest + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set */ - function ListModelEvaluationSlicesRequest(properties) { + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249258,127 +253357,115 @@ } /** - * ListModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationSlicesRequest.prototype.parent = ""; + Value.prototype.intValue = null; /** - * ListModelEvaluationSlicesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationSlicesRequest.prototype.filter = ""; + Value.prototype.doubleValue = null; /** - * ListModelEvaluationSlicesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageSize = 0; + Value.prototype.stringValue = null; - /** - * ListModelEvaluationSlicesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest - * @instance - */ - ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListModelEvaluationSlicesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * Value value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance */ - ListModelEvaluationSlicesRequest.prototype.readMask = null; + Object.defineProperty(Value.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Value} Value instance */ - ListModelEvaluationSlicesRequest.create = function create(properties) { - return new ListModelEvaluationSlicesRequest(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + Value.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.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.intValue = reader.int64(); break; case 2: - message.filter = reader.string(); + message.doubleValue = reader.double(); 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.stringValue = reader.string(); break; default: reader.skipType(tag & 7); @@ -249389,669 +253476,604 @@ }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a Value message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesRequest.verify = function verify(message) { + Value.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; + var properties = {}; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long 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.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"; } return null; }; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1beta1.Value} Value */ - ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Value) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(); - 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.ListModelEvaluationSlicesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.Value(); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1beta1.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + Value.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.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + 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.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; } - 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 ListModelEvaluationSlicesRequest to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1beta1.Value * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelEvaluationSlicesRequest; + return Value; })(); - v1beta1.ListModelEvaluationSlicesResponse = (function() { + v1beta1.PipelineService = (function() { /** - * Properties of a ListModelEvaluationSlicesResponse. + * Constructs a new PipelineService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelEvaluationSlicesResponse - * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices - * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken + * @classdesc Represents a PipelineService + * @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 PipelineService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; /** - * Constructs a new ListModelEvaluationSlicesResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelEvaluationSlicesResponse. - * @implements IListModelEvaluationSlicesResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * Creates new PipelineService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @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 {PipelineService} RPC service. Useful where requests and/or responses are streamed. */ - function ListModelEvaluationSlicesResponse(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]]; - } + PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListModelEvaluationSlicesResponse modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline + */ + + /** + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; + Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { + return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); /** - * ListModelEvaluationSlicesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline */ - ListModelEvaluationSlicesResponse.create = function create(properties) { - return new ListModelEvaluationSlicesResponse(properties); - }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - 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 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(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse - * @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.PipelineService#listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse */ - ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 */ - ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); /** - * Verifies a ListModelEvaluationSlicesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelEvaluationSlicesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object 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; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.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.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; - if (options.defaults) - object.nextPageToken = ""; - 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); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); /** - * Converts this ListModelEvaluationSlicesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListModelEvaluationSlicesResponse; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - v1beta1.PipelineJob = (function() { + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { + return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); /** - * Properties of a PipelineJob. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineJob - * @property {string|null} [name] PipelineJob name - * @property {string|null} [displayName] PipelineJob displayName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime - * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec - * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] PipelineJob state - * @property {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail - * @property {google.rpc.IStatus|null} [error] PipelineJob error - * @property {Object.|null} [labels] PipelineJob labels - * @property {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec - * @property {string|null} [serviceAccount] PipelineJob serviceAccount - * @property {string|null} [network] PipelineJob network + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new PipelineJob. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineJob. - * @implements IPipelineJob - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob */ - function PipelineJob(properties) { - 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]]; - } /** - * PipelineJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 */ - PipelineJob.prototype.name = ""; + Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { + return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); /** - * PipelineJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PipelineJob.prototype.displayName = ""; /** - * PipelineJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob */ - PipelineJob.prototype.createTime = null; /** - * PipelineJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 */ - PipelineJob.prototype.startTime = null; + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); /** - * PipelineJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PipelineJob.prototype.endTime = null; /** - * PipelineJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse */ - PipelineJob.prototype.updateTime = null; /** - * PipelineJob pipelineSpec. - * @member {google.protobuf.IStruct|null|undefined} pipelineSpec - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 */ - PipelineJob.prototype.pipelineSpec = null; + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); /** - * PipelineJob state. - * @member {google.cloud.aiplatform.v1beta1.PipelineState} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PipelineJob.prototype.state = 0; /** - * PipelineJob jobDetail. - * @member {google.cloud.aiplatform.v1beta1.IPipelineJobDetail|null|undefined} jobDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - PipelineJob.prototype.jobDetail = null; /** - * PipelineJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - PipelineJob.prototype.error = null; + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); /** - * PipelineJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PipelineJob.prototype.labels = $util.emptyObject; /** - * PipelineJob runtimeConfig. - * @member {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef CancelPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - PipelineJob.prototype.runtimeConfig = null; + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); /** - * PipelineJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1beta1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PipelineJob.prototype.encryptionSpec = null; + + return PipelineService; + })(); + + v1beta1.CreateTrainingPipelineRequest = (function() { /** - * PipelineJob serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * Properties of a CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + */ + + /** + * Constructs a new CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set + */ + function CreateTrainingPipelineRequest(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]]; + } + + /** + * CreateTrainingPipelineRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance */ - PipelineJob.prototype.serviceAccount = ""; + CreateTrainingPipelineRequest.prototype.parent = ""; /** - * PipelineJob network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance */ - PipelineJob.prototype.network = ""; + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob instance + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance */ - PipelineJob.create = function create(properties) { - return new PipelineJob(properties); + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); }; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encode = function encode(message, writer) { + CreateTrainingPipelineRequest.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.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).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.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) - $root.google.protobuf.Struct.encode(message.pipelineSpec, 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.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.encode(message.jobDetail, 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.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineJob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(), 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.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 8: - message.state = reader.int32(); - break; - case 9: - message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.decode(reader, reader.uint32()); - break; - case 10: - 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 12: - message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); - break; - case 16: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - case 17: - message.serviceAccount = reader.string(); + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTrainingPipelineRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); break; - case 18: - message.network = reader.string(); + case 2: + message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -250062,647 +254084,121 @@ }; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decodeDelimited = function decodeDelimited(reader) { + CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJob message. + * Verifies a CreateTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.verify = function verify(message) { + CreateTrainingPipelineRequest.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.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.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { - var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); - if (error) - return "pipelineSpec." + 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: - break; - } - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify(message.jobDetail); - if (error) - return "jobDetail." + 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.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); - if (error) - return "runtimeConfig." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipeline); if (error) - return "encryptionSpec." + error; + return "trainingPipeline." + 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"; return null; }; /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest */ - PipelineJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob) + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.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.PipelineJob.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.PipelineJob.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.PipelineJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.pipelineSpec != null) { - if (typeof object.pipelineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineSpec: object expected"); - message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); - } - switch (object.state) { - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.jobDetail != null) { - if (typeof object.jobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.jobDetail: object expected"); - message.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.fromObject(object.jobDetail); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.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.PipelineJob.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.runtimeConfig != null) { - if (typeof object.runtimeConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.runtimeConfig: object expected"); - message.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipeline); } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); return message; }; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} message PipelineJob + * @param {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJob.toObject = function toObject(message, options) { + CreateTrainingPipelineRequest.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.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.pipelineSpec = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.jobDetail = null; - object.error = null; - object.runtimeConfig = null; - object.encryptionSpec = null; - object.serviceAccount = ""; - object.network = ""; - } - 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.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.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) - object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) - object.jobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail.toObject(message.jobDetail, 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]]; + object.parent = ""; + object.trainingPipeline = null; } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) - object.runtimeConfig = $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, 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.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this PipelineJob to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - PipelineJob.prototype.toJSON = function toJSON() { + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PipelineJob.RuntimeConfig = (function() { - - /** - * Properties of a RuntimeConfig. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @interface IRuntimeConfig - * @property {Object.|null} [parameters] RuntimeConfig parameters - * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory - * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues - */ - - /** - * Constructs a new RuntimeConfig. - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob - * @classdesc Represents a RuntimeConfig. - * @implements IRuntimeConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - */ - function RuntimeConfig(properties) { - this.parameters = {}; - this.parameterValues = {}; - 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]]; - } - - /** - * RuntimeConfig parameters. - * @member {Object.} parameters - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameters = $util.emptyObject; - - /** - * RuntimeConfig gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.gcsOutputDirectory = ""; - - /** - * RuntimeConfig parameterValues. - * @member {Object.} parameterValues - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameterValues = $util.emptyObject; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig instance - */ - RuntimeConfig.create = function create(properties) { - return new RuntimeConfig(properties); - }; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), 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.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); - if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) - for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.parameters === $util.emptyObject) - message.parameters = {}; - 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.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - case 2: - message.gcsOutputDirectory = reader.string(); - break; - case 3: - if (message.parameterValues === $util.emptyObject) - message.parameterValues = {}; - 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.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameterValues[key] = value; - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RuntimeConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { - if (!$util.isObject(message.parameterValues)) - return "parameterValues: object expected"; - var key = Object.keys(message.parameterValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); - if (error) - return "parameterValues." + error; - } - } - return null; - }; - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} RuntimeConfig - */ - RuntimeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.parameters[keys[i]]); - } - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - if (object.parameterValues) { - if (typeof object.parameterValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues = {}; - for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { - if (typeof object.parameterValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig} message RuntimeConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RuntimeConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.parameters = {}; - object.parameterValues = {}; - } - if (options.defaults) - object.gcsOutputDirectory = ""; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.parameters[keys2[j]], options); - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; - if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { - object.parameterValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); - } - return object; - }; - - /** - * Converts this RuntimeConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig - * @instance - * @returns {Object.} JSON object - */ - RuntimeConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RuntimeConfig; - })(); - - return PipelineJob; + return CreateTrainingPipelineRequest; })(); - v1beta1.PipelineJobDetail = (function() { + v1beta1.GetTrainingPipelineRequest = (function() { /** - * Properties of a PipelineJobDetail. + * Properties of a GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineJobDetail - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext - * @property {google.cloud.aiplatform.v1beta1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext - * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name */ /** - * Constructs a new PipelineJobDetail. + * Constructs a new GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineJobDetail. - * @implements IPipelineJobDetail + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set */ - function PipelineJobDetail(properties) { - this.taskDetails = []; + function GetTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250710,104 +254206,75 @@ } /** - * PipelineJobDetail pipelineContext. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineContext - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail - * @instance - */ - PipelineJobDetail.prototype.pipelineContext = null; - - /** - * PipelineJobDetail pipelineRunContext. - * @member {google.cloud.aiplatform.v1beta1.IContext|null|undefined} pipelineRunContext - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail - * @instance - */ - PipelineJobDetail.prototype.pipelineRunContext = null; - - /** - * PipelineJobDetail taskDetails. - * @member {Array.} taskDetails - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * GetTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @instance */ - PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + GetTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail instance + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance */ - PipelineJobDetail.create = function create(properties) { - return new PipelineJobDetail(properties); + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); }; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encode = function encode(message, writer) { + GetTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) - $root.google.cloud.aiplatform.v1beta1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskDetails != null && message.taskDetails.length) - for (var i = 0; i < message.taskDetails.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.encode(message.taskDetails[i], 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); return writer; }; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decode = function decode(reader, length) { + GetTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); - break; - case 2: - message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.taskDetails && message.taskDetails.length)) - message.taskDetails = []; - message.taskDetails.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -250818,167 +254285,111 @@ }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { + GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJobDetail message. + * Verifies a GetTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJobDetail.verify = function verify(message) { + GetTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineContext); - if (error) - return "pipelineContext." + error; - } - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { - var error = $root.google.cloud.aiplatform.v1beta1.Context.verify(message.pipelineRunContext); - if (error) - return "pipelineRunContext." + error; - } - if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { - if (!Array.isArray(message.taskDetails)) - return "taskDetails: array expected"; - for (var i = 0; i < message.taskDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify(message.taskDetails[i]); - if (error) - return "taskDetails." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest */ - PipelineJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail) + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineJobDetail(); - if (object.pipelineContext != null) { - if (typeof object.pipelineContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineContext: object expected"); - message.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineContext); - } - if (object.pipelineRunContext != null) { - if (typeof object.pipelineRunContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.pipelineRunContext: object expected"); - message.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.fromObject(object.pipelineRunContext); - } - if (object.taskDetails) { - if (!Array.isArray(object.taskDetails)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: array expected"); - message.taskDetails = []; - for (var i = 0; i < object.taskDetails.length; ++i) { - if (typeof object.taskDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJobDetail.taskDetails: object expected"); - message.taskDetails[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.fromObject(object.taskDetails[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineJobDetail} message PipelineJobDetail + * @param {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJobDetail.toObject = function toObject(message, options) { + GetTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.taskDetails = []; - if (options.defaults) { - object.pipelineContext = null; - object.pipelineRunContext = null; - } - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) - object.pipelineContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineContext, options); - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) - object.pipelineRunContext = $root.google.cloud.aiplatform.v1beta1.Context.toObject(message.pipelineRunContext, options); - if (message.taskDetails && message.taskDetails.length) { - object.taskDetails = []; - for (var j = 0; j < message.taskDetails.length; ++j) - object.taskDetails[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.toObject(message.taskDetails[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - PipelineJobDetail.prototype.toJSON = function toJSON() { + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PipelineJobDetail; + return GetTrainingPipelineRequest; })(); - v1beta1.PipelineTaskDetail = (function() { + v1beta1.ListTrainingPipelinesRequest = (function() { /** - * Properties of a PipelineTaskDetail. + * Properties of a ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineTaskDetail - * @property {number|Long|null} [taskId] PipelineTaskDetail taskId - * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId - * @property {string|null} [taskName] PipelineTaskDetail taskName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime - * @property {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state - * @property {google.cloud.aiplatform.v1beta1.IExecution|null} [execution] PipelineTaskDetail execution - * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error - * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus - * @property {Object.|null} [inputs] PipelineTaskDetail inputs - * @property {Object.|null} [outputs] PipelineTaskDetail outputs + * @interface IListTrainingPipelinesRequest + * @property {string|null} [parent] ListTrainingPipelinesRequest parent + * @property {string|null} [filter] ListTrainingPipelinesRequest filter + * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize + * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask */ /** - * Constructs a new PipelineTaskDetail. + * Constructs a new ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineTaskDetail. - * @implements IPipelineTaskDetail + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set */ - function PipelineTaskDetail(properties) { - this.pipelineTaskStatus = []; - this.inputs = {}; - this.outputs = {}; + function ListTrainingPipelinesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250986,278 +254397,127 @@ } /** - * PipelineTaskDetail taskId. - * @member {number|Long} taskId - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PipelineTaskDetail parentTaskId. - * @member {number|Long} parentTaskId - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PipelineTaskDetail taskName. - * @member {string} taskName - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.taskName = ""; - - /** - * PipelineTaskDetail createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.createTime = null; - - /** - * PipelineTaskDetail startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.startTime = null; - - /** - * PipelineTaskDetail endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.endTime = null; - - /** - * PipelineTaskDetail executorDetail. - * @member {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail|null|undefined} executorDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.executorDetail = null; - - /** - * PipelineTaskDetail state. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @instance - */ - PipelineTaskDetail.prototype.state = 0; - - /** - * PipelineTaskDetail execution. - * @member {google.cloud.aiplatform.v1beta1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * ListTrainingPipelinesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PipelineTaskDetail.prototype.execution = null; + ListTrainingPipelinesRequest.prototype.parent = ""; /** - * PipelineTaskDetail error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * ListTrainingPipelinesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PipelineTaskDetail.prototype.error = null; + ListTrainingPipelinesRequest.prototype.filter = ""; /** - * PipelineTaskDetail pipelineTaskStatus. - * @member {Array.} pipelineTaskStatus - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * ListTrainingPipelinesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + ListTrainingPipelinesRequest.prototype.pageSize = 0; /** - * PipelineTaskDetail inputs. - * @member {Object.} inputs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * ListTrainingPipelinesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PipelineTaskDetail.prototype.inputs = $util.emptyObject; + ListTrainingPipelinesRequest.prototype.pageToken = ""; /** - * PipelineTaskDetail outputs. - * @member {Object.} outputs - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * ListTrainingPipelinesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance */ - PipelineTaskDetail.prototype.outputs = $util.emptyObject; - - /** - * Creates a new PipelineTaskDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail instance - */ - PipelineTaskDetail.create = function create(properties) { - return new PipelineTaskDetail(properties); - }; - - /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); - if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); - 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.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1beta1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) - for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); - if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + ListTrainingPipelinesRequest.prototype.readMask = null; + + /** + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + */ + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); + }; + + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTrainingPipelinesRequest.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 PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decode = function decode(reader, length) { + ListTrainingPipelinesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskId = reader.int64(); - break; - case 12: - message.parentTaskId = reader.int64(); + message.parent = reader.string(); break; case 2: - message.taskName = 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.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; case 5: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); - break; - case 7: - message.state = reader.int32(); - break; - case 8: - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.decode(reader, reader.uint32()); - break; - case 9: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 13: - if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) - message.pipelineTaskStatus = []; - message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); - break; - case 10: - if (message.inputs === $util.emptyObject) - message.inputs = {}; - 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputs[key] = value; - break; - case 11: - if (message.outputs === $util.emptyObject) - message.outputs = {}; - 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.outputs[key] = value; + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -251268,906 +254528,147 @@ }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskDetail message. + * Verifies a ListTrainingPipelinesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.verify = function verify(message) { + ListTrainingPipelinesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) - return "taskId: integer|Long expected"; - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) - return "parentTaskId: integer|Long expected"; - if (message.taskName != null && message.hasOwnProperty("taskName")) - if (!$util.isString(message.taskName)) - return "taskName: 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.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.executorDetail != null && message.hasOwnProperty("executorDetail")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify(message.executorDetail); - if (error) - return "executorDetail." + 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: - break; - } - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1beta1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + 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 "error." + error; - } - if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { - if (!Array.isArray(message.pipelineTaskStatus)) - return "pipelineTaskStatus: array expected"; - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); - if (error) - return "pipelineTaskStatus." + error; - } - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!$util.isObject(message.inputs)) - return "inputs: object expected"; - var key = Object.keys(message.inputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); - if (error) - return "inputs." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!$util.isObject(message.outputs)) - return "outputs: object expected"; - var key = Object.keys(message.outputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); - if (error) - return "outputs." + error; - } + return "readMask." + error; } return null; }; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest */ - PipelineTaskDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail) + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(); - if (object.taskId != null) - if ($util.Long) - (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; - else if (typeof object.taskId === "string") - message.taskId = parseInt(object.taskId, 10); - else if (typeof object.taskId === "number") - message.taskId = object.taskId; - else if (typeof object.taskId === "object") - message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); - if (object.parentTaskId != null) - if ($util.Long) - (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; - else if (typeof object.parentTaskId === "string") - message.parentTaskId = parseInt(object.parentTaskId, 10); - else if (typeof object.parentTaskId === "number") - message.parentTaskId = object.parentTaskId; - else if (typeof object.parentTaskId === "object") - message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); - if (object.taskName != null) - message.taskName = String(object.taskName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.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.PipelineTaskDetail.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.PipelineTaskDetail.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.executorDetail != null) { - if (typeof object.executorDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.executorDetail: object expected"); - message.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); - } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1beta1.Execution.fromObject(object.execution); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.pipelineTaskStatus) { - if (!Array.isArray(object.pipelineTaskStatus)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: array expected"); - message.pipelineTaskStatus = []; - for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { - if (typeof object.pipelineTaskStatus[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.pipelineTaskStatus: object expected"); - message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); - } - } - if (object.inputs) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); - message.inputs = {}; - for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { - if (typeof object.inputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.inputs: object expected"); - message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); - } - } - if (object.outputs) { - if (typeof object.outputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); - message.outputs = {}; - for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { - if (typeof object.outputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.outputs: object expected"); - message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); + 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.ListTrainingPipelinesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail} message PipelineTaskDetail + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskDetail.toObject = function toObject(message, options) { + ListTrainingPipelinesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineTaskStatus = []; - if (options.objects || options.defaults) { - object.inputs = {}; - object.outputs = {}; - } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskId = options.longs === String ? "0" : 0; - object.taskName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.executorDetail = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.execution = null; - object.error = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentTaskId = options.longs === String ? "0" : 0; - } - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (typeof message.taskId === "number") - object.taskId = options.longs === String ? String(message.taskId) : message.taskId; - else - object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; - if (message.taskName != null && message.hasOwnProperty("taskName")) - object.taskName = message.taskName; - 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.executorDetail != null && message.hasOwnProperty("executorDetail")) - object.executorDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1beta1.Execution.toObject(message.execution, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { - object.inputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); - } - if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { - object.outputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); - } - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (typeof message.parentTaskId === "number") - object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; - else - object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; - if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { - object.pipelineTaskStatus = []; - for (var j = 0; j < message.pipelineTaskStatus.length; ++j) - object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); + 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 PipelineTaskDetail to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest * @instance * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.toJSON = function toJSON() { + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PipelineTaskDetail.PipelineTaskStatus = (function() { - - /** - * Properties of a PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @interface IPipelineTaskStatus - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state - * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error - */ - - /** - * Constructs a new PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @classdesc Represents a PipelineTaskStatus. - * @implements IPipelineTaskStatus - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - */ - function PipelineTaskStatus(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]]; - } - - /** - * PipelineTaskStatus updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.updateTime = null; - - /** - * PipelineTaskStatus state. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.state = 0; - - /** - * PipelineTaskStatus error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.error = null; - - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance - */ - PipelineTaskStatus.create = function create(properties) { - return new PipelineTaskStatus(properties); - }; - - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.state = reader.int32(); - break; - case 3: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PipelineTaskStatus message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PipelineTaskStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + 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: - break; - } - 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 PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - */ - PipelineTaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(); - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - return message; - }; - - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PipelineTaskStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - return object; - }; - - /** - * Converts this PipelineTaskStatus to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus - * @instance - * @returns {Object.} JSON object - */ - PipelineTaskStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PipelineTaskStatus; - })(); - - PipelineTaskDetail.ArtifactList = (function() { - - /** - * Properties of an ArtifactList. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @interface IArtifactList - * @property {Array.|null} [artifacts] ArtifactList artifacts - */ - - /** - * Constructs a new ArtifactList. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail - * @classdesc Represents an ArtifactList. - * @implements IArtifactList - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - */ - function ArtifactList(properties) { - this.artifacts = []; - 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]]; - } - - /** - * ArtifactList artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @instance - */ - ArtifactList.prototype.artifacts = $util.emptyArray; - - /** - * Creates a new ArtifactList instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList instance - */ - ArtifactList.create = function create(properties) { - return new ArtifactList(properties); - }; - - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1beta1.Artifact.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArtifactList message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - return null; - }; - - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} ArtifactList - */ - ArtifactList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.Artifact.fromObject(object.artifacts[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList} message ArtifactList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArtifactList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.Artifact.toObject(message.artifacts[j], options); - } - return object; - }; - - /** - * Converts this ArtifactList to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList - * @instance - * @returns {Object.} JSON object - */ - ArtifactList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ArtifactList; - })(); - - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value - * @property {number} CANCELLING=5 CANCELLING value - * @property {number} CANCELLED=6 CANCELLED value - * @property {number} FAILED=7 FAILED value - * @property {number} SKIPPED=8 SKIPPED value - * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value - */ - PipelineTaskDetail.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "CANCEL_PENDING"] = 4; - values[valuesById[5] = "CANCELLING"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - values[valuesById[7] = "FAILED"] = 7; - values[valuesById[8] = "SKIPPED"] = 8; - values[valuesById[9] = "NOT_TRIGGERED"] = 9; - return values; - })(); - - return PipelineTaskDetail; + return ListTrainingPipelinesRequest; })(); - v1beta1.PipelineTaskExecutorDetail = (function() { + v1beta1.ListTrainingPipelinesResponse = (function() { /** - * Properties of a PipelineTaskExecutorDetail. + * Properties of a ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPipelineTaskExecutorDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail - * @property {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken */ /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineTaskExecutorDetail. - * @implements IPipelineTaskExecutorDetail + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set */ - function PipelineTaskExecutorDetail(properties) { + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -252175,102 +254676,91 @@ } /** - * PipelineTaskExecutorDetail containerDetail. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @instance - */ - PipelineTaskExecutorDetail.prototype.containerDetail = null; - - /** - * PipelineTaskExecutorDetail customJobDetail. - * @member {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance */ - PipelineTaskExecutorDetail.prototype.customJobDetail = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; /** - * PipelineTaskExecutorDetail details. - * @member {"containerDetail"|"customJobDetail"|undefined} details - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * ListTrainingPipelinesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance */ - Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { - get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance */ - PipelineTaskExecutorDetail.create = function create(properties) { - return new PipelineTaskExecutorDetail(properties); + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); }; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encode = function encode(message, writer) { + ListTrainingPipelinesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) - $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trainingPipelines != null && message.trainingPipelines.length) + for (var i = 0; i < message.trainingPipelines.length; ++i) + $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipelines[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 PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decode = function decode(reader, length) { + ListTrainingPipelinesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); + if (!(message.trainingPipelines && message.trainingPipelines.length)) + message.trainingPipelines = []; + message.trainingPipelines.push($root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32())); break; case 2: - message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -252281,900 +254771,509 @@ }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a ListTrainingPipelinesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskExecutorDetail.verify = function verify(message) { + ListTrainingPipelinesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); - if (error) - return "containerDetail." + error; - } - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - if (properties.details === 1) - return "details: multiple values"; - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { + if (!Array.isArray(message.trainingPipelines)) + return "trainingPipelines: array expected"; + for (var i = 0; i < message.trainingPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipelines[i]); if (error) - return "customJobDetail." + error; + return "trainingPipelines." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse */ - PipelineTaskExecutorDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail) + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail(); - if (object.containerDetail != null) { - if (typeof object.containerDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.containerDetail: object expected"); - message.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); - } - if (object.customJobDetail != null) { - if (typeof object.customJobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.customJobDetail: object expected"); - message.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); + var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); + message.trainingPipelines = []; + for (var i = 0; i < object.trainingPipelines.length; ++i) { + if (typeof object.trainingPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - object.containerDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); - if (options.oneofs) - object.details = "containerDetail"; - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - object.customJobDetail = $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); - if (options.oneofs) - object.details = "customJobDetail"; + if (options.arrays || options.defaults) + object.trainingPipelines = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.trainingPipelines && message.trainingPipelines.length) { + object.trainingPipelines = []; + for (var j = 0; j < message.trainingPipelines.length; ++j) + object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipelines[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse * @instance * @returns {Object.} JSON object */ - PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PipelineTaskExecutorDetail.ContainerDetail = (function() { - - /** - * Properties of a ContainerDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @interface IContainerDetail - * @property {string|null} [mainJob] ContainerDetail mainJob - * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob - */ - - /** - * Constructs a new ContainerDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @classdesc Represents a ContainerDetail. - * @implements IContainerDetail - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - */ - function ContainerDetail(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]]; - } - - /** - * ContainerDetail mainJob. - * @member {string} mainJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.mainJob = ""; - - /** - * ContainerDetail preCachingCheckJob. - * @member {string} preCachingCheckJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.preCachingCheckJob = ""; - - /** - * Creates a new ContainerDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance - */ - ContainerDetail.create = function create(properties) { - return new ContainerDetail(properties); - }; - - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); - if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); - return writer; - }; - - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mainJob = reader.string(); - break; - case 2: - message.preCachingCheckJob = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContainerDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - if (!$util.isString(message.mainJob)) - return "mainJob: string expected"; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - if (!$util.isString(message.preCachingCheckJob)) - return "preCachingCheckJob: string expected"; - return null; - }; - - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - */ - ContainerDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail(); - if (object.mainJob != null) - message.mainJob = String(object.mainJob); - if (object.preCachingCheckJob != null) - message.preCachingCheckJob = String(object.preCachingCheckJob); - return message; - }; - - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContainerDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.mainJob = ""; - object.preCachingCheckJob = ""; - } - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - object.mainJob = message.mainJob; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - object.preCachingCheckJob = message.preCachingCheckJob; - return object; - }; - - /** - * Converts this ContainerDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - * @returns {Object.} JSON object - */ - ContainerDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ContainerDetail; - })(); - - PipelineTaskExecutorDetail.CustomJobDetail = (function() { - - /** - * Properties of a CustomJobDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @interface ICustomJobDetail - * @property {string|null} [job] CustomJobDetail job - */ - - /** - * Constructs a new CustomJobDetail. - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail - * @classdesc Represents a CustomJobDetail. - * @implements ICustomJobDetail - * @constructor - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - */ - function CustomJobDetail(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]]; - } - - /** - * CustomJobDetail job. - * @member {string} job - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - */ - CustomJobDetail.prototype.job = ""; - - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance - */ - CustomJobDetail.create = function create(properties) { - return new CustomJobDetail(properties); - }; - - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); - return writer; - }; - - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.job = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomJobDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomJobDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.job != null && message.hasOwnProperty("job")) - if (!$util.isString(message.job)) - return "job: string expected"; - return null; - }; - - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - */ - CustomJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); - if (object.job != null) - message.job = String(object.job); - return message; - }; - - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomJobDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.job = ""; - if (message.job != null && message.hasOwnProperty("job")) - object.job = message.job; - return object; - }; - - /** - * Converts this CustomJobDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - * @returns {Object.} JSON object - */ - CustomJobDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CustomJobDetail; - })(); - - return PipelineTaskExecutorDetail; + return ListTrainingPipelinesResponse; })(); - v1beta1.PipelineService = (function() { + v1beta1.DeleteTrainingPipelineRequest = (function() { /** - * Constructs a new PipelineService service. + * Properties of a DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PipelineService - * @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 PipelineService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; - - /** - * Creates new PipelineService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @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 {PipelineService} RPC service. Useful where requests and/or responses are streamed. - */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CreateTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline - */ - - /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); - - /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef GetTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} [response] TrainingPipeline + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name */ /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Constructs a new DeleteTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1beta1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); + function DeleteTrainingPipelineRequest(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 GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * DeleteTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteTrainingPipelineRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef ListTrainingPipelinesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance */ + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); + DeleteTrainingPipelineRequest.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 ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef DeleteTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteTrainingPipelineRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + 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; + }; /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); + DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteTrainingPipelineRequest.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; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CancelTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest */ + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { - return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); + DeleteTrainingPipelineRequest.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 CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Converts this DeleteTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#createPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CreatePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + * @returns {Object.} JSON object */ + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { - return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); - }, "name", { value: "CreatePipelineJob" }); + return DeleteTrainingPipelineRequest; + })(); - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1beta1.CancelTrainingPipelineRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#getPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef GetPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.PipelineJob} [response] PipelineJob + * Properties of a CancelTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 + * Constructs a new CancelTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { - return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1beta1.PipelineJob, request, callback); - }, "name", { value: "GetPipelineJob" }); + function CancelTrainingPipelineRequest(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 GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * CancelTrainingPipelineRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#listPipelineJobs}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef ListPipelineJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); + }; /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { - return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse, request, callback); - }, "name", { value: "ListPipelineJobs" }); - - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + CancelTrainingPipelineRequest.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 CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#deletePipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef DeletePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelTrainingPipelineRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + 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; + }; /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { - return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePipelineJob" }); + CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CancelTrainingPipelineRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CancelTrainingPipelineRequest.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; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService#cancelPipelineJob}. - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @typedef CancelPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { - return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelPipelineJob" }); + CancelTrainingPipelineRequest.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 CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * Converts this CancelTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PipelineService; + return CancelTrainingPipelineRequest; })(); - v1beta1.CreateTrainingPipelineRequest = (function() { + v1beta1.CreatePipelineJobRequest = (function() { /** - * Properties of a CreateTrainingPipelineRequest. + * Properties of a CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId */ /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set */ - function CreateTrainingPipelineRequest(properties) { + function CreatePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253182,80 +255281,90 @@ } /** - * CreateTrainingPipelineRequest parent. + * CreatePipelineJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @instance */ - CreateTrainingPipelineRequest.prototype.parent = ""; + CreatePipelineJobRequest.prototype.parent = ""; /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1beta1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1beta1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @instance */ - CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + CreatePipelineJobRequest.prototype.pipelineJob = null; /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * CreatePipelineJobRequest pipelineJobId. + * @member {string} pipelineJobId + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @instance + */ + CreatePipelineJobRequest.prototype.pipelineJobId = ""; + + /** + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest instance */ - CreateTrainingPipelineRequest.create = function create(properties) { - return new CreateTrainingPipelineRequest(properties); + CreatePipelineJobRequest.create = function create(properties) { + return new CreatePipelineJobRequest(properties); }; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encode = function encode(message, writer) { + CreatePipelineJobRequest.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.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); return writer; }; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decode = function decode(reader, length) { + CreatePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -253263,7 +255372,10 @@ message.parent = reader.string(); break; case 2: - message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32()); + message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32()); + break; + case 3: + message.pipelineJobId = reader.string(); break; default: reader.skipType(tag & 7); @@ -253274,121 +255386,129 @@ }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a CreatePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTrainingPipelineRequest.verify = function verify(message) { + CreatePipelineJobRequest.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.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipeline); + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJob); if (error) - return "trainingPipeline." + error; + return "pipelineJob." + error; } + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + if (!$util.isString(message.pipelineJobId)) + return "pipelineJobId: string expected"; return null; }; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest) + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipeline); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJob); } + if (object.pipelineJobId != null) + message.pipelineJobId = String(object.pipelineJobId); return message; }; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} message CreatePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + CreatePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.trainingPipeline = null; + object.pipelineJob = null; + object.pipelineJobId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipeline, options); + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJob, options); + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + object.pipelineJobId = message.pipelineJobId; return object; }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this CreatePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest * @instance * @returns {Object.} JSON object */ - CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + CreatePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTrainingPipelineRequest; + return CreatePipelineJobRequest; })(); - v1beta1.GetTrainingPipelineRequest = (function() { + v1beta1.GetPipelineJobRequest = (function() { /** - * Properties of a GetTrainingPipelineRequest. + * Properties of a GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetTrainingPipelineRequest - * @property {string|null} [name] GetTrainingPipelineRequest name + * @interface IGetPipelineJobRequest + * @property {string|null} [name] GetPipelineJobRequest name */ /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set */ - function GetTrainingPipelineRequest(properties) { + function GetPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253396,35 +255516,35 @@ } /** - * GetTrainingPipelineRequest name. + * GetPipelineJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @instance */ - GetTrainingPipelineRequest.prototype.name = ""; + GetPipelineJobRequest.prototype.name = ""; /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest instance */ - GetTrainingPipelineRequest.create = function create(properties) { - return new GetTrainingPipelineRequest(properties); + GetPipelineJobRequest.create = function create(properties) { + return new GetPipelineJobRequest(properties); }; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTrainingPipelineRequest.encode = function encode(message, writer) { + GetPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -253433,33 +255553,33 @@ }; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTrainingPipelineRequest.decode = function decode(reader, length) { + GetPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -253475,30 +255595,30 @@ }; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a GetPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTrainingPipelineRequest.verify = function verify(message) { + GetPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -253508,32 +255628,32 @@ }; /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} message GetPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTrainingPipelineRequest.toObject = function toObject(message, options) { + GetPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -253545,41 +255665,41 @@ }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest * @instance * @returns {Object.} JSON object */ - GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { + GetPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTrainingPipelineRequest; + return GetPipelineJobRequest; })(); - v1beta1.ListTrainingPipelinesRequest = (function() { + v1beta1.ListPipelineJobsRequest = (function() { /** - * Properties of a ListTrainingPipelinesRequest. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListTrainingPipelinesRequest - * @property {string|null} [parent] ListTrainingPipelinesRequest parent - * @property {string|null} [filter] ListTrainingPipelinesRequest filter - * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize - * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask + * @interface IListPipelineJobsRequest + * @property {string|null} [parent] ListPipelineJobsRequest parent + * @property {string|null} [filter] ListPipelineJobsRequest filter + * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize + * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken + * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy */ /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set */ - function ListTrainingPipelinesRequest(properties) { + function ListPipelineJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253587,67 +255707,67 @@ } /** - * ListTrainingPipelinesRequest parent. + * ListPipelineJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.parent = ""; + ListPipelineJobsRequest.prototype.parent = ""; /** - * ListTrainingPipelinesRequest filter. + * ListPipelineJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.filter = ""; + ListPipelineJobsRequest.prototype.filter = ""; /** - * ListTrainingPipelinesRequest pageSize. + * ListPipelineJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * ListTrainingPipelinesRequest pageToken. + * ListPipelineJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; + ListPipelineJobsRequest.prototype.pageToken = ""; /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * ListPipelineJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + ListPipelineJobsRequest.prototype.orderBy = ""; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest instance */ - ListTrainingPipelinesRequest.create = function create(properties) { - return new ListTrainingPipelinesRequest(properties); + ListPipelineJobsRequest.create = function create(properties) { + return new ListPipelineJobsRequest(properties); }; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encode = function encode(message, writer) { + ListPipelineJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -253658,39 +255778,39 @@ 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 ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decode = function decode(reader, length) { + ListPipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -253706,8 +255826,8 @@ case 4: message.pageToken = reader.string(); break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -253718,30 +255838,30 @@ }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a ListPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesRequest.verify = function verify(message) { + ListPipelineJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -253756,26 +255876,24 @@ 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 ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -253784,24 +255902,21 @@ 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.ListTrainingPipelinesRequest.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 ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} message ListPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesRequest.toObject = function toObject(message, options) { + ListPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -253810,7 +255925,7 @@ object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.readMask = null; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -253820,45 +255935,45 @@ 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 ListTrainingPipelinesRequest to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + ListPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTrainingPipelinesRequest; + return ListPipelineJobsRequest; })(); - v1beta1.ListTrainingPipelinesResponse = (function() { + v1beta1.ListPipelineJobsResponse = (function() { /** - * Properties of a ListTrainingPipelinesResponse. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListTrainingPipelinesResponse - * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines - * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken + * @interface IListPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs + * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken */ /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set */ - function ListTrainingPipelinesResponse(properties) { - this.trainingPipelines = []; + function ListPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253866,88 +255981,88 @@ } /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @instance */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * ListTrainingPipelinesResponse nextPageToken. + * ListPipelineJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @instance */ - ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + ListPipelineJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse instance */ - ListTrainingPipelinesResponse.create = function create(properties) { - return new ListTrainingPipelinesResponse(properties); + ListPipelineJobsResponse.create = function create(properties) { + return new ListPipelineJobsResponse(properties); }; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encode = function encode(message, writer) { + ListPipelineJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingPipelines != null && message.trainingPipelines.length) - for (var i = 0; i < message.trainingPipelines.length; ++i) - $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[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 ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decode = function decode(reader, length) { + ListPipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.trainingPipelines && message.trainingPipelines.length)) - message.trainingPipelines = []; - message.trainingPipelines.push($root.google.cloud.aiplatform.v1beta1.TrainingPipeline.decode(reader, reader.uint32())); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -253961,39 +256076,39 @@ }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a ListPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesResponse.verify = function verify(message) { + ListPipelineJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { - if (!Array.isArray(message.trainingPipelines)) - return "trainingPipelines: array expected"; - for (var i = 0; i < message.trainingPipelines.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.verify(message.trainingPipelines[i]); + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); if (error) - return "trainingPipelines." + error; + return "pipelineJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -254003,25 +256118,25 @@ }; /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); - message.trainingPipelines = []; - for (var i = 0; i < object.trainingPipelines.length; ++i) { - if (typeof object.trainingPipelines[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); } } if (object.nextPageToken != null) @@ -254030,26 +256145,26 @@ }; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} message ListPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesResponse.toObject = function toObject(message, options) { + ListPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.trainingPipelines = []; + object.pipelineJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.trainingPipelines && message.trainingPipelines.length) { - object.trainingPipelines = []; - for (var j = 0; j < message.trainingPipelines.length; ++j) - object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1beta1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -254057,37 +256172,37 @@ }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { + ListPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTrainingPipelinesResponse; + return ListPipelineJobsResponse; })(); - v1beta1.DeleteTrainingPipelineRequest = (function() { + v1beta1.DeletePipelineJobRequest = (function() { /** - * Properties of a DeleteTrainingPipelineRequest. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteTrainingPipelineRequest - * @property {string|null} [name] DeleteTrainingPipelineRequest name + * @interface IDeletePipelineJobRequest + * @property {string|null} [name] DeletePipelineJobRequest name */ /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set */ - function DeleteTrainingPipelineRequest(properties) { + function DeletePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254095,35 +256210,35 @@ } /** - * DeleteTrainingPipelineRequest name. + * DeletePipelineJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @instance */ - DeleteTrainingPipelineRequest.prototype.name = ""; + DeletePipelineJobRequest.prototype.name = ""; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest instance */ - DeleteTrainingPipelineRequest.create = function create(properties) { - return new DeleteTrainingPipelineRequest(properties); + DeletePipelineJobRequest.create = function create(properties) { + return new DeletePipelineJobRequest(properties); }; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTrainingPipelineRequest.encode = function encode(message, writer) { + DeletePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -254132,33 +256247,33 @@ }; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTrainingPipelineRequest.decode = function decode(reader, length) { + DeletePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -254174,30 +256289,30 @@ }; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a DeletePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTrainingPipelineRequest.verify = function verify(message) { + DeletePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -254207,32 +256322,219 @@ }; /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePipelineJobRequest.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 DeletePipelineJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeletePipelineJobRequest; + })(); + + v1beta1.CancelPipelineJobRequest = (function() { + + /** + * Properties of a CancelPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name + */ + + /** + * Constructs a new CancelPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set + */ + function CancelPipelineJobRequest(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]]; + } + + /** + * CancelPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @instance + */ + CancelPipelineJobRequest.prototype.name = ""; + + /** + * Creates a new CancelPipelineJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + */ + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); + }; + + /** + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelPipelineJobRequest.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 CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelPipelineJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); + 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 CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelPipelineJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelPipelineJobRequest.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 CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + */ + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -254244,37 +256546,54 @@ }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTrainingPipelineRequest; + return CancelPipelineJobRequest; })(); - v1beta1.CancelTrainingPipelineRequest = (function() { + v1beta1.TrainingPipeline = (function() { /** - * Properties of a CancelTrainingPipelineRequest. + * Properties of a TrainingPipeline. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * @interface ITrainingPipeline + * @property {string|null} [name] TrainingPipeline name + * @property {string|null} [displayName] TrainingPipeline displayName + * @property {google.cloud.aiplatform.v1beta1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig + * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition + * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs + * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata + * @property {google.cloud.aiplatform.v1beta1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel + * @property {google.cloud.aiplatform.v1beta1.PipelineState|null} [state] TrainingPipeline state + * @property {google.rpc.IStatus|null} [error] TrainingPipeline error + * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime + * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime + * @property {Object.|null} [labels] TrainingPipeline labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec */ /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new TrainingPipeline. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest + * @classdesc Represents a TrainingPipeline. + * @implements ITrainingPipeline * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set */ - function CancelTrainingPipelineRequest(properties) { + function TrainingPipeline(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254282,76 +256601,304 @@ } /** - * CancelTrainingPipelineRequest name. + * TrainingPipeline name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance */ - CancelTrainingPipelineRequest.prototype.name = ""; + TrainingPipeline.prototype.name = ""; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * TrainingPipeline displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.displayName = ""; + + /** + * TrainingPipeline inputDataConfig. + * @member {google.cloud.aiplatform.v1beta1.IInputDataConfig|null|undefined} inputDataConfig + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.inputDataConfig = null; + + /** + * TrainingPipeline trainingTaskDefinition. + * @member {string} trainingTaskDefinition + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskDefinition = ""; + + /** + * TrainingPipeline trainingTaskInputs. + * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskInputs = null; + + /** + * TrainingPipeline trainingTaskMetadata. + * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskMetadata = null; + + /** + * TrainingPipeline modelToUpload. + * @member {google.cloud.aiplatform.v1beta1.IModel|null|undefined} modelToUpload + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelToUpload = null; + + /** + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelId = ""; + + /** + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.parentModel = ""; + + /** + * TrainingPipeline state. + * @member {google.cloud.aiplatform.v1beta1.PipelineState} state + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.state = 0; + + /** + * TrainingPipeline error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.error = null; + + /** + * TrainingPipeline createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.createTime = null; + + /** + * TrainingPipeline startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.startTime = null; + + /** + * TrainingPipeline endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.endTime = null; + + /** + * TrainingPipeline updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.updateTime = null; + + /** + * TrainingPipeline labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.labels = $util.emptyObject; + + /** + * TrainingPipeline encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.encryptionSpec = null; + + /** + * Creates a new TrainingPipeline instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline instance */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); + TrainingPipeline.create = function create(properties) { + return new TrainingPipeline(properties); }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encode = function encode(message, writer) { + TrainingPipeline.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.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) + $root.google.cloud.aiplatform.v1beta1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); + if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) + $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) + $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) + $root.google.cloud.aiplatform.v1beta1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + 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.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.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + 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.v1beta1.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; }; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingPipeline.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decode = function decode(reader, length) { + TrainingPipeline.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(), 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.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.decode(reader, reader.uint32()); + break; + case 4: + message.trainingTaskDefinition = reader.string(); + break; + case 5: + message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 6: + message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 7: + message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.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; + case 10: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + 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: + 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 18: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -254361,109 +256908,358 @@ }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a TrainingPipeline message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelTrainingPipelineRequest.verify = function verify(message) { + TrainingPipeline.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.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.verify(message.inputDataConfig); + if (error) + return "inputDataConfig." + error; + } + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + if (!$util.isString(message.trainingTaskDefinition)) + return "trainingTaskDefinition: string expected"; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); + if (error) + return "trainingTaskInputs." + error; + } + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); + if (error) + return "trainingTaskMetadata." + error; + } + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.verify(message.modelToUpload); + 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: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + 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) + 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.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 CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingPipeline} TrainingPipeline */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest) + TrainingPipeline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingPipeline) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.TrainingPipeline(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.inputDataConfig != null) { + if (typeof object.inputDataConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.inputDataConfig: object expected"); + message.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.fromObject(object.inputDataConfig); + } + if (object.trainingTaskDefinition != null) + message.trainingTaskDefinition = String(object.trainingTaskDefinition); + if (object.trainingTaskInputs != null) { + if (typeof object.trainingTaskInputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskInputs: object expected"); + message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); + } + if (object.trainingTaskMetadata != null) { + if (typeof object.trainingTaskMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.trainingTaskMetadata: object expected"); + message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); + } + if (object.modelToUpload != null) { + if (typeof object.modelToUpload !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.modelToUpload: object expected"); + message.modelToUpload = $root.google.cloud.aiplatform.v1beta1.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: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.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.TrainingPipeline.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1beta1.TrainingPipeline} message TrainingPipeline * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelTrainingPipelineRequest.toObject = function toObject(message, options) { + TrainingPipeline.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.inputDataConfig = null; + object.trainingTaskDefinition = ""; + object.trainingTaskInputs = null; + object.trainingTaskMetadata = null; + object.modelToUpload = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) + object.inputDataConfig = $root.google.cloud.aiplatform.v1beta1.InputDataConfig.toObject(message.inputDataConfig, options); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + object.trainingTaskDefinition = message.trainingTaskDefinition; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) + object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) + object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) + object.modelToUpload = $root.google.cloud.aiplatform.v1beta1.Model.toObject(message.modelToUpload, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PipelineState[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + 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); + 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 (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this TrainingPipeline to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingPipeline * @instance * @returns {Object.} JSON object */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + TrainingPipeline.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelTrainingPipelineRequest; + return TrainingPipeline; })(); - v1beta1.CreatePipelineJobRequest = (function() { + v1beta1.InputDataConfig = (function() { /** - * Properties of a CreatePipelineJobRequest. + * Properties of an InputDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreatePipelineJobRequest - * @property {string|null} [parent] CreatePipelineJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob - * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @interface IInputDataConfig + * @property {google.cloud.aiplatform.v1beta1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit + * @property {google.cloud.aiplatform.v1beta1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit + * @property {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit + * @property {google.cloud.aiplatform.v1beta1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit + * @property {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination + * @property {string|null} [datasetId] InputDataConfig datasetId + * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter + * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri */ /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new InputDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreatePipelineJobRequest. - * @implements ICreatePipelineJobRequest + * @classdesc Represents an InputDataConfig. + * @implements IInputDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set */ - function CreatePipelineJobRequest(properties) { + function InputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254471,101 +257267,217 @@ } /** - * CreatePipelineJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * InputDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1beta1.IFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance */ - CreatePipelineJobRequest.prototype.parent = ""; + InputDataConfig.prototype.fractionSplit = null; /** - * CreatePipelineJobRequest pipelineJob. - * @member {google.cloud.aiplatform.v1beta1.IPipelineJob|null|undefined} pipelineJob - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * InputDataConfig filterSplit. + * @member {google.cloud.aiplatform.v1beta1.IFilterSplit|null|undefined} filterSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance */ - CreatePipelineJobRequest.prototype.pipelineJob = null; + InputDataConfig.prototype.filterSplit = null; /** - * CreatePipelineJobRequest pipelineJobId. - * @member {string} pipelineJobId - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * InputDataConfig predefinedSplit. + * @member {google.cloud.aiplatform.v1beta1.IPredefinedSplit|null|undefined} predefinedSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance */ - CreatePipelineJobRequest.prototype.pipelineJobId = ""; + InputDataConfig.prototype.predefinedSplit = null; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * InputDataConfig timestampSplit. + * @member {google.cloud.aiplatform.v1beta1.ITimestampSplit|null|undefined} timestampSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.timestampSplit = null; + + /** + * InputDataConfig stratifiedSplit. + * @member {google.cloud.aiplatform.v1beta1.IStratifiedSplit|null|undefined} stratifiedSplit + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.stratifiedSplit = null; + + /** + * InputDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.gcsDestination = null; + + /** + * InputDataConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.bigqueryDestination = null; + + /** + * InputDataConfig datasetId. + * @member {string} datasetId + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.datasetId = ""; + + /** + * InputDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationsFilter = ""; + + /** + * InputDataConfig annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationSchemaUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputDataConfig split. + * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InputDataConfig destination. + * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig instance */ - CreatePipelineJobRequest.create = function create(properties) { - return new CreatePipelineJobRequest(properties); + InputDataConfig.create = function create(properties) { + return new InputDataConfig(properties); }; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encode = function encode(message, writer) { + InputDataConfig.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.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1beta1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) + $root.google.cloud.aiplatform.v1beta1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) + $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) + $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.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")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) + $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.InputDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decode = function decode(reader, length) { + InputDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; case 2: - message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32()); + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.decode(reader, reader.uint32()); break; case 3: - message.pipelineJobId = reader.string(); + message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.decode(reader, reader.uint32()); + break; + case 4: + message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.decode(reader, reader.uint32()); + break; + case 5: + message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.decode(reader, reader.uint32()); + break; + case 12: + message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.decode(reader, reader.uint32()); + break; + case 8: + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 10: + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + break; + case 1: + message.datasetId = reader.string(); + break; + case 6: + message.annotationsFilter = reader.string(); + break; + case 9: + message.annotationSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -254576,129 +257488,263 @@ }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + InputDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies an InputDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePipelineJobRequest.verify = function verify(message) { + InputDataConfig.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.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJob); - if (error) - return "pipelineJob." + error; + var properties = {}; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } } - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - if (!$util.isString(message.pipelineJobId)) - return "pipelineJobId: string expected"; + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FilterSplit.verify(message.filterSplit); + if (error) + return "filterSplit." + error; + } + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.verify(message.predefinedSplit); + if (error) + return "predefinedSplit." + error; + } + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.verify(message.timestampSplit); + if (error) + return "timestampSplit." + error; + } + } + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.verify(message.stratifiedSplit); + if (error) + return "stratifiedSplit." + error; + } + } + 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.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; return null; }; /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.InputDataConfig} InputDataConfig */ - CreatePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest) + InputDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.InputDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pipelineJob != null) { - if (typeof object.pipelineJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest.pipelineJob: object expected"); - message.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJob); + var message = new $root.google.cloud.aiplatform.v1beta1.InputDataConfig(); + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.fromObject(object.fractionSplit); + } + if (object.filterSplit != null) { + if (typeof object.filterSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.filterSplit: object expected"); + message.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.fromObject(object.filterSplit); + } + if (object.predefinedSplit != null) { + if (typeof object.predefinedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.predefinedSplit: object expected"); + message.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.fromObject(object.predefinedSplit); + } + if (object.timestampSplit != null) { + if (typeof object.timestampSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.timestampSplit: object expected"); + message.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.fromObject(object.timestampSplit); + } + if (object.stratifiedSplit != null) { + if (typeof object.stratifiedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.stratifiedSplit: object expected"); + message.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.fromObject(object.stratifiedSplit); + } + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.InputDataConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + return message; + }; + + /** + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.InputDataConfig} message InputDataConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputDataConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.datasetId = ""; + object.annotationsFilter = ""; + object.annotationSchemaUri = ""; + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1beta1.FractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + object.filterSplit = $root.google.cloud.aiplatform.v1beta1.FilterSplit.toObject(message.filterSplit, options); + if (options.oneofs) + object.split = "filterSplit"; + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + object.predefinedSplit = $root.google.cloud.aiplatform.v1beta1.PredefinedSplit.toObject(message.predefinedSplit, options); + if (options.oneofs) + object.split = "predefinedSplit"; + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + object.timestampSplit = $root.google.cloud.aiplatform.v1beta1.TimestampSplit.toObject(message.timestampSplit, options); + if (options.oneofs) + object.split = "timestampSplit"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.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.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + 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 (object.pipelineJobId != null) - message.pipelineJobId = String(object.pipelineJobId); - return message; - }; - - /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest} message CreatePipelineJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreatePipelineJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pipelineJob = null; - object.pipelineJobId = ""; + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + object.stratifiedSplit = $root.google.cloud.aiplatform.v1beta1.StratifiedSplit.toObject(message.stratifiedSplit, options); + if (options.oneofs) + object.split = "stratifiedSplit"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) - object.pipelineJob = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJob, options); - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - object.pipelineJobId = message.pipelineJobId; return object; }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this InputDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig * @instance * @returns {Object.} JSON object */ - CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + InputDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreatePipelineJobRequest; + return InputDataConfig; })(); - v1beta1.GetPipelineJobRequest = (function() { + v1beta1.FractionSplit = (function() { /** - * Properties of a GetPipelineJobRequest. + * Properties of a FractionSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetPipelineJobRequest - * @property {string|null} [name] GetPipelineJobRequest name + * @interface IFractionSplit + * @property {number|null} [trainingFraction] FractionSplit trainingFraction + * @property {number|null} [validationFraction] FractionSplit validationFraction + * @property {number|null} [testFraction] FractionSplit testFraction */ /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new FractionSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetPipelineJobRequest. - * @implements IGetPipelineJobRequest + * @classdesc Represents a FractionSplit. + * @implements IFractionSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set */ - function GetPipelineJobRequest(properties) { + function FractionSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254706,75 +257752,101 @@ } /** - * GetPipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * FractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance */ - GetPipelineJobRequest.prototype.name = ""; + FractionSplit.prototype.trainingFraction = 0; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * FractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @instance + */ + FractionSplit.prototype.validationFraction = 0; + + /** + * FractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit + * @instance + */ + FractionSplit.prototype.testFraction = 0; + + /** + * Creates a new FractionSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit instance */ - GetPipelineJobRequest.create = function create(properties) { - return new GetPipelineJobRequest(properties); + FractionSplit.create = function create(properties) { + return new FractionSplit(properties); }; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encode = function encode(message, writer) { + FractionSplit.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.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); return writer; }; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FractionSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decode = function decode(reader, length) { + FractionSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.trainingFraction = reader.double(); + break; + case 2: + message.validationFraction = reader.double(); + break; + case 3: + message.testFraction = reader.double(); break; default: reader.skipType(tag & 7); @@ -254785,111 +257857,126 @@ }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + FractionSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a FractionSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPipelineJobRequest.verify = function verify(message) { + FractionSplit.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.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; return null; }; /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.FractionSplit} FractionSplit */ - GetPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest) + FractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FractionSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.FractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); return message; }; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1beta1.GetPipelineJobRequest} message GetPipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.FractionSplit} message FractionSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPipelineJobRequest.toObject = function toObject(message, options) { + FractionSplit.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.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; return object; }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this FractionSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.FractionSplit * @instance * @returns {Object.} JSON object */ - GetPipelineJobRequest.prototype.toJSON = function toJSON() { + FractionSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetPipelineJobRequest; + return FractionSplit; })(); - v1beta1.ListPipelineJobsRequest = (function() { + v1beta1.FilterSplit = (function() { /** - * Properties of a ListPipelineJobsRequest. + * Properties of a FilterSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPipelineJobsRequest - * @property {string|null} [parent] ListPipelineJobsRequest parent - * @property {string|null} [filter] ListPipelineJobsRequest filter - * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize - * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken - * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @interface IFilterSplit + * @property {string|null} [trainingFilter] FilterSplit trainingFilter + * @property {string|null} [validationFilter] FilterSplit validationFilter + * @property {string|null} [testFilter] FilterSplit testFilter */ /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new FilterSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPipelineJobsRequest. - * @implements IListPipelineJobsRequest + * @classdesc Represents a FilterSplit. + * @implements IFilterSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set */ - function ListPipelineJobsRequest(properties) { + function FilterSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254897,127 +257984,101 @@ } /** - * ListPipelineJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.parent = ""; - - /** - * ListPipelineJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.filter = ""; - - /** - * ListPipelineJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * FilterSplit trainingFilter. + * @member {string} trainingFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - ListPipelineJobsRequest.prototype.pageSize = 0; + FilterSplit.prototype.trainingFilter = ""; /** - * ListPipelineJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * FilterSplit validationFilter. + * @member {string} validationFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - ListPipelineJobsRequest.prototype.pageToken = ""; + FilterSplit.prototype.validationFilter = ""; /** - * ListPipelineJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * FilterSplit testFilter. + * @member {string} testFilter + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance */ - ListPipelineJobsRequest.prototype.orderBy = ""; + FilterSplit.prototype.testFilter = ""; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit instance */ - ListPipelineJobsRequest.create = function create(properties) { - return new ListPipelineJobsRequest(properties); + FilterSplit.create = function create(properties) { + return new FilterSplit(properties); }; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encode = function encode(message, writer) { + FilterSplit.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 6, wireType 2 =*/50).string(message.orderBy); + if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); + if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); + if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); return writer; }; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FilterSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decode = function decode(reader, length) { + FilterSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.trainingFilter = reader.string(); break; case 2: - message.filter = reader.string(); + message.validationFilter = reader.string(); break; case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 6: - message.orderBy = reader.string(); + message.testFilter = reader.string(); break; default: reader.skipType(tag & 7); @@ -255028,142 +258089,124 @@ }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + FilterSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a FilterSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsRequest.verify = function verify(message) { + FilterSplit.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.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + if (!$util.isString(message.trainingFilter)) + return "trainingFilter: string expected"; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + if (!$util.isString(message.validationFilter)) + return "validationFilter: string expected"; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + if (!$util.isString(message.testFilter)) + return "testFilter: string expected"; return null; }; /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.FilterSplit} FilterSplit */ - ListPipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest) + FilterSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FilterSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(); - 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); + var message = new $root.google.cloud.aiplatform.v1beta1.FilterSplit(); + if (object.trainingFilter != null) + message.trainingFilter = String(object.trainingFilter); + if (object.validationFilter != null) + message.validationFilter = String(object.validationFilter); + if (object.testFilter != null) + message.testFilter = String(object.testFilter); return message; }; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest} message ListPipelineJobsRequest + * @param {google.cloud.aiplatform.v1beta1.FilterSplit} message FilterSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsRequest.toObject = function toObject(message, options) { + FilterSplit.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.trainingFilter = ""; + object.validationFilter = ""; + object.testFilter = ""; } - 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.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + object.trainingFilter = message.trainingFilter; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + object.validationFilter = message.validationFilter; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + object.testFilter = message.testFilter; return object; }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this FilterSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.FilterSplit * @instance * @returns {Object.} JSON object */ - ListPipelineJobsRequest.prototype.toJSON = function toJSON() { + FilterSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListPipelineJobsRequest; + return FilterSplit; })(); - v1beta1.ListPipelineJobsResponse = (function() { + v1beta1.PredefinedSplit = (function() { /** - * Properties of a ListPipelineJobsResponse. + * Properties of a PredefinedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListPipelineJobsResponse - * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs - * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken + * @interface IPredefinedSplit + * @property {string|null} [key] PredefinedSplit key */ /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new PredefinedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListPipelineJobsResponse. - * @implements IListPipelineJobsResponse + * @classdesc Represents a PredefinedSplit. + * @implements IPredefinedSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set */ - function ListPipelineJobsResponse(properties) { - this.pipelineJobs = []; + function PredefinedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255171,91 +258214,75 @@ } /** - * ListPipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse - * @instance - */ - ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; - - /** - * ListPipelineJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * PredefinedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @instance */ - ListPipelineJobsResponse.prototype.nextPageToken = ""; + PredefinedSplit.prototype.key = ""; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit instance */ - ListPipelineJobsResponse.create = function create(properties) { - return new ListPipelineJobsResponse(properties); + PredefinedSplit.create = function create(properties) { + return new PredefinedSplit(properties); }; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encode = function encode(message, writer) { + PredefinedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[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.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); return writer; }; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredefinedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decode = function decode(reader, length) { + PredefinedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.key = reader.string(); break; default: reader.skipType(tag & 7); @@ -255266,133 +258293,110 @@ }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a PredefinedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsResponse.verify = function verify(message) { + PredefinedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); - if (error) - return "pipelineJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.PredefinedSplit} PredefinedSplit */ - ListPipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse) + PredefinedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredefinedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.PredefinedSplit(); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse} message ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1beta1.PredefinedSplit} message PredefinedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsResponse.toObject = function toObject(message, options) { + PredefinedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this PredefinedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.PredefinedSplit * @instance * @returns {Object.} JSON object */ - ListPipelineJobsResponse.prototype.toJSON = function toJSON() { + PredefinedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListPipelineJobsResponse; + return PredefinedSplit; })(); - v1beta1.DeletePipelineJobRequest = (function() { + v1beta1.TimestampSplit = (function() { /** - * Properties of a DeletePipelineJobRequest. + * Properties of a TimestampSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeletePipelineJobRequest - * @property {string|null} [name] DeletePipelineJobRequest name + * @interface ITimestampSplit + * @property {number|null} [trainingFraction] TimestampSplit trainingFraction + * @property {number|null} [validationFraction] TimestampSplit validationFraction + * @property {number|null} [testFraction] TimestampSplit testFraction + * @property {string|null} [key] TimestampSplit key */ /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new TimestampSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeletePipelineJobRequest. - * @implements IDeletePipelineJobRequest + * @classdesc Represents a TimestampSplit. + * @implements ITimestampSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set */ - function DeletePipelineJobRequest(properties) { + function TimestampSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255400,75 +258404,114 @@ } /** - * DeletePipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * TimestampSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @instance */ - DeletePipelineJobRequest.prototype.name = ""; + TimestampSplit.prototype.trainingFraction = 0; /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * TimestampSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.validationFraction = 0; + + /** + * TimestampSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.testFraction = 0; + + /** + * TimestampSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit + * @instance + */ + TimestampSplit.prototype.key = ""; + + /** + * Creates a new TimestampSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit instance */ - DeletePipelineJobRequest.create = function create(properties) { - return new DeletePipelineJobRequest(properties); + TimestampSplit.create = function create(properties) { + return new TimestampSplit(properties); }; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encode = function encode(message, writer) { + TimestampSplit.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.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TimestampSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a TimestampSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decode = function decode(reader, length) { + TimestampSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.trainingFraction = reader.double(); + break; + case 2: + message.validationFraction = reader.double(); + break; + case 3: + message.testFraction = reader.double(); + break; + case 4: + message.key = reader.string(); break; default: reader.skipType(tag & 7); @@ -255479,107 +258522,135 @@ }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + TimestampSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a TimestampSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePipelineJobRequest.verify = function verify(message) { + TimestampSplit.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.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.TimestampSplit} TimestampSplit */ - DeletePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest) + TimestampSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TimestampSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.TimestampSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.TimestampSplit} message TimestampSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePipelineJobRequest.toObject = function toObject(message, options) { + TimestampSplit.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.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this TimestampSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.TimestampSplit * @instance * @returns {Object.} JSON object */ - DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + TimestampSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeletePipelineJobRequest; + return TimestampSplit; })(); - v1beta1.CancelPipelineJobRequest = (function() { + v1beta1.StratifiedSplit = (function() { /** - * Properties of a CancelPipelineJobRequest. + * Properties of a StratifiedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelPipelineJobRequest - * @property {string|null} [name] CancelPipelineJobRequest name + * @interface IStratifiedSplit + * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction + * @property {number|null} [validationFraction] StratifiedSplit validationFraction + * @property {number|null} [testFraction] StratifiedSplit testFraction + * @property {string|null} [key] StratifiedSplit key */ /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new StratifiedSplit. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelPipelineJobRequest. - * @implements ICancelPipelineJobRequest + * @classdesc Represents a StratifiedSplit. + * @implements IStratifiedSplit * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set */ - function CancelPipelineJobRequest(properties) { + function StratifiedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255587,75 +258658,114 @@ } /** - * CancelPipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * StratifiedSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance */ - CancelPipelineJobRequest.prototype.name = ""; + StratifiedSplit.prototype.trainingFraction = 0; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * StratifiedSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.validationFraction = 0; + + /** + * StratifiedSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.testFraction = 0; + + /** + * StratifiedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.key = ""; + + /** + * Creates a new StratifiedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit instance */ - CancelPipelineJobRequest.create = function create(properties) { - return new CancelPipelineJobRequest(properties); + StratifiedSplit.create = function create(properties) { + return new StratifiedSplit(properties); }; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encode = function encode(message, writer) { + StratifiedSplit.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.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StratifiedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a StratifiedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decode = function decode(reader, length) { + StratifiedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.trainingFraction = reader.double(); + break; + case 2: + message.validationFraction = reader.double(); + break; + case 3: + message.testFraction = reader.double(); + break; + case 4: + message.key = reader.string(); break; default: reader.skipType(tag & 7); @@ -255666,87 +258776,112 @@ }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a StratifiedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelPipelineJobRequest.verify = function verify(message) { + StratifiedSplit.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.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1beta1.StratifiedSplit} StratifiedSplit */ - CancelPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest) + StratifiedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StratifiedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.StratifiedSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest} message CancelPipelineJobRequest + * @param {google.cloud.aiplatform.v1beta1.StratifiedSplit} message StratifiedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelPipelineJobRequest.toObject = function toObject(message, options) { + StratifiedSplit.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.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this StratifiedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1beta1.StratifiedSplit * @instance * @returns {Object.} JSON object */ - CancelPipelineJobRequest.prototype.toJSON = function toJSON() { + StratifiedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelPipelineJobRequest; + return StratifiedSplit; })(); v1beta1.PredictionService = (function() { @@ -256151,6 +259286,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 */ @@ -256194,6 +259330,14 @@ */ PredictResponse.prototype.model = ""; + /** + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelVersionId = ""; + /** * PredictResponse modelDisplayName. * @member {string} modelDisplayName @@ -256235,6 +259379,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; }; @@ -256280,6 +259426,9 @@ case 3: message.model = reader.string(); break; + case 5: + message.modelVersionId = reader.string(); + break; case 4: message.modelDisplayName = reader.string(); break; @@ -256333,6 +259482,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"; @@ -256365,6 +259517,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; @@ -256389,6 +259543,7 @@ object.deployedModelId = ""; object.model = ""; object.modelDisplayName = ""; + object.modelVersionId = ""; } if (message.predictions && message.predictions.length) { object.predictions = []; @@ -256401,6 +259556,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; }; @@ -281542,6 +284699,354 @@ return schema; })(); + v1beta1.SpecialistPool = (function() { + + /** + * Properties of a SpecialistPool. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISpecialistPool + * @property {string|null} [name] SpecialistPool name + * @property {string|null} [displayName] SpecialistPool displayName + * @property {number|null} [specialistManagersCount] SpecialistPool specialistManagersCount + * @property {Array.|null} [specialistManagerEmails] SpecialistPool specialistManagerEmails + * @property {Array.|null} [pendingDataLabelingJobs] SpecialistPool pendingDataLabelingJobs + * @property {Array.|null} [specialistWorkerEmails] SpecialistPool specialistWorkerEmails + */ + + /** + * Constructs a new SpecialistPool. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SpecialistPool. + * @implements ISpecialistPool + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool=} [properties] Properties to set + */ + function SpecialistPool(properties) { + this.specialistManagerEmails = []; + this.pendingDataLabelingJobs = []; + this.specialistWorkerEmails = []; + 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]]; + } + + /** + * SpecialistPool name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.name = ""; + + /** + * SpecialistPool displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.displayName = ""; + + /** + * SpecialistPool specialistManagersCount. + * @member {number} specialistManagersCount + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.specialistManagersCount = 0; + + /** + * SpecialistPool specialistManagerEmails. + * @member {Array.} specialistManagerEmails + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.specialistManagerEmails = $util.emptyArray; + + /** + * SpecialistPool pendingDataLabelingJobs. + * @member {Array.} pendingDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.pendingDataLabelingJobs = $util.emptyArray; + + /** + * SpecialistPool specialistWorkerEmails. + * @member {Array.} specialistWorkerEmails + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + */ + SpecialistPool.prototype.specialistWorkerEmails = $util.emptyArray; + + /** + * Creates a new SpecialistPool instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool instance + */ + SpecialistPool.create = function create(properties) { + return new SpecialistPool(properties); + }; + + /** + * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool} message SpecialistPool message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpecialistPool.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.specialistManagersCount != null && Object.hasOwnProperty.call(message, "specialistManagersCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.specialistManagersCount); + if (message.specialistManagerEmails != null && message.specialistManagerEmails.length) + for (var i = 0; i < message.specialistManagerEmails.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.specialistManagerEmails[i]); + if (message.pendingDataLabelingJobs != null && message.pendingDataLabelingJobs.length) + for (var i = 0; i < message.pendingDataLabelingJobs.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pendingDataLabelingJobs[i]); + if (message.specialistWorkerEmails != null && message.specialistWorkerEmails.length) + for (var i = 0; i < message.specialistWorkerEmails.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.specialistWorkerEmails[i]); + return writer; + }; + + /** + * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SpecialistPool.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {google.cloud.aiplatform.v1beta1.ISpecialistPool} message SpecialistPool message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpecialistPool.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpecialistPool.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SpecialistPool(); + 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.specialistManagersCount = reader.int32(); + break; + case 4: + if (!(message.specialistManagerEmails && message.specialistManagerEmails.length)) + message.specialistManagerEmails = []; + message.specialistManagerEmails.push(reader.string()); + break; + case 5: + if (!(message.pendingDataLabelingJobs && message.pendingDataLabelingJobs.length)) + message.pendingDataLabelingJobs = []; + message.pendingDataLabelingJobs.push(reader.string()); + break; + case 7: + if (!(message.specialistWorkerEmails && message.specialistWorkerEmails.length)) + message.specialistWorkerEmails = []; + message.specialistWorkerEmails.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SpecialistPool.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SpecialistPool message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SpecialistPool.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.specialistManagersCount != null && message.hasOwnProperty("specialistManagersCount")) + if (!$util.isInteger(message.specialistManagersCount)) + return "specialistManagersCount: integer expected"; + if (message.specialistManagerEmails != null && message.hasOwnProperty("specialistManagerEmails")) { + if (!Array.isArray(message.specialistManagerEmails)) + return "specialistManagerEmails: array expected"; + for (var i = 0; i < message.specialistManagerEmails.length; ++i) + if (!$util.isString(message.specialistManagerEmails[i])) + return "specialistManagerEmails: string[] expected"; + } + if (message.pendingDataLabelingJobs != null && message.hasOwnProperty("pendingDataLabelingJobs")) { + if (!Array.isArray(message.pendingDataLabelingJobs)) + return "pendingDataLabelingJobs: array expected"; + for (var i = 0; i < message.pendingDataLabelingJobs.length; ++i) + if (!$util.isString(message.pendingDataLabelingJobs[i])) + return "pendingDataLabelingJobs: string[] expected"; + } + if (message.specialistWorkerEmails != null && message.hasOwnProperty("specialistWorkerEmails")) { + if (!Array.isArray(message.specialistWorkerEmails)) + return "specialistWorkerEmails: array expected"; + for (var i = 0; i < message.specialistWorkerEmails.length; ++i) + if (!$util.isString(message.specialistWorkerEmails[i])) + return "specialistWorkerEmails: string[] expected"; + } + return null; + }; + + /** + * Creates a SpecialistPool message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SpecialistPool} SpecialistPool + */ + SpecialistPool.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SpecialistPool) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SpecialistPool(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.specialistManagersCount != null) + message.specialistManagersCount = object.specialistManagersCount | 0; + if (object.specialistManagerEmails) { + if (!Array.isArray(object.specialistManagerEmails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.specialistManagerEmails: array expected"); + message.specialistManagerEmails = []; + for (var i = 0; i < object.specialistManagerEmails.length; ++i) + message.specialistManagerEmails[i] = String(object.specialistManagerEmails[i]); + } + if (object.pendingDataLabelingJobs) { + if (!Array.isArray(object.pendingDataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.pendingDataLabelingJobs: array expected"); + message.pendingDataLabelingJobs = []; + for (var i = 0; i < object.pendingDataLabelingJobs.length; ++i) + message.pendingDataLabelingJobs[i] = String(object.pendingDataLabelingJobs[i]); + } + if (object.specialistWorkerEmails) { + if (!Array.isArray(object.specialistWorkerEmails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SpecialistPool.specialistWorkerEmails: array expected"); + message.specialistWorkerEmails = []; + for (var i = 0; i < object.specialistWorkerEmails.length; ++i) + message.specialistWorkerEmails[i] = String(object.specialistWorkerEmails[i]); + } + return message; + }; + + /** + * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @static + * @param {google.cloud.aiplatform.v1beta1.SpecialistPool} message SpecialistPool + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SpecialistPool.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.specialistManagerEmails = []; + object.pendingDataLabelingJobs = []; + object.specialistWorkerEmails = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.specialistManagersCount = 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.specialistManagersCount != null && message.hasOwnProperty("specialistManagersCount")) + object.specialistManagersCount = message.specialistManagersCount; + if (message.specialistManagerEmails && message.specialistManagerEmails.length) { + object.specialistManagerEmails = []; + for (var j = 0; j < message.specialistManagerEmails.length; ++j) + object.specialistManagerEmails[j] = message.specialistManagerEmails[j]; + } + if (message.pendingDataLabelingJobs && message.pendingDataLabelingJobs.length) { + object.pendingDataLabelingJobs = []; + for (var j = 0; j < message.pendingDataLabelingJobs.length; ++j) + object.pendingDataLabelingJobs[j] = message.pendingDataLabelingJobs[j]; + } + if (message.specialistWorkerEmails && message.specialistWorkerEmails.length) { + object.specialistWorkerEmails = []; + for (var j = 0; j < message.specialistWorkerEmails.length; ++j) + object.specialistWorkerEmails[j] = message.specialistWorkerEmails[j]; + } + return object; + }; + + /** + * Converts this SpecialistPool to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SpecialistPool + * @instance + * @returns {Object.} JSON object + */ + SpecialistPool.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SpecialistPool; + })(); + v1beta1.SpecialistPoolService = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 3158f3d6bb9..034a51937f6 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -1096,7 +1096,8 @@ "JOB_STATE_CANCELLING": 6, "JOB_STATE_CANCELLED": 7, "JOB_STATE_PAUSED": 8, - "JOB_STATE_EXPIRED": 9 + "JOB_STATE_EXPIRED": 9, + "JOB_STATE_UPDATING": 10 } }, "MachineSpec": { @@ -1220,6 +1221,31 @@ } } }, + "NfsMount": { + "fields": { + "server": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "path": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "mountPoint": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "AutoscalingMetricSpec": { "fields": { "metricName": { @@ -1743,6 +1769,14 @@ "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, + "reservedIpRanges": { + "rule": "repeated", + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "baseOutputDirectory": { "type": "GcsDestination", "id": 6 @@ -1796,6 +1830,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "nfsMounts": { + "rule": "repeated", + "type": "NfsMount", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "diskSpec": { "type": "DiskSpec", "id": 5 @@ -3884,7 +3926,7 @@ "type": "OnlineServingConfig", "id": 7, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "state": { @@ -5795,7 +5837,8 @@ "automatedStoppingSpec": { "oneof": [ "decayCurveStoppingSpec", - "medianAutomatedStoppingSpec" + "medianAutomatedStoppingSpec", + "convexAutomatedStoppingSpec" ] } }, @@ -5808,6 +5851,10 @@ "type": "MedianAutomatedStoppingSpec", "id": 5 }, + "convexAutomatedStoppingSpec": { + "type": "ConvexAutomatedStoppingSpec", + "id": 9 + }, "metrics": { "rule": "repeated", "type": "MetricSpec", @@ -6123,6 +6170,30 @@ } } }, + "ConvexAutomatedStoppingSpec": { + "fields": { + "maxStepCount": { + "type": "int64", + "id": 1 + }, + "minStepCount": { + "type": "int64", + "id": 2 + }, + "minMeasurementCount": { + "type": "int64", + "id": 3 + }, + "learningRateParameterName": { + "type": "string", + "id": 4 + }, + "useElapsedDuration": { + "type": "bool", + "id": 5 + } + } + }, "Algorithm": { "values": { "ALGORITHM_UNSPECIFIED": 0, @@ -6326,6 +6397,7 @@ "type": "bool", "id": 10, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } } @@ -8448,6 +8520,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "latestMonitoringPipelineMetadata": { + "type": "LatestMonitoringPipelineMetadata", + "id": 25, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "modelDeploymentMonitoringObjectiveConfigs": { "rule": "repeated", "type": "ModelDeploymentMonitoringObjectiveConfig", @@ -8545,6 +8624,18 @@ } }, "nested": { + "LatestMonitoringPipelineMetadata": { + "fields": { + "runTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + } + } + }, "MonitoringScheduleState": { "values": { "MONITORING_SCHEDULE_STATE_UNSPECIFIED": 0, @@ -9770,7 +9861,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -9933,7 +10024,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -10166,7 +10257,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -11640,10 +11731,7 @@ }, "pipelineSpec": { "type": "google.protobuf.Struct", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 7 }, "state": { "type": "PipelineState", @@ -16753,31 +16841,6 @@ } } }, - "Value": { - "oneofs": { - "value": { - "oneof": [ - "intValue", - "doubleValue", - "stringValue" - ] - } - }, - "fields": { - "intValue": { - "type": "int64", - "id": 1 - }, - "doubleValue": { - "type": "double", - "id": 2 - }, - "stringValue": { - "type": "string", - "id": 3 - } - } - }, "BatchPredictionJob": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/BatchPredictionJob", @@ -16805,6 +16868,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 @@ -17160,7 +17230,7 @@ "sampledShapleyAttribution", "integratedGradientsAttribution", "xraiAttribution", - "similarity" + "examples" ] } }, @@ -17177,8 +17247,8 @@ "type": "XraiAttribution", "id": 3 }, - "similarity": { - "type": "Similarity", + "examples": { + "type": "Examples", "id": 7 }, "topK": { @@ -17295,7 +17365,7 @@ } } }, - "Similarity": { + "Examples": { "fields": { "gcsSource": { "type": "GcsSource", @@ -17304,6 +17374,10 @@ "nearestNeighborSearchConfig": { "type": "google.protobuf.Value", "id": 2 + }, + "neighborCount": { + "type": "int32", + "id": 3 } } }, @@ -17656,7 +17730,8 @@ "JOB_STATE_CANCELLING": 6, "JOB_STATE_CANCELLED": 7, "JOB_STATE_PAUSED": 8, - "JOB_STATE_EXPIRED": 9 + "JOB_STATE_EXPIRED": 9, + "JOB_STATE_UPDATING": 10 } }, "MachineSpec": { @@ -17780,6 +17855,31 @@ } } }, + "NfsMount": { + "fields": { + "server": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "path": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "mountPoint": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "AutoscalingMetricSpec": { "fields": { "metricName": { @@ -17806,235 +17906,61 @@ } } }, - "ModelMonitoringObjectiveConfig": { + "UnmanagedContainerModel": { "fields": { - "trainingDataset": { - "type": "TrainingDataset", + "artifactUri": { + "type": "string", "id": 1 }, - "trainingPredictionSkewDetectionConfig": { - "type": "TrainingPredictionSkewDetectionConfig", + "predictSchemata": { + "type": "PredictSchemata", "id": 2 }, - "predictionDriftDetectionConfig": { - "type": "PredictionDriftDetectionConfig", - "id": 3 - }, - "explanationConfig": { - "type": "ExplanationConfig", - "id": 5 + "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}" }, - "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 - } + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "versionId": { + "type": "string", + "id": 28, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "TrainingPredictionSkewDetectionConfig": { - "fields": { - "skewThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 1 - }, - "attributionScoreSkewThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 2 - } + "versionAliases": { + "rule": "repeated", + "type": "string", + "id": 29 + }, + "versionCreateTime": { + "type": "google.protobuf.Timestamp", + "id": 31, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "PredictionDriftDetectionConfig": { - "fields": { - "driftThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 1 - }, - "attributionScoreDriftThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 2 - } + "versionUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 32, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "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 - }, "displayName": { "type": "string", "id": 2, @@ -18046,6 +17972,10 @@ "type": "string", "id": 3 }, + "versionDescription": { + "type": "string", + "id": 30 + }, "predictSchemata": { "type": "PredictSchemata", "id": 4 @@ -18286,122 +18216,6 @@ } } }, - "Dataset": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Dataset", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "displayName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "description": { - "type": "string", - "id": 16, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "metadataSchemaUri": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "metadata": { - "type": "google.protobuf.Value", - "id": 8, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "etag": { - "type": "string", - "id": 6 - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 7 - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 11 - } - } - }, - "ImportDataConfig": { - "oneofs": { - "source": { - "oneof": [ - "gcsSource" - ] - } - }, - "fields": { - "gcsSource": { - "type": "GcsSource", - "id": 1 - }, - "dataItemLabels": { - "keyType": "string", - "type": "string", - "id": 2 - }, - "importSchemaUri": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "ExportDataConfig": { - "oneofs": { - "destination": { - "oneof": [ - "gcsDestination" - ] - } - }, - "fields": { - "gcsDestination": { - "type": "GcsDestination", - "id": 1 - }, - "annotationsFilter": { - "type": "string", - "id": 2 - } - } - }, "DeployedModelRef": { "fields": { "endpoint": { @@ -18619,10 +18433,18 @@ "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, - "baseOutputDirectory": { - "type": "GcsDestination", - "id": 6 - }, + "reservedIpRanges": { + "rule": "repeated", + "type": "string", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "baseOutputDirectory": { + "type": "GcsDestination", + "id": 6 + }, "tensorboard": { "type": "string", "id": 7, @@ -18672,6 +18494,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "nfsMounts": { + "rule": "repeated", + "type": "NfsMount", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "diskSpec": { "type": "DiskSpec", "id": 5 @@ -18989,17 +18819,17 @@ } } }, - "SpecialistPool": { + "Dataset": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/SpecialistPool", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/specialistPools/{specialist_pool}" + "(google.api.resource).type": "aiplatform.googleapis.com/Dataset", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}" }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "displayName": { @@ -19009,30 +18839,99 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "specialistManagersCount": { - "type": "int32", - "id": 3, + "description": { + "type": "string", + "id": 16, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "specialistManagerEmails": { - "rule": "repeated", + "metadataSchemaUri": { "type": "string", - "id": 4 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "pendingDataLabelingJobs": { - "rule": "repeated", - "type": "string", + "metadata": { + "type": "google.protobuf.Value", + "id": 8, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "specialistWorkerEmails": { - "rule": "repeated", + "etag": { + "type": "string", + "id": 6 + }, + "labels": { + "keyType": "string", "type": "string", "id": 7 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 11 + } + } + }, + "ImportDataConfig": { + "oneofs": { + "source": { + "oneof": [ + "gcsSource" + ] + } + }, + "fields": { + "gcsSource": { + "type": "GcsSource", + "id": 1 + }, + "dataItemLabels": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "importSchemaUri": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ExportDataConfig": { + "oneofs": { + "destination": { + "oneof": [ + "gcsDestination" + ] + } + }, + "fields": { + "gcsDestination": { + "type": "GcsDestination", + "id": 1 + }, + "annotationsFilter": { + "type": "string", + "id": 2 } } }, @@ -19593,10 +19492,29 @@ } } }, - "TrainingPipeline": { + "DeployedIndexRef": { + "fields": { + "indexEndpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" + } + }, + "deployedIndexId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "Endpoint": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/TrainingPipeline", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}" + "(google.api.resource).type": "aiplatform.googleapis.com/Endpoint", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/endpoints/{endpoint}" }, "fields": { "name": { @@ -19613,1156 +19531,1046 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "inputDataConfig": { - "type": "InputDataConfig", + "description": { + "type": "string", "id": 3 }, - "trainingTaskDefinition": { - "type": "string", + "deployedModels": { + "rule": "repeated", + "type": "DeployedModel", "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "trainingTaskInputs": { - "type": "google.protobuf.Value", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "trainingTaskMetadata": { - "type": "google.protobuf.Value", - "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "modelToUpload": { - "type": "Model", - "id": 7 + "trafficSplit": { + "keyType": "string", + "type": "int32", + "id": 5 }, - "state": { - "type": "PipelineState", - "id": 9, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "etag": { + "type": "string", + "id": 6 }, - "error": { - "type": "google.rpc.Status", - "id": 10, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "labels": { + "keyType": "string", + "type": "string", + "id": 7 }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 11, + "id": 8, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "startTime": { + "updateTime": { "type": "google.protobuf.Timestamp", - "id": 12, + "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "endTime": { - "type": "google.protobuf.Timestamp", + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 10 + }, + "network": { + "type": "string", "id": 13, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 14, + "enablePrivateServiceConnect": { + "type": "bool", + "id": 17, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "deprecated": true } }, - "labels": { - "keyType": "string", + "modelDeploymentMonitoringJob": { "type": "string", - "id": 15 + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } }, - "encryptionSpec": { - "type": "EncryptionSpec", + "predictRequestResponseLoggingConfig": { + "type": "PredictRequestResponseLoggingConfig", "id": 18 } } }, - "InputDataConfig": { + "DeployedModel": { "oneofs": { - "split": { - "oneof": [ - "fractionSplit", - "filterSplit", - "predefinedSplit", - "timestampSplit", - "stratifiedSplit" - ] - }, - "destination": { + "predictionResources": { "oneof": [ - "gcsDestination", - "bigqueryDestination" + "dedicatedResources", + "automaticResources" ] } }, "fields": { - "fractionSplit": { - "type": "FractionSplit", - "id": 2 + "dedicatedResources": { + "type": "DedicatedResources", + "id": 7 }, - "filterSplit": { - "type": "FilterSplit", - "id": 3 - }, - "predefinedSplit": { - "type": "PredefinedSplit", - "id": 4 - }, - "timestampSplit": { - "type": "TimestampSplit", - "id": 5 - }, - "stratifiedSplit": { - "type": "StratifiedSplit", - "id": 12 - }, - "gcsDestination": { - "type": "GcsDestination", + "automaticResources": { + "type": "AutomaticResources", "id": 8 }, - "bigqueryDestination": { - "type": "BigQueryDestination", - "id": 10 - }, - "datasetId": { + "id": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "annotationsFilter": { + "model": { "type": "string", - "id": 6 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } }, - "annotationSchemaUri": { + "modelVersionId": { + "type": "string", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { "type": "string", + "id": 3 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanationSpec": { + "type": "ExplanationSpec", "id": 9 - } - } - }, - "FractionSplit": { - "fields": { - "trainingFraction": { - "type": "double", - "id": 1 }, - "validationFraction": { - "type": "double", - "id": 2 + "serviceAccount": { + "type": "string", + "id": 11 }, - "testFraction": { - "type": "double", - "id": 3 + "enableContainerLogging": { + "type": "bool", + "id": 12 + }, + "enableAccessLogging": { + "type": "bool", + "id": 13 + }, + "privateEndpoints": { + "type": "PrivateEndpoints", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, - "FilterSplit": { + "PrivateEndpoints": { "fields": { - "trainingFilter": { + "predictHttpUri": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "validationFilter": { + "explainHttpUri": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "testFilter": { + "healthHttpUri": { "type": "string", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "PredefinedSplit": { - "fields": { - "key": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "TimestampSplit": { - "fields": { - "trainingFraction": { - "type": "double", - "id": 1 - }, - "validationFraction": { - "type": "double", - "id": 2 }, - "testFraction": { - "type": "double", - "id": 3 - }, - "key": { + "serviceAttachment": { "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "StratifiedSplit": { + "PredictRequestResponseLoggingConfig": { "fields": { - "trainingFraction": { - "type": "double", + "enabled": { + "type": "bool", "id": 1 }, - "validationFraction": { + "samplingRate": { "type": "double", "id": 2 }, - "testFraction": { - "type": "double", + "bigqueryDestination": { + "type": "BigQueryDestination", "id": 3 - }, - "key": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "PipelineState": { - "values": { - "PIPELINE_STATE_UNSPECIFIED": 0, - "PIPELINE_STATE_QUEUED": 1, - "PIPELINE_STATE_PENDING": 2, - "PIPELINE_STATE_RUNNING": 3, - "PIPELINE_STATE_SUCCEEDED": 4, - "PIPELINE_STATE_FAILED": 5, - "PIPELINE_STATE_CANCELLING": 6, - "PIPELINE_STATE_CANCELLED": 7, - "PIPELINE_STATE_PAUSED": 8 - } - }, - "DeployedIndexRef": { - "fields": { - "indexEndpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "IMMUTABLE", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/IndexEndpoint" - } - }, - "deployedIndexId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } } } }, - "Endpoint": { + "EndpointService": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Endpoint", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/endpoints/{endpoint}" + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, - "fields": { - "name": { - "type": "string", - "id": 1, + "methods": { + "CreateEndpoint": { + "requestType": "CreateEndpointRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/endpoints", + "(google.api.http).body": "endpoint", + "(google.api.method_signature)": "parent,endpoint,endpoint_id", + "(google.longrunning.operation_info).response_type": "Endpoint", + "(google.longrunning.operation_info).metadata_type": "CreateEndpointOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/endpoints", + "body": "endpoint" + } + }, + { + "(google.api.method_signature)": "parent,endpoint" + }, + { + "(google.api.method_signature)": "parent,endpoint,endpoint_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Endpoint", + "metadata_type": "CreateEndpointOperationMetadata" + } + } + ] }, - "displayName": { - "type": "string", - "id": 2, + "GetEndpoint": { + "requestType": "GetEndpointRequest", + "responseType": "Endpoint", "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "description": { - "type": "string", - "id": 3 + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/endpoints/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/endpoints/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "deployedModels": { - "rule": "repeated", - "type": "DeployedModel", - "id": 4, + "ListEndpoints": { + "requestType": "ListEndpointsRequest", + "responseType": "ListEndpointsResponse", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "trafficSplit": { - "keyType": "string", - "type": "int32", - "id": 5 - }, - "etag": { - "type": "string", - "id": 6 - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 7 + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/endpoints", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/endpoints" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 8, + "UpdateEndpoint": { + "requestType": "UpdateEndpointRequest", + "responseType": "Endpoint", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).patch": "/v1beta1/{endpoint.name=projects/*/locations/*/endpoints/*}", + "(google.api.http).body": "endpoint", + "(google.api.method_signature)": "endpoint,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{endpoint.name=projects/*/locations/*/endpoints/*}", + "body": "endpoint" + } + }, + { + "(google.api.method_signature)": "endpoint,update_mask" + } + ] }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 9, + "DeleteEndpoint": { + "requestType": "DeleteEndpointRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 10 + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/endpoints/*}", + "(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": "/v1beta1/{name=projects/*/locations/*/endpoints/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] }, - "network": { - "type": "string", - "id": 13, + "DeployModel": { + "requestType": "DeployModelRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.resource_reference).type": "compute.googleapis.com/Network" - } - }, - "enablePrivateServiceConnect": { - "type": "bool", - "id": 17 + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "endpoint,deployed_model,traffic_split", + "(google.longrunning.operation_info).response_type": "DeployModelResponse", + "(google.longrunning.operation_info).metadata_type": "DeployModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "endpoint,deployed_model,traffic_split" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "DeployModelResponse", + "metadata_type": "DeployModelOperationMetadata" + } + } + ] }, - "modelDeploymentMonitoringJob": { - "type": "string", - "id": 14, + "UndeployModel": { + "requestType": "UndeployModelRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" - } + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "endpoint,deployed_model_id,traffic_split", + "(google.longrunning.operation_info).response_type": "UndeployModelResponse", + "(google.longrunning.operation_info).metadata_type": "UndeployModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "endpoint,deployed_model_id,traffic_split" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "UndeployModelResponse", + "metadata_type": "UndeployModelOperationMetadata" + } + } + ] } } }, - "DeployedModel": { - "oneofs": { - "predictionResources": { - "oneof": [ - "dedicatedResources", - "automaticResources" - ] - } - }, + "CreateEndpointRequest": { "fields": { - "dedicatedResources": { - "type": "DedicatedResources", - "id": 7 - }, - "automaticResources": { - "type": "AutomaticResources", - "id": 8 - }, - "id": { + "parent": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "model": { - "type": "string", + "endpoint": { + "type": "Endpoint", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + "(google.api.field_behavior)": "REQUIRED" } }, - "displayName": { + "endpointId": { "type": "string", - "id": 3 - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 6, + "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IMMUTABLE" } - }, - "explanationSpec": { - "type": "ExplanationSpec", - "id": 9 - }, - "serviceAccount": { + } + } + }, + "CreateEndpointOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "GetEndpointRequest": { + "fields": { + "name": { "type": "string", - "id": 11 - }, - "enableContainerLogging": { - "type": "bool", - "id": 12 - }, - "enableAccessLogging": { - "type": "bool", - "id": 13 - }, - "privateEndpoints": { - "type": "PrivateEndpoints", - "id": 14, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } } } }, - "PrivateEndpoints": { + "ListEndpointsRequest": { "fields": { - "predictHttpUri": { + "parent": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "explainHttpUri": { + "filter": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "healthHttpUri": { - "type": "string", + "pageSize": { + "type": "int32", "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "serviceAttachment": { + "pageToken": { "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "ModelDeploymentMonitoringObjectiveType": { - "values": { - "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": 0, - "RAW_FEATURE_SKEW": 1, - "RAW_FEATURE_DRIFT": 2, - "FEATURE_ATTRIBUTION_SKEW": 3, - "FEATURE_ATTRIBUTION_DRIFT": 4 + "ListEndpointsResponse": { + "fields": { + "endpoints": { + "rule": "repeated", + "type": "Endpoint", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } } }, - "ModelDeploymentMonitoringJob": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" - }, + "UpdateEndpointRequest": { "fields": { - "name": { - "type": "string", + "endpoint": { + "type": "Endpoint", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "displayName": { - "type": "string", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "endpoint": { + } + } + }, + "DeleteEndpointRequest": { + "fields": { + "name": { "type": "string", - "id": 3, + "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } - }, - "state": { - "type": "JobState", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "scheduleState": { - "type": "MonitoringScheduleState", - "id": 5, + } + } + }, + "DeployModelRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "modelDeploymentMonitoringObjectiveConfigs": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringObjectiveConfig", - "id": 6, + "deployedModel": { + "type": "DeployedModel", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "modelDeploymentMonitoringScheduleConfig": { - "type": "ModelDeploymentMonitoringScheduleConfig", - "id": 7, + "trafficSplit": { + "keyType": "string", + "type": "int32", + "id": 3 + } + } + }, + "DeployModelResponse": { + "fields": { + "deployedModel": { + "type": "DeployedModel", + "id": 1 + } + } + }, + "DeployModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "UndeployModelRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "loggingSamplingStrategy": { - "type": "SamplingStrategy", - "id": 8, + "deployedModelId": { + "type": "string", + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "modelMonitoringAlertConfig": { - "type": "ModelMonitoringAlertConfig", - "id": 15 - }, - "predictInstanceSchemaUri": { - "type": "string", - "id": 9 - }, - "samplePredictInstance": { - "type": "google.protobuf.Value", - "id": 19 - }, - "analysisInstanceSchemaUri": { + "trafficSplit": { + "keyType": "string", + "type": "int32", + "id": 3 + } + } + }, + "UndeployModelResponse": { + "fields": {} + }, + "UndeployModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "EntityType": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/EntityType", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}" + }, + "fields": { + "name": { "type": "string", - "id": 16 - }, - "bigqueryTables": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringBigQueryTable", - "id": 10, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "logTtl": { - "type": "google.protobuf.Duration", - "id": 17 - }, - "labels": { - "keyType": "string", + "description": { "type": "string", - "id": 11 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 12, + "id": 3, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", - "id": 13, + "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "nextScheduleTime": { - "type": "google.protobuf.Timestamp", - "id": 14, + "labels": { + "keyType": "string", + "type": "string", + "id": 6, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "statsAnomaliesBaseDirectory": { - "type": "GcsDestination", - "id": 20 - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 21 - }, - "enableMonitoringPipelineLogs": { - "type": "bool", - "id": 22 - }, - "error": { - "type": "google.rpc.Status", - "id": 23, + "etag": { + "type": "string", + "id": 7, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } - } - }, - "nested": { - "MonitoringScheduleState": { - "values": { - "MONITORING_SCHEDULE_STATE_UNSPECIFIED": 0, - "PENDING": 1, - "OFFLINE": 2, - "RUNNING": 3 + }, + "monitoringConfig": { + "type": "FeaturestoreMonitoringConfig", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "ModelDeploymentMonitoringBigQueryTable": { + "FeaturestoreMonitoringConfig": { "fields": { - "logSource": { - "type": "LogSource", + "snapshotAnalysis": { + "type": "SnapshotAnalysis", "id": 1 }, - "logType": { - "type": "LogType", + "importFeaturesAnalysis": { + "type": "ImportFeaturesAnalysis", "id": 2 }, - "bigqueryTablePath": { - "type": "string", + "numericalThresholdConfig": { + "type": "ThresholdConfig", "id": 3 + }, + "categoricalThresholdConfig": { + "type": "ThresholdConfig", + "id": 4 } }, "nested": { - "LogSource": { - "values": { - "LOG_SOURCE_UNSPECIFIED": 0, - "TRAINING": 1, - "SERVING": 2 - } - }, - "LogType": { - "values": { - "LOG_TYPE_UNSPECIFIED": 0, - "PREDICT": 1, - "EXPLAIN": 2 - } - } - } - }, - "ModelDeploymentMonitoringObjectiveConfig": { - "fields": { - "deployedModelId": { - "type": "string", - "id": 1 + "SnapshotAnalysis": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + }, + "monitoringInterval": { + "type": "google.protobuf.Duration", + "id": 2, + "options": { + "deprecated": true + } + }, + "monitoringIntervalDays": { + "type": "int32", + "id": 3 + }, + "stalenessDays": { + "type": "int32", + "id": 4 + } + } }, - "objectiveConfig": { - "type": "ModelMonitoringObjectiveConfig", - "id": 2 + "ImportFeaturesAnalysis": { + "fields": { + "state": { + "type": "State", + "id": 1 + }, + "anomalyDetectionBaseline": { + "type": "Baseline", + "id": 2 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DEFAULT": 1, + "ENABLED": 2, + "DISABLED": 3 + } + }, + "Baseline": { + "values": { + "BASELINE_UNSPECIFIED": 0, + "LATEST_STATS": 1, + "MOST_RECENT_SNAPSHOT_STATS": 2, + "PREVIOUS_IMPORT_FEATURES_STATS": 3 + } + } + } + }, + "ThresholdConfig": { + "oneofs": { + "threshold": { + "oneof": [ + "value" + ] + } + }, + "fields": { + "value": { + "type": "double", + "id": 1 + } + } } } }, - "ModelDeploymentMonitoringScheduleConfig": { + "Event": { "fields": { - "monitorInterval": { - "type": "google.protobuf.Duration", + "artifact": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Artifact" } - } - } - }, - "ModelMonitoringStatsAnomalies": { - "fields": { - "objective": { - "type": "ModelDeploymentMonitoringObjectiveType", - "id": 1 }, - "deployedModelId": { + "execution": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Execution" + } }, - "anomalyCount": { - "type": "int32", - "id": 3 + "eventTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "featureStats": { - "rule": "repeated", - "type": "FeatureHistoricStatsAnomalies", - "id": 4 + "type": { + "type": "Type", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 5 } }, "nested": { - "FeatureHistoricStatsAnomalies": { - "fields": { - "featureDisplayName": { - "type": "string", - "id": 1 - }, - "threshold": { - "type": "ThresholdConfig", - "id": 3 - }, - "trainingStats": { - "type": "FeatureStatsAnomaly", - "id": 4 - }, - "predictionStats": { - "rule": "repeated", - "type": "FeatureStatsAnomaly", - "id": 5 - } + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "INPUT": 1, + "OUTPUT": 2 } } } }, - "FeatureStatsAnomaly": { + "Execution": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Execution", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}" + }, "fields": { - "score": { - "type": "double", - "id": 1 - }, - "statsUri": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "anomalyUri": { + "displayName": { "type": "string", - "id": 4 + "id": 2 }, - "distributionDeviation": { - "type": "double", - "id": 5 + "state": { + "type": "State", + "id": 6 }, - "anomalyDetectionThreshold": { - "type": "double", + "etag": { + "type": "string", "id": 9 }, - "startTime": { + "labels": { + "keyType": "string", + "type": "string", + "id": 10 + }, + "createTime": { "type": "google.protobuf.Timestamp", - "id": 7 + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "endTime": { + "updateTime": { "type": "google.protobuf.Timestamp", - "id": 8 + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "schemaTitle": { + "type": "string", + "id": 13 + }, + "schemaVersion": { + "type": "string", + "id": 14 + }, + "metadata": { + "type": "google.protobuf.Struct", + "id": 15 + }, + "description": { + "type": "string", + "id": 16 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "NEW": 1, + "RUNNING": 2, + "COMPLETE": 3, + "FAILED": 4, + "CACHED": 5, + "CANCELLED": 6 + } } } }, - "EndpointService": { + "Feature": { "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + "(google.api.resource).type": "aiplatform.googleapis.com/Feature", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}" }, - "methods": { - "CreateEndpoint": { - "requestType": "CreateEndpointRequest", - "responseType": "google.longrunning.Operation", + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/endpoints", - "(google.api.http).body": "endpoint", - "(google.api.method_signature)": "parent,endpoint,endpoint_id", - "(google.longrunning.operation_info).response_type": "Endpoint", - "(google.longrunning.operation_info).metadata_type": "CreateEndpointOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/endpoints", - "body": "endpoint" - } - }, - { - "(google.api.method_signature)": "parent,endpoint" - }, - { - "(google.api.method_signature)": "parent,endpoint,endpoint_id" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Endpoint", - "metadata_type": "CreateEndpointOperationMetadata" - } - } - ] - }, - "GetEndpoint": { - "requestType": "GetEndpointRequest", - "responseType": "Endpoint", - "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/endpoints/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/endpoints/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ListEndpoints": { - "requestType": "ListEndpointsRequest", - "responseType": "ListEndpointsResponse", - "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/endpoints", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/endpoints" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "UpdateEndpoint": { - "requestType": "UpdateEndpointRequest", - "responseType": "Endpoint", - "options": { - "(google.api.http).patch": "/v1beta1/{endpoint.name=projects/*/locations/*/endpoints/*}", - "(google.api.http).body": "endpoint", - "(google.api.method_signature)": "endpoint,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1beta1/{endpoint.name=projects/*/locations/*/endpoints/*}", - "body": "endpoint" - } - }, - { - "(google.api.method_signature)": "endpoint,update_mask" - } - ] - }, - "DeleteEndpoint": { - "requestType": "DeleteEndpointRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/endpoints/*}", - "(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": "/v1beta1/{name=projects/*/locations/*/endpoints/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" - } - } - ] - }, - "DeployModel": { - "requestType": "DeployModelRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel", - "(google.api.http).body": "*", - "(google.api.method_signature)": "endpoint,deployed_model,traffic_split", - "(google.longrunning.operation_info).response_type": "DeployModelResponse", - "(google.longrunning.operation_info).metadata_type": "DeployModelOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel", - "body": "*" - } - }, - { - "(google.api.method_signature)": "endpoint,deployed_model,traffic_split" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "DeployModelResponse", - "metadata_type": "DeployModelOperationMetadata" - } - } - ] + "(google.api.field_behavior)": "IMMUTABLE" + } }, - "UndeployModel": { - "requestType": "UndeployModelRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel", - "(google.api.http).body": "*", - "(google.api.method_signature)": "endpoint,deployed_model_id,traffic_split", - "(google.longrunning.operation_info).response_type": "UndeployModelResponse", - "(google.longrunning.operation_info).metadata_type": "UndeployModelOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel", - "body": "*" - } - }, - { - "(google.api.method_signature)": "endpoint,deployed_model_id,traffic_split" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "UndeployModelResponse", - "metadata_type": "UndeployModelOperationMetadata" - } - } - ] - } - } - }, - "CreateEndpointRequest": { - "fields": { - "parent": { + "description": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } + "id": 2 }, - "endpoint": { - "type": "Endpoint", - "id": 2, + "valueType": { + "type": "ValueType", + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "IMMUTABLE" } }, - "endpointId": { - "type": "string", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 4, "options": { - "(google.api.field_behavior)": "IMMUTABLE" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "CreateEndpointOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 - } - } - }, - "GetEndpointRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ListEndpointsRequest": { - "fields": { - "parent": { + }, + "labels": { + "keyType": "string", "type": "string", - "id": 1, + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.field_behavior)": "OPTIONAL" } }, - "filter": { + "etag": { "type": "string", - "id": 2, + "id": 7 + }, + "monitoringConfig": { + "type": "FeaturestoreMonitoringConfig", + "id": 9, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } }, - "pageSize": { - "type": "int32", - "id": 3, + "disableMonitoring": { + "type": "bool", + "id": 12, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "pageToken": { - "type": "string", - "id": 4, + "monitoringStats": { + "rule": "repeated", + "type": "FeatureStatsAnomaly", + "id": 10, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5, + "monitoringStatsAnomalies": { + "rule": "repeated", + "type": "MonitoringStatsAnomaly", + "id": 11, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "ListEndpointsResponse": { - "fields": { - "endpoints": { - "rule": "repeated", - "type": "Endpoint", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "UpdateEndpointRequest": { - "fields": { - "endpoint": { - "type": "Endpoint", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + }, + "nested": { + "MonitoringStatsAnomaly": { + "fields": { + "objective": { + "type": "Objective", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "featureStatsAnomaly": { + "type": "FeatureStatsAnomaly", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "Objective": { + "values": { + "OBJECTIVE_UNSPECIFIED": 0, + "IMPORT_FEATURE_ANALYSIS": 1, + "SNAPSHOT_ANALYSIS": 2 + } + } } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "ValueType": { + "values": { + "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 } } } }, - "DeleteEndpointRequest": { + "FeatureStatsAnomaly": { "fields": { - "name": { + "score": { + "type": "double", + "id": 1 + }, + "statsUri": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } + "id": 3 + }, + "anomalyUri": { + "type": "string", + "id": 4 + }, + "distributionDeviation": { + "type": "double", + "id": 5 + }, + "anomalyDetectionThreshold": { + "type": "double", + "id": 9 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 } } }, - "DeployModelRequest": { + "IdMatcher": { "fields": { - "endpoint": { + "ids": { + "rule": "repeated", "type": "string", "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "deployedModel": { - "type": "DeployedModel", - "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "trafficSplit": { - "keyType": "string", - "type": "int32", - "id": 3 - } - } - }, - "DeployModelResponse": { - "fields": { - "deployedModel": { - "type": "DeployedModel", - "id": 1 } } }, - "DeployModelOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 - } - } - }, - "UndeployModelRequest": { + "FeatureSelector": { "fields": { - "endpoint": { - "type": "string", + "idMatcher": { + "type": "IdMatcher", "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "deployedModelId": { - "type": "string", - "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "trafficSplit": { - "keyType": "string", - "type": "int32", - "id": 3 - } - } - }, - "UndeployModelResponse": { - "fields": {} - }, - "UndeployModelOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 } } }, - "EntityType": { + "Featurestore": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/EntityType", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}" + "(google.api.resource).type": "aiplatform.googleapis.com/Featurestore", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}" }, "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "description": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "createTime": { @@ -20779,66 +20587,11 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "labels": { - "keyType": "string", - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, "etag": { "type": "string", - "id": 7, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "monitoringConfig": { - "type": "FeaturestoreMonitoringConfig", - "id": 8, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "Feature": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Feature", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "description": { - "type": "string", - "id": 2 - }, - "valueType": { - "type": "ValueType", - "id": 3, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, "labels": { @@ -20849,1005 +20602,648 @@ "(google.api.field_behavior)": "OPTIONAL" } }, - "etag": { - "type": "string", - "id": 7 - }, - "monitoringConfig": { - "type": "FeaturestoreMonitoringConfig", - "id": 9, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "disableMonitoring": { - "type": "bool", - "id": 12, + "onlineServingConfig": { + "type": "OnlineServingConfig", + "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "monitoringStats": { - "rule": "repeated", - "type": "FeatureStatsAnomaly", - "id": 10, + "state": { + "type": "State", + "id": 8, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "monitoringStatsAnomalies": { - "rule": "repeated", - "type": "MonitoringStatsAnomaly", - "id": 11, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 10, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { - "MonitoringStatsAnomaly": { + "OnlineServingConfig": { "fields": { - "objective": { - "type": "Objective", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "fixedNodeCount": { + "type": "int32", + "id": 2 }, - "featureStatsAnomaly": { - "type": "FeatureStatsAnomaly", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "scaling": { + "type": "Scaling", + "id": 4 } }, "nested": { - "Objective": { - "values": { - "OBJECTIVE_UNSPECIFIED": 0, - "IMPORT_FEATURE_ANALYSIS": 1, - "SNAPSHOT_ANALYSIS": 2 + "Scaling": { + "fields": { + "minNodeCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxNodeCount": { + "type": "int32", + "id": 2 + } } } } }, - "ValueType": { + "State": { "values": { - "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 + "STATE_UNSPECIFIED": 0, + "STABLE": 1, + "UPDATING": 2 } } } }, - "FeaturestoreMonitoringConfig": { + "FeaturestoreOnlineServingService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "ReadFeatureValues": { + "requestType": "ReadFeatureValuesRequest", + "responseType": "ReadFeatureValuesResponse", + "options": { + "(google.api.http).post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type" + } + ] + }, + "StreamingReadFeatureValues": { + "requestType": "StreamingReadFeatureValuesRequest", + "responseType": "ReadFeatureValuesResponse", + "responseStream": true, + "options": { + "(google.api.http).post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type" + } + ] + } + } + }, + "ReadFeatureValuesRequest": { "fields": { - "snapshotAnalysis": { - "type": "SnapshotAnalysis", - "id": 1 + "entityType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + } }, - "importFeaturesAnalysis": { - "type": "ImportFeaturesAnalysis", - "id": 2 + "entityId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "numericalThresholdConfig": { - "type": "ThresholdConfig", - "id": 3 + "featureSelector": { + "type": "FeatureSelector", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ReadFeatureValuesResponse": { + "fields": { + "header": { + "type": "Header", + "id": 1 }, - "categoricalThresholdConfig": { - "type": "ThresholdConfig", - "id": 4 + "entityView": { + "type": "EntityView", + "id": 2 } }, "nested": { - "SnapshotAnalysis": { + "FeatureDescriptor": { "fields": { - "disabled": { - "type": "bool", + "id": { + "type": "string", "id": 1 - }, - "monitoringInterval": { - "type": "google.protobuf.Duration", - "id": 2, + } + } + }, + "Header": { + "fields": { + "entityType": { + "type": "string", + "id": 1, "options": { - "deprecated": true + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" } }, - "monitoringIntervalDays": { - "type": "int32", - "id": 3 - }, - "stalenessDays": { - "type": "int32", - "id": 4 + "featureDescriptors": { + "rule": "repeated", + "type": "FeatureDescriptor", + "id": 2 } } }, - "ImportFeaturesAnalysis": { + "EntityView": { "fields": { - "state": { - "type": "State", + "entityId": { + "type": "string", "id": 1 }, - "anomalyDetectionBaseline": { - "type": "Baseline", + "data": { + "rule": "repeated", + "type": "Data", "id": 2 } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "DEFAULT": 1, - "ENABLED": 2, - "DISABLED": 3 - } - }, - "Baseline": { - "values": { - "BASELINE_UNSPECIFIED": 0, - "LATEST_STATS": 1, - "MOST_RECENT_SNAPSHOT_STATS": 2, - "PREVIOUS_IMPORT_FEATURES_STATS": 3 + "Data": { + "oneofs": { + "data": { + "oneof": [ + "value", + "values" + ] + } + }, + "fields": { + "value": { + "type": "FeatureValue", + "id": 1 + }, + "values": { + "type": "FeatureValueList", + "id": 2 + } } } } - }, - "ThresholdConfig": { - "oneofs": { - "threshold": { - "oneof": [ - "value" - ] - } - }, - "fields": { - "value": { - "type": "double", - "id": 1 - } - } } } }, - "Event": { + "StreamingReadFeatureValuesRequest": { "fields": { - "artifact": { + "entityType": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Artifact" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" } }, - "execution": { + "entityIds": { + "rule": "repeated", "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Execution" + "(google.api.field_behavior)": "REQUIRED" } }, - "eventTime": { - "type": "google.protobuf.Timestamp", + "featureSelector": { + "type": "FeatureSelector", "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "type": { - "type": "Type", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 5 - } - }, - "nested": { - "Type": { - "values": { - "TYPE_UNSPECIFIED": 0, - "INPUT": 1, - "OUTPUT": 2 + "(google.api.field_behavior)": "REQUIRED" } } } }, - "Execution": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Execution", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}" + "FeatureValue": { + "oneofs": { + "value": { + "oneof": [ + "boolValue", + "doubleValue", + "int64Value", + "stringValue", + "boolArrayValue", + "doubleArrayValue", + "int64ArrayValue", + "stringArrayValue", + "bytesValue" + ] + } }, "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "boolValue": { + "type": "bool", + "id": 1 }, - "displayName": { - "type": "string", + "doubleValue": { + "type": "double", "id": 2 }, - "state": { - "type": "State", - "id": 6 + "int64Value": { + "type": "int64", + "id": 5 }, - "etag": { + "stringValue": { "type": "string", - "id": 9 + "id": 6 }, - "labels": { - "keyType": "string", - "type": "string", - "id": 10 + "boolArrayValue": { + "type": "BoolArray", + "id": 7 }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "doubleArrayValue": { + "type": "DoubleArray", + "id": 8 }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 12, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "int64ArrayValue": { + "type": "Int64Array", + "id": 11 }, - "schemaTitle": { - "type": "string", - "id": 13 + "stringArrayValue": { + "type": "StringArray", + "id": 12 }, - "schemaVersion": { - "type": "string", - "id": 14 + "bytesValue": { + "type": "bytes", + "id": 13 }, "metadata": { - "type": "google.protobuf.Struct", - "id": 15 - }, - "description": { - "type": "string", - "id": 16 + "type": "Metadata", + "id": 14 } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "NEW": 1, - "RUNNING": 2, - "COMPLETE": 3, - "FAILED": 4, - "CACHED": 5, - "CANCELLED": 6 + "Metadata": { + "fields": { + "generateTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + } } } } }, - "IdMatcher": { + "FeatureValueList": { "fields": { - "ids": { + "values": { "rule": "repeated", - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "type": "FeatureValue", + "id": 1 } } }, - "FeatureSelector": { + "BoolArray": { "fields": { - "idMatcher": { - "type": "IdMatcher", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "values": { + "rule": "repeated", + "type": "bool", + "id": 1 } } }, - "Featurestore": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Featurestore", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}" - }, + "DoubleArray": { "fields": { - "name": { + "values": { + "rule": "repeated", + "type": "double", + "id": 1 + } + } + }, + "Int64Array": { + "fields": { + "values": { + "rule": "repeated", + "type": "int64", + "id": 1 + } + } + }, + "StringArray": { + "fields": { + "values": { + "rule": "repeated", "type": "string", - "id": 1, + "id": 1 + } + } + }, + "FeaturestoreService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateFeaturestore": { + "requestType": "CreateFeaturestoreRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/featurestores", + "(google.api.http).body": "featurestore", + "(google.api.method_signature)": "parent,featurestore,featurestore_id", + "(google.longrunning.operation_info).response_type": "Featurestore", + "(google.longrunning.operation_info).metadata_type": "CreateFeaturestoreOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/featurestores", + "body": "featurestore" + } + }, + { + "(google.api.method_signature)": "parent,featurestore" + }, + { + "(google.api.method_signature)": "parent,featurestore,featurestore_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Featurestore", + "metadata_type": "CreateFeaturestoreOperationMetadata" + } + } + ] }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 3, + "GetFeaturestore": { + "requestType": "GetFeaturestoreRequest", + "responseType": "Featurestore", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featurestores/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/featurestores/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 4, + "ListFeaturestores": { + "requestType": "ListFeaturestoresRequest", + "responseType": "ListFeaturestoresResponse", "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/featurestores", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/featurestores" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, - "etag": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "onlineServingConfig": { - "type": "OnlineServingConfig", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "state": { - "type": "State", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 10, + "UpdateFeaturestore": { + "requestType": "UpdateFeaturestoreRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - }, - "nested": { - "OnlineServingConfig": { - "fields": { - "fixedNodeCount": { - "type": "int32", - "id": 2 - }, - "scaling": { - "type": "Scaling", - "id": 4 - } + "(google.api.http).patch": "/v1beta1/{featurestore.name=projects/*/locations/*/featurestores/*}", + "(google.api.http).body": "featurestore", + "(google.api.method_signature)": "featurestore,update_mask", + "(google.longrunning.operation_info).response_type": "Featurestore", + "(google.longrunning.operation_info).metadata_type": "UpdateFeaturestoreOperationMetadata" }, - "nested": { - "Scaling": { - "fields": { - "minNodeCount": { - "type": "int32", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "maxNodeCount": { - "type": "int32", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{featurestore.name=projects/*/locations/*/featurestores/*}", + "body": "featurestore" + } + }, + { + "(google.api.method_signature)": "featurestore,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Featurestore", + "metadata_type": "UpdateFeaturestoreOperationMetadata" } } - } + ] }, - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "STABLE": 1, - "UPDATING": 2 - } - } - } - }, - "FeaturestoreOnlineServingService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "ReadFeatureValues": { - "requestType": "ReadFeatureValuesRequest", - "responseType": "ReadFeatureValuesResponse", + "DeleteFeaturestore": { + "requestType": "DeleteFeaturestoreRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", - "(google.api.http).body": "*", - "(google.api.method_signature)": "entity_type" + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*}", + "(google.api.method_signature)": "name,force", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", - "body": "*" + "delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*}" } }, { - "(google.api.method_signature)": "entity_type" + "(google.api.method_signature)": "name" + }, + { + "(google.api.method_signature)": "name,force" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } } ] }, - "StreamingReadFeatureValues": { - "requestType": "StreamingReadFeatureValuesRequest", - "responseType": "ReadFeatureValuesResponse", - "responseStream": true, + "CreateEntityType": { + "requestType": "CreateEntityTypeRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", - "(google.api.http).body": "*", - "(google.api.method_signature)": "entity_type" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", + "(google.api.http).body": "entity_type", + "(google.api.method_signature)": "parent,entity_type,entity_type_id", + "(google.longrunning.operation_info).response_type": "EntityType", + "(google.longrunning.operation_info).metadata_type": "CreateEntityTypeOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", - "body": "*" + "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", + "body": "entity_type" } }, { - "(google.api.method_signature)": "entity_type" + "(google.api.method_signature)": "parent,entity_type" + }, + { + "(google.api.method_signature)": "parent,entity_type,entity_type_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "EntityType", + "metadata_type": "CreateEntityTypeOperationMetadata" + } } ] - } - } - }, - "ReadFeatureValuesRequest": { - "fields": { - "entityType": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" - } }, - "entityId": { - "type": "string", - "id": 2, + "GetEntityType": { + "requestType": "GetEntityTypeRequest", + "responseType": "EntityType", "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "featureSelector": { - "type": "FeatureSelector", - "id": 3, + "ListEntityTypes": { + "requestType": "ListEntityTypesRequest", + "responseType": "ListEntityTypesResponse", "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "ReadFeatureValuesResponse": { - "fields": { - "header": { - "type": "Header", - "id": 1 - }, - "entityView": { - "type": "EntityView", - "id": 2 - } - }, - "nested": { - "FeatureDescriptor": { - "fields": { - "id": { - "type": "string", - "id": 1 + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes" + } + }, + { + "(google.api.method_signature)": "parent" } - } + ] }, - "Header": { - "fields": { - "entityType": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + "UpdateEntityType": { + "requestType": "UpdateEntityTypeRequest", + "responseType": "EntityType", + "options": { + "(google.api.http).patch": "/v1beta1/{entity_type.name=projects/*/locations/*/featurestores/*/entityTypes/*}", + "(google.api.http).body": "entity_type", + "(google.api.method_signature)": "entity_type,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{entity_type.name=projects/*/locations/*/featurestores/*/entityTypes/*}", + "body": "entity_type" } }, - "featureDescriptors": { - "rule": "repeated", - "type": "FeatureDescriptor", - "id": 2 + { + "(google.api.method_signature)": "entity_type,update_mask" } - } + ] }, - "EntityView": { - "fields": { - "entityId": { - "type": "string", - "id": 1 - }, - "data": { - "rule": "repeated", - "type": "Data", - "id": 2 - } - }, - "nested": { - "Data": { - "oneofs": { - "data": { - "oneof": [ - "value", - "values" - ] - } - }, - "fields": { - "value": { - "type": "FeatureValue", - "id": 1 - }, - "values": { - "type": "FeatureValueList", - "id": 2 - } - } - } - } - } - } - }, - "StreamingReadFeatureValuesRequest": { - "fields": { - "entityType": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" - } - }, - "entityIds": { - "rule": "repeated", - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "featureSelector": { - "type": "FeatureSelector", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "FeatureValue": { - "oneofs": { - "value": { - "oneof": [ - "boolValue", - "doubleValue", - "int64Value", - "stringValue", - "boolArrayValue", - "doubleArrayValue", - "int64ArrayValue", - "stringArrayValue", - "bytesValue" - ] - } - }, - "fields": { - "boolValue": { - "type": "bool", - "id": 1 - }, - "doubleValue": { - "type": "double", - "id": 2 - }, - "int64Value": { - "type": "int64", - "id": 5 - }, - "stringValue": { - "type": "string", - "id": 6 - }, - "boolArrayValue": { - "type": "BoolArray", - "id": 7 - }, - "doubleArrayValue": { - "type": "DoubleArray", - "id": 8 - }, - "int64ArrayValue": { - "type": "Int64Array", - "id": 11 - }, - "stringArrayValue": { - "type": "StringArray", - "id": 12 - }, - "bytesValue": { - "type": "bytes", - "id": 13 - }, - "metadata": { - "type": "Metadata", - "id": 14 - } - }, - "nested": { - "Metadata": { - "fields": { - "generateTime": { - "type": "google.protobuf.Timestamp", - "id": 1 - } - } - } - } - }, - "FeatureValueList": { - "fields": { - "values": { - "rule": "repeated", - "type": "FeatureValue", - "id": 1 - } - } - }, - "BoolArray": { - "fields": { - "values": { - "rule": "repeated", - "type": "bool", - "id": 1 - } - } - }, - "DoubleArray": { - "fields": { - "values": { - "rule": "repeated", - "type": "double", - "id": 1 - } - } - }, - "Int64Array": { - "fields": { - "values": { - "rule": "repeated", - "type": "int64", - "id": 1 - } - } - }, - "StringArray": { - "fields": { - "values": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - }, - "FeaturestoreService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "CreateFeaturestore": { - "requestType": "CreateFeaturestoreRequest", + "DeleteEntityType": { + "requestType": "DeleteEntityTypeRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/featurestores", - "(google.api.http).body": "featurestore", - "(google.api.method_signature)": "parent,featurestore,featurestore_id", - "(google.longrunning.operation_info).response_type": "Featurestore", - "(google.longrunning.operation_info).metadata_type": "CreateFeaturestoreOperationMetadata" + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}", + "(google.api.method_signature)": "name,force", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/featurestores", - "body": "featurestore" + "delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" } }, { - "(google.api.method_signature)": "parent,featurestore" + "(google.api.method_signature)": "name" }, { - "(google.api.method_signature)": "parent,featurestore,featurestore_id" + "(google.api.method_signature)": "name,force" }, { "(google.longrunning.operation_info)": { - "response_type": "Featurestore", - "metadata_type": "CreateFeaturestoreOperationMetadata" + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" } } ] }, - "GetFeaturestore": { - "requestType": "GetFeaturestoreRequest", - "responseType": "Featurestore", + "CreateFeature": { + "requestType": "CreateFeatureRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featurestores/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features", + "(google.api.http).body": "feature", + "(google.api.method_signature)": "parent,feature,feature_id", + "(google.longrunning.operation_info).response_type": "Feature", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/featurestores/*}" + "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features", + "body": "feature" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "parent,feature" + }, + { + "(google.api.method_signature)": "parent,feature,feature_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Feature", + "metadata_type": "CreateFeatureOperationMetadata" + } } ] }, - "ListFeaturestores": { - "requestType": "ListFeaturestoresRequest", - "responseType": "ListFeaturestoresResponse", + "BatchCreateFeatures": { + "requestType": "BatchCreateFeaturesRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/featurestores", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features:batchCreate", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,requests", + "(google.longrunning.operation_info).response_type": "BatchCreateFeaturesResponse", + "(google.longrunning.operation_info).metadata_type": "BatchCreateFeaturesOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/featurestores" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "UpdateFeaturestore": { - "requestType": "UpdateFeaturestoreRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).patch": "/v1beta1/{featurestore.name=projects/*/locations/*/featurestores/*}", - "(google.api.http).body": "featurestore", - "(google.api.method_signature)": "featurestore,update_mask", - "(google.longrunning.operation_info).response_type": "Featurestore", - "(google.longrunning.operation_info).metadata_type": "UpdateFeaturestoreOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1beta1/{featurestore.name=projects/*/locations/*/featurestores/*}", - "body": "featurestore" - } - }, - { - "(google.api.method_signature)": "featurestore,update_mask" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Featurestore", - "metadata_type": "UpdateFeaturestoreOperationMetadata" - } - } - ] - }, - "DeleteFeaturestore": { - "requestType": "DeleteFeaturestoreRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*}", - "(google.api.method_signature)": "name,force", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.api.method_signature)": "name,force" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" - } - } - ] - }, - "CreateEntityType": { - "requestType": "CreateEntityTypeRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", - "(google.api.http).body": "entity_type", - "(google.api.method_signature)": "parent,entity_type,entity_type_id", - "(google.longrunning.operation_info).response_type": "EntityType", - "(google.longrunning.operation_info).metadata_type": "CreateEntityTypeOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", - "body": "entity_type" - } - }, - { - "(google.api.method_signature)": "parent,entity_type" - }, - { - "(google.api.method_signature)": "parent,entity_type,entity_type_id" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "EntityType", - "metadata_type": "CreateEntityTypeOperationMetadata" - } - } - ] - }, - "GetEntityType": { - "requestType": "GetEntityTypeRequest", - "responseType": "EntityType", - "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ListEntityTypes": { - "requestType": "ListEntityTypesRequest", - "responseType": "ListEntityTypesResponse", - "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*/featurestores/*}/entityTypes" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "UpdateEntityType": { - "requestType": "UpdateEntityTypeRequest", - "responseType": "EntityType", - "options": { - "(google.api.http).patch": "/v1beta1/{entity_type.name=projects/*/locations/*/featurestores/*/entityTypes/*}", - "(google.api.http).body": "entity_type", - "(google.api.method_signature)": "entity_type,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v1beta1/{entity_type.name=projects/*/locations/*/featurestores/*/entityTypes/*}", - "body": "entity_type" - } - }, - { - "(google.api.method_signature)": "entity_type,update_mask" - } - ] - }, - "DeleteEntityType": { - "requestType": "DeleteEntityTypeRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}", - "(google.api.method_signature)": "name,force", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.api.method_signature)": "name,force" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" - } - } - ] - }, - "CreateFeature": { - "requestType": "CreateFeatureRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features", - "(google.api.http).body": "feature", - "(google.api.method_signature)": "parent,feature,feature_id", - "(google.longrunning.operation_info).response_type": "Feature", - "(google.longrunning.operation_info).metadata_type": "CreateFeatureOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features", - "body": "feature" - } - }, - { - "(google.api.method_signature)": "parent,feature" - }, - { - "(google.api.method_signature)": "parent,feature,feature_id" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Feature", - "metadata_type": "CreateFeatureOperationMetadata" - } - } - ] - }, - "BatchCreateFeatures": { - "requestType": "BatchCreateFeaturesRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features:batchCreate", - "(google.api.http).body": "*", - "(google.api.method_signature)": "parent,requests", - "(google.longrunning.operation_info).response_type": "BatchCreateFeaturesResponse", - "(google.longrunning.operation_info).metadata_type": "BatchCreateFeaturesOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features:batchCreate", - "body": "*" + "post": "/v1beta1/{parent=projects/*/locations/*/featurestores/*/entityTypes/*}/features:batchCreate", + "body": "*" } }, { @@ -23143,7 +22539,8 @@ "oneof": [ "decayCurveStoppingSpec", "medianAutomatedStoppingSpec", - "convexStopConfig" + "convexStopConfig", + "convexAutomatedStoppingSpec" ] } }, @@ -23163,6 +22560,10 @@ "deprecated": true } }, + "convexAutomatedStoppingSpec": { + "type": "ConvexAutomatedStoppingSpec", + "id": 9 + }, "metrics": { "rule": "repeated", "type": "MetricSpec", @@ -23478,6 +22879,30 @@ } } }, + "ConvexAutomatedStoppingSpec": { + "fields": { + "maxStepCount": { + "type": "int64", + "id": 1 + }, + "minStepCount": { + "type": "int64", + "id": 2 + }, + "minMeasurementCount": { + "type": "int64", + "id": 3 + }, + "learningRateParameterName": { + "type": "string", + "id": 4 + }, + "useElapsedDuration": { + "type": "bool", + "id": 5 + } + } + }, "ConvexStopConfig": { "options": { "deprecated": true @@ -23708,6 +23133,7 @@ "type": "bool", "id": 10, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } } @@ -25779,29 +25205,19 @@ } } }, - "LineageSubgraph": { - "fields": { - "artifacts": { - "rule": "repeated", - "type": "Artifact", - "id": 1 - }, - "executions": { - "rule": "repeated", - "type": "Execution", - "id": 2 - }, - "events": { - "rule": "repeated", - "type": "Event", - "id": 3 - } + "ModelDeploymentMonitoringObjectiveType": { + "values": { + "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": 0, + "RAW_FEATURE_SKEW": 1, + "RAW_FEATURE_DRIFT": 2, + "FEATURE_ATTRIBUTION_SKEW": 3, + "FEATURE_ATTRIBUTION_DRIFT": 4 } }, - "MetadataSchema": { + "ModelDeploymentMonitoringJob": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + "(google.api.resource).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}" }, "fields": { "name": { @@ -25811,195 +25227,681 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "schemaVersion": { + "displayName": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "schema": { + "endpoint": { "type": "string", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" } }, - "schemaType": { - "type": "MetadataSchemaType", - "id": 4 + "state": { + "type": "JobState", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "createTime": { - "type": "google.protobuf.Timestamp", + "scheduleState": { + "type": "MonitoringScheduleState", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "description": { - "type": "string", - "id": 6 - } - }, - "nested": { - "MetadataSchemaType": { - "values": { - "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, - "ARTIFACT_TYPE": 1, - "EXECUTION_TYPE": 2, - "CONTEXT_TYPE": 3 - } - } - } - }, - "MetadataService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "CreateMetadataStore": { - "requestType": "CreateMetadataStoreRequest", - "responseType": "google.longrunning.Operation", + "latestMonitoringPipelineMetadata": { + "type": "LatestMonitoringPipelineMetadata", + "id": 25, "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "(google.api.http).body": "metadata_store", - "(google.api.method_signature)": "parent,metadata_store,metadata_store_id", - "(google.longrunning.operation_info).response_type": "MetadataStore", - "(google.longrunning.operation_info).metadata_type": "CreateMetadataStoreOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "body": "metadata_store" - } - }, - { - "(google.api.method_signature)": "parent,metadata_store,metadata_store_id" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "MetadataStore", - "metadata_type": "CreateMetadataStoreOperationMetadata" - } - } - ] + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "GetMetadataStore": { - "requestType": "GetMetadataStoreRequest", - "responseType": "MetadataStore", + "modelDeploymentMonitoringObjectiveConfigs": { + "rule": "repeated", + "type": "ModelDeploymentMonitoringObjectiveConfig", + "id": 6, "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "ListMetadataStores": { - "requestType": "ListMetadataStoresRequest", - "responseType": "ListMetadataStoresResponse", + "modelDeploymentMonitoringScheduleConfig": { + "type": "ModelDeploymentMonitoringScheduleConfig", + "id": 7, "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "DeleteMetadataStore": { - "requestType": "DeleteMetadataStoreRequest", - "responseType": "google.longrunning.Operation", + "loggingSamplingStrategy": { + "type": "SamplingStrategy", + "id": 8, "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "DeleteMetadataStoreOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteMetadataStoreOperationMetadata" - } - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "CreateArtifact": { - "requestType": "CreateArtifactRequest", - "responseType": "Artifact", + "modelMonitoringAlertConfig": { + "type": "ModelMonitoringAlertConfig", + "id": 15 + }, + "predictInstanceSchemaUri": { + "type": "string", + "id": 9 + }, + "samplePredictInstance": { + "type": "google.protobuf.Value", + "id": 19 + }, + "analysisInstanceSchemaUri": { + "type": "string", + "id": 16 + }, + "bigqueryTables": { + "rule": "repeated", + "type": "ModelDeploymentMonitoringBigQueryTable", + "id": 10, "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "(google.api.http).body": "artifact", - "(google.api.method_signature)": "parent,artifact,artifact_id" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "body": "artifact" - } - }, - { - "(google.api.method_signature)": "parent,artifact,artifact_id" - } - ] + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "GetArtifact": { - "requestType": "GetArtifactRequest", - "responseType": "Artifact", + "logTtl": { + "type": "google.protobuf.Duration", + "id": 17 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 11 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 12, "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "ListArtifacts": { - "requestType": "ListArtifactsRequest", - "responseType": "ListArtifactsResponse", + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 13, "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nextScheduleTime": { + "type": "google.protobuf.Timestamp", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "statsAnomaliesBaseDirectory": { + "type": "GcsDestination", + "id": 20 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 21 + }, + "enableMonitoringPipelineLogs": { + "type": "bool", + "id": 22 + }, + "error": { + "type": "google.rpc.Status", + "id": 23, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "LatestMonitoringPipelineMetadata": { + "fields": { + "runTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + } + } + }, + "MonitoringScheduleState": { + "values": { + "MONITORING_SCHEDULE_STATE_UNSPECIFIED": 0, + "PENDING": 1, + "OFFLINE": 2, + "RUNNING": 3 + } + } + } + }, + "ModelDeploymentMonitoringBigQueryTable": { + "fields": { + "logSource": { + "type": "LogSource", + "id": 1 + }, + "logType": { + "type": "LogType", + "id": 2 + }, + "bigqueryTablePath": { + "type": "string", + "id": 3 + } + }, + "nested": { + "LogSource": { + "values": { + "LOG_SOURCE_UNSPECIFIED": 0, + "TRAINING": 1, + "SERVING": 2 + } + }, + "LogType": { + "values": { + "LOG_TYPE_UNSPECIFIED": 0, + "PREDICT": 1, + "EXPLAIN": 2 + } + } + } + }, + "ModelDeploymentMonitoringObjectiveConfig": { + "fields": { + "deployedModelId": { + "type": "string", + "id": 1 + }, + "objectiveConfig": { + "type": "ModelMonitoringObjectiveConfig", + "id": 2 + } + } + }, + "ModelDeploymentMonitoringScheduleConfig": { + "fields": { + "monitorInterval": { + "type": "google.protobuf.Duration", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ModelMonitoringStatsAnomalies": { + "fields": { + "objective": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "deployedModelId": { + "type": "string", + "id": 2 + }, + "anomalyCount": { + "type": "int32", + "id": 3 + }, + "featureStats": { + "rule": "repeated", + "type": "FeatureHistoricStatsAnomalies", + "id": 4 + } + }, + "nested": { + "FeatureHistoricStatsAnomalies": { + "fields": { + "featureDisplayName": { + "type": "string", + "id": 1 + }, + "threshold": { + "type": "ThresholdConfig", + "id": 3 + }, + "trainingStats": { + "type": "FeatureStatsAnomaly", + "id": 4 + }, + "predictionStats": { + "rule": "repeated", + "type": "FeatureStatsAnomaly", + "id": 5 + } + } + } + } + }, + "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": { + "rule": "repeated", + "type": "Artifact", + "id": 1 + }, + "executions": { + "rule": "repeated", + "type": "Execution", + "id": 2 + }, + "events": { + "rule": "repeated", + "type": "Event", + "id": 3 + } + } + }, + "MetadataSchema": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "schemaVersion": { + "type": "string", + "id": 2 + }, + "schema": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "schemaType": { + "type": "MetadataSchemaType", + "id": 4 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 6 + } + }, + "nested": { + "MetadataSchemaType": { + "values": { + "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, + "ARTIFACT_TYPE": 1, + "EXECUTION_TYPE": 2, + "CONTEXT_TYPE": 3 + } + } + } + }, + "MetadataService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateMetadataStore": { + "requestType": "CreateMetadataStoreRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "(google.api.http).body": "metadata_store", + "(google.api.method_signature)": "parent,metadata_store,metadata_store_id", + "(google.longrunning.operation_info).response_type": "MetadataStore", + "(google.longrunning.operation_info).metadata_type": "CreateMetadataStoreOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "body": "metadata_store" + } + }, + { + "(google.api.method_signature)": "parent,metadata_store,metadata_store_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "MetadataStore", + "metadata_type": "CreateMetadataStoreOperationMetadata" + } + } + ] + }, + "GetMetadataStore": { + "requestType": "GetMetadataStoreRequest", + "responseType": "MetadataStore", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListMetadataStores": { + "requestType": "ListMetadataStoresRequest", + "responseType": "ListMetadataStoresResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/metadataStores" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteMetadataStore": { + "requestType": "DeleteMetadataStoreRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteMetadataStoreOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/metadataStores/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteMetadataStoreOperationMetadata" + } + } + ] + }, + "CreateArtifact": { + "requestType": "CreateArtifactRequest", + "responseType": "Artifact", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "(google.api.http).body": "artifact", + "(google.api.method_signature)": "parent,artifact,artifact_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "body": "artifact" + } + }, + { + "(google.api.method_signature)": "parent,artifact,artifact_id" + } + ] + }, + "GetArtifact": { + "requestType": "GetArtifactRequest", + "responseType": "Artifact", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListArtifacts": { + "requestType": "ListArtifactsRequest", + "responseType": "ListArtifactsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "UpdateArtifact": { "requestType": "UpdateArtifactRequest", @@ -26695,7 +26597,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -26858,7 +26760,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -27091,7 +26993,7 @@ "type": "google.protobuf.FieldMask", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "allowMissing": { @@ -28017,6 +27919,24 @@ } ] }, + "ListModelVersions": { + "requestType": "ListModelVersionsRequest", + "responseType": "ListModelVersionsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/models/*}:listVersions", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/models/*}:listVersions" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "UpdateModel": { "requestType": "UpdateModelRequest", "responseType": "Model", @@ -28063,6 +27983,52 @@ } ] }, + "DeleteModelVersion": { + "requestType": "DeleteModelVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{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": "/v1beta1/{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": "/v1beta1/{name=projects/*/locations/*/models/*}:mergeVersionAliases", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,version_aliases" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/models/*}:mergeVersionAliases", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,version_aliases" + } + ] + }, "ExportModel": { "requestType": "ExportModelRequest", "responseType": "google.longrunning.Operation", @@ -28195,6 +28161,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, @@ -28220,6 +28200,13 @@ "options": { "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -28276,6 +28263,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": { @@ -28306,6 +28334,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": { @@ -28553,10 +28613,7 @@ }, "pipelineSpec": { "type": "google.protobuf.Struct", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 7 }, "state": { "type": "PipelineState", @@ -28872,6 +28929,44 @@ } } }, + "PipelineState": { + "values": { + "PIPELINE_STATE_UNSPECIFIED": 0, + "PIPELINE_STATE_QUEUED": 1, + "PIPELINE_STATE_PENDING": 2, + "PIPELINE_STATE_RUNNING": 3, + "PIPELINE_STATE_SUCCEEDED": 4, + "PIPELINE_STATE_FAILED": 5, + "PIPELINE_STATE_CANCELLING": 6, + "PIPELINE_STATE_CANCELLED": 7, + "PIPELINE_STATE_PAUSED": 8 + } + }, + "Value": { + "oneofs": { + "value": { + "oneof": [ + "intValue", + "doubleValue", + "stringValue" + ] + } + }, + "fields": { + "intValue": { + "type": "int64", + "id": 1 + }, + "doubleValue": { + "type": "double", + "id": 2 + }, + "stringValue": { + "type": "string", + "id": 3 + } + } + }, "PipelineService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -29022,69 +29117,200 @@ "requestType": "ListPipelineJobsRequest", "responseType": "ListPipelineJobsResponse", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeletePipelineJob": { + "requestType": "DeletePipelineJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", + "(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": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelPipelineJob": { + "requestType": "CancelPipelineJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "CreateTrainingPipelineRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "trainingPipeline": { + "type": "TrainingPipeline", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "ListTrainingPipelinesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListTrainingPipelinesResponse": { + "fields": { + "trainingPipelines": { + "rule": "repeated", + "type": "TrainingPipeline", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "CancelTrainingPipelineRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + } + } + } + }, + "CreatePipelineJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } }, - "DeletePipelineJob": { - "requestType": "DeletePipelineJobRequest", - "responseType": "google.longrunning.Operation", + "pipelineJob": { + "type": "PipelineJob", + "id": 2, "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}", - "(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": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "DeleteOperationMetadata" - } - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "CancelPipelineJob": { - "requestType": "CancelPipelineJobRequest", - "responseType": "google.protobuf.Empty", + "pipelineJobId": { + "type": "string", + "id": 3 + } + } + }, + "GetPipelineJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}:cancel", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } } } }, - "CreateTrainingPipelineRequest": { + "ListPipelineJobsRequest": { "fields": { "parent": { "type": "string", @@ -29094,188 +29320,335 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "trainingPipeline": { - "type": "TrainingPipeline", - "id": 2, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListPipelineJobsResponse": { + "fields": { + "pipelineJobs": { + "rule": "repeated", + "type": "PipelineJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeletePipelineJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" } } } }, - "GetTrainingPipelineRequest": { + "CancelPipelineJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } + } + } + }, + "TrainingPipeline": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/TrainingPipeline", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "inputDataConfig": { + "type": "InputDataConfig", + "id": 3 + }, + "trainingTaskDefinition": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainingTaskInputs": { + "type": "google.protobuf.Value", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainingTaskMetadata": { + "type": "google.protobuf.Value", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "modelToUpload": { + "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, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 15 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 18 } } }, - "ListTrainingPipelinesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } + "InputDataConfig": { + "oneofs": { + "split": { + "oneof": [ + "fractionSplit", + "filterSplit", + "predefinedSplit", + "timestampSplit", + "stratifiedSplit" + ] }, - "filter": { - "type": "string", + "destination": { + "oneof": [ + "gcsDestination", + "bigqueryDestination" + ] + } + }, + "fields": { + "fractionSplit": { + "type": "FractionSplit", "id": 2 }, - "pageSize": { - "type": "int32", + "filterSplit": { + "type": "FilterSplit", "id": 3 }, - "pageToken": { - "type": "string", + "predefinedSplit": { + "type": "PredefinedSplit", "id": 4 }, - "readMask": { - "type": "google.protobuf.FieldMask", + "timestampSplit": { + "type": "TimestampSplit", "id": 5 - } - } - }, - "ListTrainingPipelinesResponse": { - "fields": { - "trainingPipelines": { - "rule": "repeated", - "type": "TrainingPipeline", - "id": 1 }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "DeleteTrainingPipelineRequest": { - "fields": { - "name": { + "stratifiedSplit": { + "type": "StratifiedSplit", + "id": 12 + }, + "gcsDestination": { + "type": "GcsDestination", + "id": 8 + }, + "bigqueryDestination": { + "type": "BigQueryDestination", + "id": 10 + }, + "datasetId": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" + "(google.api.field_behavior)": "REQUIRED" } + }, + "annotationsFilter": { + "type": "string", + "id": 6 + }, + "annotationSchemaUri": { + "type": "string", + "id": 9 } } }, - "CancelTrainingPipelineRequest": { + "FractionSplit": { "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/TrainingPipeline" - } + "trainingFraction": { + "type": "double", + "id": 1 + }, + "validationFraction": { + "type": "double", + "id": 2 + }, + "testFraction": { + "type": "double", + "id": 3 } } }, - "CreatePipelineJobRequest": { + "FilterSplit": { "fields": { - "parent": { + "trainingFilter": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + "(google.api.field_behavior)": "REQUIRED" } }, - "pipelineJob": { - "type": "PipelineJob", + "validationFilter": { + "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "pipelineJobId": { + "testFilter": { "type": "string", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "GetPipelineJobRequest": { + "PredefinedSplit": { "fields": { - "name": { + "key": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListPipelineJobsRequest": { + "TimestampSplit": { "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } + "trainingFraction": { + "type": "double", + "id": 1 }, - "filter": { - "type": "string", + "validationFraction": { + "type": "double", "id": 2 }, - "pageSize": { - "type": "int32", + "testFraction": { + "type": "double", "id": 3 }, - "pageToken": { - "type": "string", - "id": 4 - }, - "orderBy": { + "key": { "type": "string", - "id": 6 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ListPipelineJobsResponse": { + "StratifiedSplit": { "fields": { - "pipelineJobs": { - "rule": "repeated", - "type": "PipelineJob", + "trainingFraction": { + "type": "double", "id": 1 }, - "nextPageToken": { - "type": "string", + "validationFraction": { + "type": "double", "id": 2 - } - } - }, - "DeletePipelineJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" - } - } - } - }, - "CancelPipelineJobRequest": { - "fields": { - "name": { + }, + "testFraction": { + "type": "double", + "id": 3 + }, + "key": { "type": "string", - "id": 1, + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + "(google.api.field_behavior)": "REQUIRED" } } } @@ -29391,6 +29764,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, @@ -31182,6 +31562,53 @@ } } }, + "SpecialistPool": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/SpecialistPool", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/specialistPools/{specialist_pool}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "specialistManagersCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "specialistManagerEmails": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "pendingDataLabelingJobs": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "specialistWorkerEmails": { + "rule": "repeated", + "type": "string", + "id": 7 + } + } + }, "SpecialistPoolService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_artifact.js index 1276b8bf223..d341fb89ff4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_artifact.js @@ -20,7 +20,7 @@ 'use strict'; -function main(artifact, updateMask) { +function main(artifact) { // [START aiplatform_v1_generated_MetadataService_UpdateArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(artifact, updateMask) { */ // const artifact = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(artifact, updateMask) { // Construct request const request = { artifact, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_context.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_context.js index 4d7d0779eb6..f4a2bfddca2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_context.js @@ -20,7 +20,7 @@ 'use strict'; -function main(context, updateMask) { +function main(context) { // [START aiplatform_v1_generated_MetadataService_UpdateContext_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(context, updateMask) { */ // const context = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(context, updateMask) { // Construct request const request = { context, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js index 400bc73ab65..15bb46b52ed 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.update_execution.js @@ -20,7 +20,7 @@ 'use strict'; -function main(execution, updateMask) { +function main(execution) { // [START aiplatform_v1_generated_MetadataService_UpdateExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(execution, updateMask) { */ // const execution = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(execution, updateMask) { // Construct request const request = { execution, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js index 0ef89d550d2..55c147f7fd3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.update_model.js @@ -27,6 +27,23 @@ function main(model, updateMask) { */ /** * Required. The Model which replaces the resource on the server. + * When Model Versioning is enabled, the model.name will be used to determine + * whether to update the model or model version. + * 1. model.name with the @ value, e.g. models/123@1, refers to a version + * specific update. + * 2. model.name without the @ value, e.g. models/123, refers to a model + * update. + * 3. model.name with @-, e.g. models/123@-, refers to a model update. + * 4. Supported model fields: display_name, description; supported + * version-specific fields: version_description. Labels are supported in both + * scenarios. Both the model labels and the version labels are merged when a + * model is returned. When updating labels, if the request is for + * model-specific update, model label gets updated. Otherwise, version labels + * get updated. + * 5. A model name or model version name fields update mismatch will cause a + * precondition error. + * 6. One request cannot update both the model and the version fields. You + * must update them separately. */ // const model = {} /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js index 4e45243415a..415a6da8230 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/pipeline_service.list_pipeline_jobs.js @@ -46,6 +46,9 @@ function main(parent) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index 7ba8964458b..08b2cefdf59 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -4090,7 +4090,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -4370,7 +4370,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -4786,7 +4786,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -5438,7 +5438,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 73, "type": "FULL" } ], @@ -6110,7 +6110,7 @@ "segments": [ { "start": 25, - "end": 108, + "end": 111, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js index b82b182e1ec..d7ff365443e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_artifact.js @@ -20,7 +20,7 @@ 'use strict'; -function main(artifact, updateMask) { +function main(artifact) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateArtifact_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(artifact, updateMask) { */ // const artifact = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(artifact, updateMask) { // Construct request const request = { artifact, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js index 5cf2d88b20c..537a57a649f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_context.js @@ -20,7 +20,7 @@ 'use strict'; -function main(context, updateMask) { +function main(context) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateContext_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(context, updateMask) { */ // const context = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(context, updateMask) { // Construct request const request = { context, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js index c82673192ec..c230d74aa7f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.update_execution.js @@ -20,7 +20,7 @@ 'use strict'; -function main(execution, updateMask) { +function main(execution) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateExecution_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -34,7 +34,7 @@ function main(execution, updateMask) { */ // const execution = {} /** - * Required. A FieldMask indicating which fields should be updated. + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. */ // const updateMask = {} @@ -54,7 +54,6 @@ function main(execution, updateMask) { // Construct request const request = { execution, - updateMask, }; // Run request diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model_version.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model_version.js new file mode 100644 index 00000000000..c5bdee4fbd4 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/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_v1beta1_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').v1beta1; + + // 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_v1beta1_generated_ModelService_DeleteModelVersion_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_versions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.list_model_versions.js new file mode 100644 index 00000000000..703f5450751 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/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_v1beta1_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.v1beta1.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').v1beta1; + + // 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_v1beta1_generated_ModelService_ListModelVersions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.merge_version_aliases.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.merge_version_aliases.js new file mode 100644 index 00000000000..93004d1a27c --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/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_v1beta1_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').v1beta1; + + // 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_v1beta1_generated_ModelService_MergeVersionAliases_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js index e717a9e6379..6bf2ef34bd3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.update_model.js @@ -27,6 +27,23 @@ function main(model, updateMask) { */ /** * Required. The Model which replaces the resource on the server. + * When Model Versioning is enabled, the model.name will be used to determine + * whether to update the model or model version. + * 1. model.name with the @ value, e.g. models/123@1, refers to a version + * specific update. + * 2. model.name without the @ value, e.g. models/123, refers to a model + * update. + * 3. model.name with @-, e.g. models/123@-, refers to a model update. + * 4. Supported model fields: display_name, description; supported + * version-specific fields: version_description. Labels are supported in both + * scenarios. Both the model labels and the version labels are merged when a + * model is returned. When updating labels, if the request is for + * model-specific update, model label gets updated. Otherwise, version labels + * get updated. + * 5. A model name or model version name fields update mismatch will cause a + * precondition error. + * 6. One request cannot update both the model and the version fields. You + * must update them separately. */ // const model = {} /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js index 6e08f607d70..baa1edd03ac 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.upload_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/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/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js index 070919ca353..9439da5697c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js @@ -46,6 +46,9 @@ function main(parent) { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index c4c44ff4b19..2abadddb8b4 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -4086,7 +4086,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -4366,7 +4366,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -4782,7 +4782,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 64, "type": "FULL" } ], @@ -5290,7 +5290,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 69, "type": "FULL" } ], @@ -5303,6 +5303,14 @@ "name": "parent", "type": "TYPE_STRING" }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "model_id", + "type": "TYPE_STRING" + }, { "name": "model", "type": ".google.cloud.aiplatform.v1beta1.Model" @@ -5419,6 +5427,62 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_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.v1beta1.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.v1beta1.ListModelVersionsResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "ListModelVersions", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_UpdateModel_async", "title": "DatasetService updateModel Sample", @@ -5430,7 +5494,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 73, "type": "FULL" } ], @@ -5503,6 +5567,90 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_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.v1beta1.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.v1beta1.ModelService.DeleteModelVersion", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "DeleteModelVersion", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_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.v1beta1.ModelService.MergeVersionAliases", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "version_aliases", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.Model", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "MergeVersionAliases", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_ExportModel_async", "title": "DatasetService exportModel Sample", @@ -6102,7 +6250,7 @@ "segments": [ { "start": 25, - "end": 108, + "end": 111, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index b0eceba5c1e..a431d9a0d18 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -867,8 +867,8 @@ export class MetadataServiceClient { * be updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1.Artifact|Artifact} is not found, a new {@link google.cloud.aiplatform.v1.Artifact|Artifact} is @@ -1159,8 +1159,8 @@ export class MetadataServiceClient { * updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1.Context|Context} is not found, a new {@link google.cloud.aiplatform.v1.Context|Context} is @@ -1778,8 +1778,8 @@ export class MetadataServiceClient { * to be updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1.Execution|Execution} is not found, a new {@link google.cloud.aiplatform.v1.Execution|Execution} diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index a04a7081e93..f077ecda1e7 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -575,6 +575,23 @@ export class ModelServiceClient { * The request object that will be sent. * @param {google.cloud.aiplatform.v1.Model} request.model * Required. The Model which replaces the resource on the server. + * When Model Versioning is enabled, the model.name will be used to determine + * whether to update the model or model version. + * 1. model.name with the @ value, e.g. models/123@1, refers to a version + * specific update. + * 2. model.name without the @ value, e.g. models/123, refers to a model + * update. + * 3. model.name with @-, e.g. models/123@-, refers to a model update. + * 4. Supported model fields: display_name, description; supported + * version-specific fields: version_description. Labels are supported in both + * scenarios. Both the model labels and the version labels are merged when a + * model is returned. When updating labels, if the request is for + * model-specific update, model label gets updated. Otherwise, version labels + * get updated. + * 5. A model name or model version name fields update mismatch will cause a + * precondition error. + * 6. One request cannot update both the model and the version fields. You + * must update them separately. * @param {google.protobuf.FieldMask} request.updateMask * Required. The update mask applies to the resource. * For the `FieldMask` definition, see {@link google.protobuf.FieldMask|google.protobuf.FieldMask}. diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index ead9c88ee76..fbf0342291a 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -1645,6 +1645,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1792,6 +1795,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1887,6 +1893,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 32560ccec64..52343ee578e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -1359,6 +1359,11 @@ "updateModel" ] }, + "MergeVersionAliases": { + "methods": [ + "mergeVersionAliases" + ] + }, "ImportModelEvaluation": { "methods": [ "importModelEvaluation" @@ -1384,6 +1389,11 @@ "deleteModel" ] }, + "DeleteModelVersion": { + "methods": [ + "deleteModelVersion" + ] + }, "ExportModel": { "methods": [ "exportModel" @@ -1396,6 +1406,13 @@ "listModelsAsync" ] }, + "ListModelVersions": { + "methods": [ + "listModelVersions", + "listModelVersionsStream", + "listModelVersionsAsync" + ] + }, "ListModelEvaluations": { "methods": [ "listModelEvaluations", @@ -1425,6 +1442,11 @@ "updateModel" ] }, + "MergeVersionAliases": { + "methods": [ + "mergeVersionAliases" + ] + }, "ImportModelEvaluation": { "methods": [ "importModelEvaluation" @@ -1450,6 +1472,11 @@ "deleteModel" ] }, + "DeleteModelVersion": { + "methods": [ + "deleteModelVersion" + ] + }, "ExportModel": { "methods": [ "exportModel" @@ -1462,6 +1489,13 @@ "listModelsAsync" ] }, + "ListModelVersions": { + "methods": [ + "listModelVersions", + "listModelVersionsStream", + "listModelVersionsAsync" + ] + }, "ListModelEvaluations": { "methods": [ "listModelEvaluations", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index 764aa9dd7d7..51510f6257b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -879,8 +879,8 @@ export class MetadataServiceClient { * be updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1beta1.Artifact|Artifact} is not found, a new {@link google.cloud.aiplatform.v1beta1.Artifact|Artifact} is @@ -1177,8 +1177,8 @@ export class MetadataServiceClient { * updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1beta1.Context|Context} is not found, a new {@link google.cloud.aiplatform.v1beta1.Context|Context} is @@ -1814,8 +1814,8 @@ export class MetadataServiceClient { * to be updated. * Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - * @param {google.protobuf.FieldMask} request.updateMask - * Required. A FieldMask indicating which fields should be updated. + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. A FieldMask indicating which fields should be updated. * Functionality of this field is not yet supported. * @param {boolean} request.allowMissing * If set to true, and the {@link google.cloud.aiplatform.v1beta1.Execution|Execution} is not found, a new {@link google.cloud.aiplatform.v1beta1.Execution|Execution} diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index b6cfa2502f4..c16ccca2f54 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -277,6 +277,11 @@ export class ModelServiceClient { 'nextPageToken', 'models' ), + listModelVersions: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'models' + ), listModelEvaluations: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -313,6 +318,12 @@ export class ModelServiceClient { const deleteModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteModelVersionResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteModelVersionMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const exportModelResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.ExportModelResponse' ) as gax.protobuf.Type; @@ -331,6 +342,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,8 +407,11 @@ export class ModelServiceClient { 'uploadModel', 'getModel', 'listModels', + 'listModelVersions', 'updateModel', 'deleteModel', + 'deleteModelVersion', + 'mergeVersionAliases', 'exportModel', 'importModelEvaluation', 'getModelEvaluation', @@ -583,6 +602,23 @@ export class ModelServiceClient { * The request object that will be sent. * @param {google.cloud.aiplatform.v1beta1.Model} request.model * Required. The Model which replaces the resource on the server. + * When Model Versioning is enabled, the model.name will be used to determine + * whether to update the model or model version. + * 1. model.name with the @ value, e.g. models/123@1, refers to a version + * specific update. + * 2. model.name without the @ value, e.g. models/123, refers to a model + * update. + * 3. model.name with @-, e.g. models/123@-, refers to a model update. + * 4. Supported model fields: display_name, description; supported + * version-specific fields: version_description. Labels are supported in both + * scenarios. Both the model labels and the version labels are merged when a + * model is returned. When updating labels, if the request is for + * model-specific update, model label gets updated. Otherwise, version labels + * get updated. + * 5. A model name or model version name fields update mismatch will cause a + * precondition error. + * 6. One request cannot update both the model and the version fields. You + * must update them separately. * @param {google.protobuf.FieldMask} request.updateMask * Required. The update mask applies to the resource. * For the `FieldMask` definition, see {@link google.protobuf.FieldMask|google.protobuf.FieldMask}. @@ -670,6 +706,119 @@ 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.v1beta1.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/v1beta1/model_service.merge_version_aliases.js + * region_tag:aiplatform_v1beta1_generated_ModelService_MergeVersionAliases_async + */ + mergeVersionAliases( + request?: protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IModel, + ( + | protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest + | undefined + ), + {} | undefined + ] + >; + mergeVersionAliases( + request: protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IModel, + | protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + mergeVersionAliases( + request: protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IModel, + | protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + mergeVersionAliases( + request?: protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IModel, + | protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IModel, + | protos.google.cloud.aiplatform.v1beta1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IModel, + ( + | protos.google.cloud.aiplatform.v1beta1.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. * @@ -981,6 +1130,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.v1beta1.Model} request.model * Required. The Model to create. * @param {object} [options] @@ -1255,6 +1413,150 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata >; } + /** + * 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.v1beta1.ModelService.DeleteModel|DeleteModel} for deleting the Model instead. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * 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. + * 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/v1beta1/model_service.delete_model_version.js + * region_tag:aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_async + */ + deleteModelVersion( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteModelVersion( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelVersion( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelVersion( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelVersionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + 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.deleteModelVersion(request, options, callback); + } + /** + * 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. + * 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/v1beta1/model_service.delete_model_version.js + * region_tag:aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_async + */ + async checkDeleteModelVersionProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = new operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new gax.Operation( + operation, + this.descriptors.longrunning.deleteModelVersion, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } /** * 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 @@ -1651,6 +1953,243 @@ export class ModelServiceClient { 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.v1beta1.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.v1beta1.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.v1beta1.IListModelVersionsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IModel[], + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + ] + >; + listModelVersions( + request: protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IModel + > + ): void; + listModelVersions( + request: protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IModel + > + ): void; + listModelVersions( + request?: protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IModel + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IModel + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IModel[], + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListModelVersionsResponse + ] + > | 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.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.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.v1beta1.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 {Stream} + * An object stream which emits an object representing [Model]{@link google.cloud.aiplatform.v1beta1.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 `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. + */ + listModelVersionsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + 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({ + name: request.name || '', + }); + const defaultCallSettings = this._defaults['listModelVersions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listModelVersions.createStream( + this.innerApiCalls.listModelVersions as gax.GaxCall, + request, + callSettings + ); + } + + /** + * 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.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.v1beta1.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 {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.v1beta1.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/v1beta1/model_service.list_model_versions.js + * region_tag:aiplatform_v1beta1_generated_ModelService_ListModelVersions_async + */ + listModelVersionsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListModelVersionsRequest, + 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({ + name: request.name || '', + }); + const defaultCallSettings = this._defaults['listModelVersions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listModelVersions.asyncIterate( + this.innerApiCalls['listModelVersions'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } /** * Lists ModelEvaluations in a Model. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json index 65b4fdcfa67..408060507de 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json @@ -35,6 +35,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListModelVersions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "UpdateModel": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", @@ -45,6 +49,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": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index fbbeaf1cfa9..709268d7d87 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -1663,6 +1663,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1810,6 +1813,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1905,6 +1911,9 @@ export class PipelineServiceClient { * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. + * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. + * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * wildcard. * * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts index 88c8f25646a..82029a2eeb0 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -495,6 +495,133 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('mergeVersionAliases', () => { + it('invokes mergeVersionAliases 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.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ); + client.innerApiCalls.mergeVersionAliases = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.mergeVersionAliases( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelServiceClient({ @@ -1268,15 +1395,15 @@ describe('v1beta1.ModelServiceClient', () => { }); }); - describe('exportModel', () => { - it('invokes exportModel without error', async () => { + describe('deleteModelVersion', () => { + it('invokes deleteModelVersion 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.ExportModelRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1290,25 +1417,26 @@ describe('v1beta1.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.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1322,16 +1450,16 @@ describe('v1beta1.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.v1beta1.IExportModelResponse, - protos.google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -1343,26 +1471,26 @@ describe('v1beta1.ModelServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IExportModelResponse, - protos.google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1374,26 +1502,26 @@ describe('v1beta1.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.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1405,21 +1533,21 @@ describe('v1beta1.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.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1433,7 +1561,7 @@ describe('v1beta1.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); @@ -1441,7 +1569,7 @@ describe('v1beta1.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.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1453,23 +1581,26 @@ describe('v1beta1.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', () => { - it('invokes listModels without error', async () => { + describe('exportModel', () => { + it('invokes exportModel 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.ListModelsRequest() + new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1477,38 +1608,31 @@ describe('v1beta1.ModelServiceClient', () => { }, }, }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - ]; - client.innerApiCalls.listModels = stubSimpleCall(expectedResponse); - const [response] = await client.listModels(request); + 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.listModels as SinonStub) + (client.innerApiCalls.exportModel as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listModels without error using callback', async () => { + it('invokes exportModel 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.ListModelsRequest() + new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1516,25 +1640,20 @@ describe('v1beta1.ModelServiceClient', () => { }, }, }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - ]; - client.innerApiCalls.listModels = - stubSimpleCallWithCallback(expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportModel = + stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listModels( + client.exportModel( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IModel[] | null + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IExportModelResponse, + protos.google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata + > | null ) => { if (err) { reject(err); @@ -1544,26 +1663,30 @@ describe('v1beta1.ModelServiceClient', () => { } ); }); - const response = await promise; + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IExportModelResponse, + protos.google.cloud.aiplatform.v1beta1.IExportModelOperationMetadata + >; + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listModels as SinonStub) + (client.innerApiCalls.exportModel as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listModels with error', async () => { + it('invokes exportModel with call 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.ListModelsRequest() + new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1572,49 +1695,247 @@ describe('v1beta1.ModelServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listModels = stubSimpleCall( + client.innerApiCalls.exportModel = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.listModels(request), expectedError); + await assert.rejects(client.exportModel(request), expectedError); assert( - (client.innerApiCalls.listModels as SinonStub) + (client.innerApiCalls.exportModel as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listModelsStream without error', async () => { + it('invokes exportModel with LRO 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.ListModelsRequest() + new protos.google.cloud.aiplatform.v1beta1.ExportModelRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Model() - ), - ]; - client.descriptors.page.listModels.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listModelsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.Model[] = []; - stream.on( - 'data', - (response: protos.google.cloud.aiplatform.v1beta1.Model) => { - responses.push(response); + 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.v1beta1.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.v1beta1.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.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListModelsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.innerApiCalls.listModels = stubSimpleCall(expectedResponse); + const [response] = await client.listModels(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModels 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.ListModelsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.innerApiCalls.listModels = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listModels( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IModel[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listModels 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.ListModelsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listModels = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listModels(request), expectedError); + assert( + (client.innerApiCalls.listModels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelsStream 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.ListModelsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.descriptors.page.listModels.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listModelsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Model[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Model) => { + responses.push(response); } ); stream.on('end', () => { @@ -1767,6 +2088,311 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('listModelVersions', () => { + it('invokes listModelVersions 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.innerApiCalls.listModelVersions = stubSimpleCall(expectedResponse); + const [response] = await client.listModelVersions(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModelVersions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelVersions 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.innerApiCalls.listModelVersions = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listModelVersions( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IModel[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModelVersions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listModelVersions 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listModelVersions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listModelVersions(request), expectedError); + assert( + (client.innerApiCalls.listModelVersions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelVersionsStream 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.descriptors.page.listModelVersions.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listModelVersionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Model[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Model) => { + 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.listModelVersions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listModelVersions, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelVersions.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listModelVersionsStream 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelVersions.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listModelVersionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Model[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Model) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listModelVersions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listModelVersions, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelVersions.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelVersions 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Model() + ), + ]; + client.descriptors.page.listModelVersions.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IModel[] = []; + const iterable = client.listModelVersionsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelVersions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelVersions.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelVersions 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.ListModelVersionsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelVersions.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listModelVersionsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IModel[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelVersions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelVersions.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('listModelEvaluations', () => { it('invokes listModelEvaluations without error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({